ComfyTV/3Dgenerated

Mesh Primitive(MeshPrimitiveStage)

Mesh Primitive (MeshPrimitiveStage) creates a basic 3D mesh from a selected primitive type.

Mesh Primitive Stage

model
image
kind
cube
recipe
{}
ComfyTV

Description

Mesh Primitive (MeshPrimitiveStage) creates a basic 3D mesh from a selected primitive type. It belongs to the ComfyTV/3D category and is intended as a starting point for 3D workflows: choose a shape with the kind widget, and the node prepares the corresponding three.js geometry recipe used to generate the mesh. The node returns a COMFYTV_MODEL and a COMFYTV_IMAGE.

The node does not expose individual dimension widgets for each shape. Instead, it uses the internal recipe string to store the geometry parameters for the selected primitive. Downstream operations read that recipe and generate the actual mesh. This keeps the node interface simple while allowing the same primitive node to support several shapes with different parameter sets.

Inputs

NameTypeRequiredDefaultDescription
kindCOMBOYescubeSelects the primitive shape to generate. Available options are cube, sphere, cylinder, cone, plane, and torus.
recipeSTRINGYes{}Internal JSON string containing three.js geometry.parameters for the selected kind, such as width, radiusTop, phiLength, or arc values. The node body fills this field based on the chosen primitive. Downstream ops generate the mesh from this recipe.

Input details

kind controls which three.js geometry is prepared. Changing it changes the primitive family and the parameters expected by the generated recipe.

recipe is marked internal in the source tooltip. In normal use, leave it at the default and let the node body populate it. It should contain a JSON object matching the geometry parameters for the current kind. Because downstream operations depend on this string, manual edits should be made only when you know the expected three.js parameter names and value ranges.

Outputs

TypeDescription
COMFYTV_MODELThe generated 3D model or mesh handle for the selected primitive. Connect this to downstream 3D operations.
COMFYTV_IMAGEAn image output associated with the primitive or its generated model. Use this when a downstream image, preview, or render workflow expects a COMFYTV_IMAGE. The exact image content depends on the downstream rendering path.

Usage Notes

  • Use kind to choose the base shape, then connect COMFYTV_MODEL to the next 3D operation in your ComfyTV workflow.
  • The node exposes no per-shape size widgets. Shape-specific parameters live in recipe and are generated by the node body.
  • The recipe follows three.js geometry parameter naming, for example width, radiusTop, phiLength, and arc. The exact fields depend on the selected primitive.
  • Treat recipe as generated internal state. If you need to inspect or debug it, do so with the selected kind in mind.
  • Route COMFYTV_IMAGE to image-consuming nodes when a preview or render of the primitive is needed by the workflow.

Comments

Sign in with GitHub to join the discussion.

Loading comments…