ComfyTV/3Dgenerated

Mesh Boolean(MeshBooleanStage)

Mesh Boolean performs a boolean operation between two COMFYTV_MODEL meshes. It combines the input volumes using an SDF voxel grid, then extracts a new mesh from the result.

Mesh Boolean Stage

model
model_b
model
image
operation
union
resolution
256
smooth_iters
0
transform_b
STRING
transform_a
STRING
ComfyTV

Description

Mesh Boolean performs a boolean operation between two COMFYTV_MODEL meshes. It combines the input volumes using an SDF voxel grid, then extracts a new mesh from the result. The node supports union, difference, and intersect operations, and can apply Taubin smoothing to the generated mesh.

The node outputs the resulting mesh as a COMFYTV_MODEL and also returns a COMFYTV_IMAGE, which can be used for preview or visualization.

Inputs

InputTypeRequiredDefaultDescription
operationCOMBOYesunionBoolean operation to apply. Available options are union, difference, and intersect. difference removes model B's volume from model A.
resolutionINTYes256SDF voxel grid resolution. Minimum is 32, maximum is 1024. Higher values produce sharper cuts and more faces. Follow with a decimate operation if you need an exact face count.
smooth_itersINTYes0Number of Taubin smoothing iterations applied to the result. Minimum is 0, maximum is 20. A value of 0 disables smoothing.
transform_bSTRINGYesEmpty stringInternal TRS of model B, stored as position, quaternion, and scale JSON. This is set by the gizmo in the node body and normally should not be edited manually.
modelCOMFYTV_MODELNoN/AModel A for the boolean operation. Connect the first mesh here.
model_bCOMFYTV_MODELNoN/AModel B for the boolean operation. Connect the second mesh here.
transform_aSTRINGYesEmpty stringInternal TRS of model A, stored as position, quaternion, and scale JSON. This is set by the gizmo in the node body and normally should not be edited manually.

Outputs

OutputTypeDescription
ResultCOMFYTV_MODELThe mesh produced by the selected boolean operation.
PreviewCOMFYTV_IMAGEAn image output for previewing or visualizing the result.

Usage Notes

  • Connect the two meshes to model and model_b. Although both model inputs are optional in the node signature, a meaningful boolean operation normally requires both inputs to be connected.
  • Use operation to choose how the two volumes are combined:
    • union combines the volumes of model A and model B.
    • difference removes model B's volume from model A.
    • intersect keeps only the overlapping volume of model A and model B.
  • Increase resolution when you need a cleaner or sharper boolean result. This also increases the number of generated faces, so use a decimate operation afterward if the result must meet a specific face count.
  • Use smooth_iters when the extracted result needs light surface smoothing. Higher values apply more Taubin smoothing iterations.
  • The transform_a and transform_b inputs are managed by the gizmo in the node body. They store the transform of each model as JSON and are intended for internal use.
  • The second output provides an image of the result, which is useful for quickly checking the boolean operation without needing a separate preview node.

Comments

Sign in with GitHub to join the discussion.

Loading comments…