# CSG
Play Demo
CSG (Constructive Solid Geometry) Demo — Boolean operations on 3D shapes.
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 packages/graphics/examples/3d_csg.py
## Source Code
```{literalinclude} ../../packages/graphics/examples/3d_csg.py
:language: python
:linenos:
```