Function createCsgFromMesh
-
Parameters
- mesh: Mesh
Source mesh; must retain CPU positions, normals, and indices.
- materialSlot: number = 0
Material slot index tagged onto every generated polygon.
Returns CsgSolid
A CSG solid usable with csgUnion, csgSubtract, and csgIntersect.
- mesh: Mesh
Builds a CsgSolid from a mesh's CPU geometry, baking its world transform.