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
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
operation | COMBO | Yes | union | Boolean operation to apply. Available options are union, difference, and intersect. difference removes model B's volume from model A. |
resolution | INT | Yes | 256 | SDF 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_iters | INT | Yes | 0 | Number of Taubin smoothing iterations applied to the result. Minimum is 0, maximum is 20. A value of 0 disables smoothing. |
transform_b | STRING | Yes | Empty string | Internal 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. |
model | COMFYTV_MODEL | No | N/A | Model A for the boolean operation. Connect the first mesh here. |
model_b | COMFYTV_MODEL | No | N/A | Model B for the boolean operation. Connect the second mesh here. |
transform_a | STRING | Yes | Empty string | Internal 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
| Output | Type | Description |
|---|---|---|
| Result | COMFYTV_MODEL | The mesh produced by the selected boolean operation. |
| Preview | COMFYTV_IMAGE | An image output for previewing or visualizing the result. |
Usage Notes
- Connect the two meshes to
modelandmodel_b. Although both model inputs are optional in the node signature, a meaningful boolean operation normally requires both inputs to be connected. - Use
operationto choose how the two volumes are combined:unioncombines the volumes of model A and model B.differenceremoves model B's volume from model A.intersectkeeps only the overlapping volume of model A and model B.
- Increase
resolutionwhen 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_iterswhen the extracted result needs light surface smoothing. Higher values apply more Taubin smoothing iterations. - The
transform_aandtransform_binputs 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.