ComfyUI Node
BD Sample Voxelgrid Colors
Sample colors from TRELLIS2 voxelgrid to mesh vertices. Modes: - face (CORNER): 1 solid color per face, NO bleeding. Works with BD_BlenderEdgeMarking. Splits vertices. - sharp (POINT/k=1): Per-vertex nearest neighbor. Colors shared at edges - edge marking won't detect boundaries. - smooth (POINT/k=4): Per-vertex blended. Smooth gradients - edge marking won't detect boundaries.
BD Sample Voxelgrid Colors
- mesh
- voxelgrid
- mesh
- color_field
- status
◄sampling_modeface►
◄default_color0.5,0.5,0.5,1.0►
◄distance_threshold3.0►
Category🧠BrainDead/Mesh
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| mesh | TRIMESH | — | |
| voxelgrid | VOXELGRID | — | |
| sampling_modeopt | COMBO | face | face=CORNER domain (edge marking works) | sharp=POINT k=1 | smooth=POINT k=4 blended |
| default_coloropt | STRING | 0.5,0.5,0.5,1.0 | — |
| distance_thresholdopt | FLOAT | 3.01–10 | Max voxels distance before using default color |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| mesh | TRIMESH | — |
| color_field | COLOR_FIELD | — |
| status | STRING | — |