Geometry & modeling

CSG

Constructive solid geometry

Definition

CSG builds a shape by combining simple solids, such as cubes, cylinders, and spheres, with boolean union, difference, and intersection. OpenSCAD models are written this way, which makes them easy for people and language models to express as code.

Also known as: constructive solid geometry, boolean modeling

Updated

How CSG reads#

A plate with a hole in CSG is one operation: the difference between a cube and a cylinder. The OpenSCAD manual covers the three core operations: union, difference, and intersection. OpenSCAD combines CSG with extrusion of 2D outlines as its two main modeling techniques.

The limit is that CSG describes shapes, not engineering intent. Fillets on arbitrary edges, drafts, and shelled bodies are hard to express, and OpenSCAD exports meshes such as STL rather than B-Rep STEP.

Sources

All glossary terms