Expand description
CSG (Constructive Solid Geometry) Operations
Fast triangle clipping and boolean operations.
Structs§
- Clipping
Processor - CSG Clipping Processor
- CsgOp
Record - One recorded invocation of a CSG kernel op (perf-census diagnostics).
op: 0=subtract 1=union 2=intersection 3=clip.a_tris/b_trisare the operand triangle counts — the arrangement cost driver — so the census measures the real heavy-path workload reaching the kernel (analytic AABB box clips never get here). - Plane
- Plane definition for clipping
- Triangle
- Triangle definition
Enums§
- Clip
Result - Triangle clipping result
- Group
Cut - Outcome of
ClippingProcessor::subtract_mesh_manyand ofClippingProcessor::subtract_mesh, which is a group of one. - Group
Reject - Why a group was not cut. For a group, only
InvalidOutputandGateRejectedrecord acrate::diagnostics::BoolFailure: the others are the expected, handled outcome (seeClippingProcessor::subtract_mesh_many). The single cutter records more; seeClippingProcessor::subtract_mesh.
Functions§
- calculate_
normals - Calculate smooth normals for a mesh.
- reset_
csg_ census - Clear the CSG op census (call before a measured run).
- take_
csg_ census - Drain the CSG op census (call after a measured run).
Type Aliases§
- Triangle
Vec - Type alias for small triangle collections (typically 1-2 triangles from clipping)