# CSG Constructive Solid Geometry boolean operations on 3D shapes. ```{raw} html ▶ Run in browser ``` **Tags:** `3d` Demonstrates: - CSG Union: combining two shapes into one solid - CSG Subtract: punching a hole through a shape - CSG Intersect: keeping only the overlapping volume - CSGCombiner3D generating meshes from boolean operations - Camera orbit with arrow keys Controls: Left / Right - Orbit camera horizontally Up / Down - Orbit camera vertically Escape - Quit Run: uv run python examples/features/3d/csg.py ## Source ```{literalinclude} ../../examples/features/3d/csg.py :language: python :linenos: ```