Boolean Operations
Combine shapes with union, subtract, and intersect.
Basic Operations
// Union - combine two shapes
sphere(0.5).union(cube(0.7))
// Subtract - cut one from another
cube(1.0).subtract(sphere(0.8))
// Intersect - keep only the overlap
sphere(0.6).intersect(cube(0.8))Smooth Operations
Add a blend radius k for organic transitions:
// Smooth union - blend shapes together
a.smooth_union(b, 0.1)
// Smooth subtract - filleted cut
a.smooth_subtract(b, 0.1)
// Smooth intersect - filleted intersection
a.smooth_intersect(b, 0.1)