meshing.world_frame_leaves

meshing.world_frame_leaves(node)

Maximal world-frame subtrees below the scene’s Boolean structure.

Hard CSG is built from min/max, so the exact seam between two operands is where surface ownership switches between them. Descend only through Boolean nodes: their children share the parent’s coordinate frame and stay callable in world space, while anything else (a transformed subtree, a primitive) becomes one opaque leaf.

Parameters

Name Type Description Default
node Any Root of an SDF scene tree. required

Returns

Name Type Description
list[Any] Leaf subtrees in depth-first order; their list index is the leaf id
list[Any] used throughout this module.