Jump to content

Constructive Solid Geometry

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Wapcaplet (talk | contribs) at 19:43, 18 December 2002 (descriptions of sample images). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Constructive Solid Geometry, or CSG, is a modelling technique used in 3D computer graphics, in which complex shapes are formed through the boolean union, difference, or intersection of basic geometric shapes.

CSG Operations

In modelling packages, basic geometric objects such as the cube or 'box', sphere or ellipse, tetrahedron, torus, and a number of other shapes that can be described using a mathematical formula, are commonly known as primitives.

Boolean Union

A boolean union of two primitives is analogous to 'merging' them together, and treating them as a single object. This graphic depicts a boolean union:

Demonstration of CSG Union

The red cube and the blue sphere are combined using the CSG union operator to create a single object, with the appearance of both primitives merged together.

Boolean Difference

A boolean difference of two primitives is like 'subtracting' one or more objects from another object. This graphic shows a boolean difference in action:

Demonstration of CSG Difference

Here, we see that a portion of the blue sphere has been sliced away from the red cube.

Boolean Intersection

A boolean intersection of two primitives is the creation of a new object that takes the shape of the area where the two primitives overlap. The next graphic shows this happening:

Demonstration of CSG Intersection

Here we can see that the area where the blue sphere and red cube overlap has been turned into a new shape.

In particular, the Unreal game engine uses this system.

This article is a stub.