ComfyUI Node
BD Apply Color Field
Apply COLOR_FIELD (voxelgrid colors) to any mesh. Use this to reapply original colors after mesh processing: 1. BD_SampleVoxelgridColors outputs COLOR_FIELD 2. Process mesh (decimate, remesh, etc.) 3. BD_ApplyColorField applies colors to processed mesh Modes: - face: 1 solid color per face, NO bleeding (works with edge marking) - sharp: Per-vertex nearest neighbor - smooth: Per-vertex k=4 weighted blend
BD Apply Color Field
- mesh
- color_field
- mesh
- status
◄sampling_modeface►
◄preserve_materialtrue►
◄default_color0.5,0.5,0.5,1.0►
◄distance_threshold3.0►
Category🧠BrainDead/Mesh
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| mesh | TRIMESH | — | |
| color_field | COLOR_FIELD | — | |
| sampling_modeopt | COMBO | face | face=per-face solid | sharp=nearest | smooth=blended |
| preserve_materialopt | BOOLEAN | true | Save original UVs in metadata for downstream PBR reconstruction. Colors always applied natively to mesh.visual.vertex_colors. |
| default_coloropt | STRING | 0.5,0.5,0.5,1.0 | RGBA for vertices beyond distance threshold |
| distance_thresholdopt | FLOAT | 3.00.5–20 | Max voxel-units distance before using default color |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| mesh | TRIMESH | — |
| status | STRING | — |