English

Deutsch

Español

Français

Hrvatski

Italiano

Polski

Türkçe

Русский

中文

日本語

한국어

powered by CADENAS

Go to Article

Licensed under Creative Commons Attribution-Share Alike 3.0 (User:Zottie).

**Constructive solid geometry** (**CSG**) (formerly called **computational binary solid geometry**) is a technique used in solid modeling. Constructive solid geometry allows a modeler to create a complex surface or object by using Boolean operators to combine simpler objects.^{[1]} Often CSG presents a model or surface that appears visually complex, but is actually little more than cleverly combined or decombined objects.^{[2]}

In 3D computer graphics and CAD, CSG is often used in procedural modeling. CSG can also be performed on polygonal meshes, and may or may not be procedural and/or parametric.

Contrast CSG with polygon mesh modeling and box modeling.

The simplest solid objects used for the representation are called **primitives**. Typically they are the objects of simple shape: cuboids, cylinders, prisms, pyramids, spheres, cones.^{[1]} The set of allowable primitives is limited by each software package. Some software packages allow CSG on curved objects while other packages do not.

It is said that an object is **constructed** from primitives by means of allowable **operations**, which are typically Boolean operations on sets: union, intersection and difference, as well as geometric transformations of those sets.^{[1]}

A primitive can typically be described by a procedure which accepts some number of parameters; for example, a sphere may be described by the coordinates of its center point, along with a radius value. These primitives can be combined into compound objects using operations like these:

Combining these elementary operations, it is possible to build up objects with high complexity starting from simple ones.

Constructive solid geometry has a number of practical uses. It is used in cases where simple geometric objects are desired,^{[citation needed]} or where mathematical accuracy is important.^{[3]}
Nearly all engineering CAD packages use CSG (where it may be useful for representing tool cuts, and features where parts must fit together).

The Quake engine and Unreal engine both use this system, as does Hammer (the native Source engine level editor), and Torque Game Engine/Torque Game Engine Advanced. CSG is popular because a modeler can use a set of relatively simple objects to create very complicated geometry.^{[2]} When CSG is procedural or parametric, the user can revise their complex geometry by changing the position of objects or by changing the Boolean operation used to combine those objects.

One of the advantages of CSG is that it can easily assure that objects are "solid" or water-tight if all of the primitive shapes are water-tight.^{[4]} This can be important for some manufacturing or engineering computation applications. By comparison, when creating geometry based upon boundary representations, additional topological data is required, or consistency checks must be performed to assure that the given boundary description specifies a valid solid object.^{[1]}

A convenient property of CSG shapes is that it is easy to classify arbitrary points as being either inside or outside the shape created by CSG. The point is simply classified against all the underlying primitives and the resulting boolean expression is evaluated.^{[5]} This is a desirable quality for some applications such as ray tracing.^{[5]}

- BRL-CAD
- SelfCAD
- FreeCAD
- OpenSCAD
- Antimony
- Pro/Engineer
- SolidWorks mechanical CAD suite
- Vectorworks
- AutoCAD
- Rhino
- Realsoft 3D
- MakerSCAD

- GtkRadiant
- Roblox Studio – Since 2014
- UnrealEd
- Valve Hammer Editor
- Unity (Edit mode and Real-time, requires using Asset Store Purchased plugins)

- 3Delight
- Aqsis (as of version 0.6.0)
- Blender (Blender is a surface mesh editor, but can do simple CSG using meta objects)
- Clara.io
- Feature Manipulation Engine
- MCNP
- SketchUp
- Vuo (as of version 1.2.6)

- ^
^{a}^{b}^{c}^{d}Foley, James D. (1996), "12.7 Constructive Solid Geometry",*Computer Graphics: Principles and Practice*, Addison-Wesley Professional, pp. 557–558, ISBN 9780201848403 . - ^
^{a}^{b}Bloomenthal, Jules; Bajaj, Chandrajit (1997), "5.2.5 Intersection with CSG Trees",*Introduction to Implicit Surfaces*, Morgan Kaufmann, pp. 178–180, ISBN 9781558602335 . **^**Foley (1996), p. 559.**^**van Rossen, Sander; Baranowski, Matthew (2011), "Real-time constructive solid geometry", in Ansari, Marwan,*Game Development Tools*, CRC Press, pp. 79–96, ISBN 9781439867723 .- ^
^{a}^{b}Glassner, Andrew S. (1989),*An Introduction to Ray Tracing*, Morgan Kaufmann, p. 80, ISBN 9780122861604 .

This article uses material from the Wikipedia article "Constructive solid geometry", which is released under the Creative Commons Attribution-Share-Alike License 3.0. There is a list of all authors in Wikipedia

3D,Models,Catalogs,Drawings,Library,Symbols,Objects,OEM

Share