CSGRegion

CSGRegion[{reg1,reg2,}]

represents the solid region corresponding to the union of solid regions reg1,reg2,.

CSGRegion["op",{reg1,reg2,}]

represents the solid region corresponding to the Boolean combination "op" of regions reg1,reg2,.

CSGRegion["op",{,wi[regi],}]

represents the solid region defined by regions regi transformed by a geometric transformation wi.

Details and Options

Examples

open allclose all

Basic Examples  (3)

Intersection of two solid regions in 2D:

Its area:

Intersection of two solid regions in 3D:

Its volume:

Style solid regions:

Scope  (5)

CSG regions Union:

Difference:

Intersection:

Use Or as an alternative to "Union":

Use And as an alternative to "Intersection":

One-level CSG region:

Nested CSG region:

Union with more than two regions:

CSG regions in 2D:

3D:

nD:

Apply styles to specific solids in 2D:

3D:

Applications  (7)

Basic Applications  (4)

Construct a nested annulus:

CSGRegion using multiple operations:

Create polyhedron with rounded corners:

Model complex objects:

CAD Modeling  (3)

Construct a rail support:

Construct a pipe guide bracket:

Construct a universal joint:

Properties & Relations  (4)

Compute the union of two regions:

RegionIntersection:

RegionDifference:

CSG regions can be represented as Boolean regions:

A CSGRegion object is solid:

The embedding dimension of a CSG region is the same as its geometry dimension:

Possible Issues  (1)

CSGRegion with transparency does not show occluded regions:

Use Graphics3D to show all regions:

Interactive Examples  (3)

Create an interactive CSG region to visualize the intersection of multiple draggable disks:

Create an interactive CSG region with draggable points. Click the region to add and remove draggable points:

Separate an object into multiple chunks:

Neat Examples  (3)

Create polyhedron shells:

Separate an object into chunks:

Show slices of complex objects:

Wolfram Research (2021), CSGRegion, Wolfram Language function, https://reference.wolfram.com/language/ref/CSGRegion.html (updated 2024).

Text

Wolfram Research (2021), CSGRegion, Wolfram Language function, https://reference.wolfram.com/language/ref/CSGRegion.html (updated 2024).

CMS

Wolfram Language. 2021. "CSGRegion." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/CSGRegion.html.

APA

Wolfram Language. (2021). CSGRegion. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CSGRegion.html

BibTeX

@misc{reference.wolfram_2024_csgregion, author="Wolfram Research", title="{CSGRegion}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/CSGRegion.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_csgregion, organization={Wolfram Research}, title={CSGRegion}, year={2024}, url={https://reference.wolfram.com/language/ref/CSGRegion.html}, note=[Accessed: 21-December-2024 ]}