boolean3d
Draws the node as its children combined by operation: union, difference or intersection. The children stay in the tree, hidden and editable; color…
On this page
3d · render · 9 properties · 3D
Draws the node as its children combined by operation: union, difference or intersection. The children stay in the tree, hidden and editable; color, texture and material dress the result.
In a scene, boolean3d is the node key that applies it. A script reaches each property below as a field on node.boolean3d: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.boolean3d.get() and node.boolean3d.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
cast_shadow |
bool | true |
Whether the result casts a shadow from the lights that cast |
color |
color | [0.8,0.8,0.8,1] |
Tint of the result, as channel floats or #rrggbb / #rrggbbaa |
light_layers |
flags | [] |
The light layers the result is lit on: a light3d lights it when their light_layers share one; empty is every layer One of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32. |
material |
asset · material |
— | The material the result draws with; empty takes an inherited material component, else the built-in one |
operation |
enum | union |
How the children are combined, in the order they are declared One of union, difference, intersection. |
receive_shadows |
bool | true |
Whether shadows land on it; off lights it as if nothing stood between it and every light |
render_layers |
flags | [] |
The layers the result is drawn on: a camera3d draws it when their render_layers share one; empty is every layer One of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32. |
segmentation_id |
int | 0 |
The id render.snap_aov("segmentation") colours this node by; nodes sharing one share a colour. Zero takes one of its own, from 1 up At least 0. |
texture |
asset · texture |
— | Image file, project-relative, or a texture asset the result is drawn with, over the UVs the children carry through the cut; empty draws the colour alone |
Asset types this component references: material, texture.
Script functions
Methods of node.boolean3d, the handle a node carrying this component exposes. Every handle also has get(), set(table), patch(table), has() and remove().
From render:
| method | what it does |
|---|---|
built_mesh() -> render::BuiltMesh? |
The triangles the node's boolean settled on, ready to be written out as a mesh asset; nil when the node draws no built geometry. |