ComfyUI > Nodes > ComfyUI libigl > Create Primitive

ComfyUI Node: Create Primitive

Class Name

GeomPackCreatePrimitive

Category
geompack/primitives
Author
PozzettiAndrea (Account age: 2240days)
Extension
ComfyUI libigl
Latest Updated
2025-12-22
Github Stars
0.06K

How to Install ComfyUI libigl

Install this extension via the ComfyUI Manager by searching for ComfyUI libigl
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI libigl in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Create Primitive Description

GeomPackCreatePrimitive generates basic 3D shapes like cubes and spheres for modeling projects.

Create Primitive:

The GeomPackCreatePrimitive node is designed to generate basic geometric shapes, such as cubes, spheres, and planes, which are essential building blocks in 3D modeling and computer graphics. This node leverages high-quality mesh creation functions to produce precise and detailed primitive shapes, making it a valuable tool for artists and designers who need to quickly create foundational geometry for their projects. By providing a straightforward interface to specify the type, size, and complexity of the shape, this node simplifies the process of generating 3D models, allowing you to focus on creative aspects rather than technical details. Whether you're creating a simple scene or a complex structure, the GeomPackCreatePrimitive node offers a reliable and efficient way to start your 3D modeling journey.

Create Primitive Input Parameters:

shape

The shape parameter determines the type of geometric primitive to be created. You can choose from three options: "cube," "sphere," or "plane." Each option corresponds to a different basic shape, allowing you to select the one that best fits your project needs. The default value is "cube," which is a versatile shape often used as a starting point in 3D modeling.

size

The size parameter specifies the overall dimensions of the primitive shape. It is a floating-point value that defines the scale of the shape, with a minimum value of 0.01 and a maximum value of 100.0. The default size is set to 1.0, providing a standard unit size for the shape. Adjusting this parameter allows you to create larger or smaller versions of the selected shape, depending on your design requirements.

subdivisions

The subdivisions parameter controls the level of detail for the sphere and plane shapes by specifying the number of subdivisions applied to the mesh. It is an integer value with a default of 2, and it can range from 0 to 5. Increasing the number of subdivisions results in a more detailed and smoother surface, which is particularly useful for creating high-quality spheres and planes. This parameter is optional and does not affect the cube shape.

Create Primitive Output Parameters:

mesh

The mesh output parameter provides the generated 3D mesh of the selected primitive shape. This output is a trimesh.Trimesh object, which contains the vertices, faces, and other geometric data necessary for rendering and manipulating the shape in a 3D environment. The mesh is the primary output of the node and serves as the foundation for further modeling, texturing, and rendering tasks.

Create Primitive Usage Tips:

  • To create a highly detailed sphere, increase the subdivisions parameter to a higher value, such as 4 or 5, which will result in a smoother and more refined surface.
  • When working on large-scale projects, adjust the size parameter to ensure that the primitive shapes fit well within your scene's dimensions and maintain proportionality with other elements.
  • Use the shape parameter to quickly switch between different geometric forms, allowing you to experiment with various design concepts and find the best fit for your project.

Create Primitive Common Errors and Solutions:

Unknown shape: <shape>

  • Explanation: This error occurs when an invalid shape type is provided to the shape parameter. The node only supports "cube," "sphere," and "plane" as valid shape types.
  • Solution: Ensure that the shape parameter is set to one of the supported options: "cube," "sphere," or "plane." Double-check for any typos or incorrect values.

ValueError: Size must be greater than 0

  • Explanation: This error is raised when the size parameter is set to a value less than or equal to zero, which is not allowed as it would result in an invalid geometric shape.
  • Solution: Adjust the size parameter to a positive value greater than 0.01 to ensure the shape is created with valid dimensions.

Create Primitive Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI libigl
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.