Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
CSGRegion
  • See Also
    • CSGRegionTree
    • SolidRegionQ
    • BooleanRegion
    • RegionUnion
    • RegionIntersection
    • RegionDifference
    • RegionSymmetricDifference
    • And
    • Or
    • BooleanFunction
  • Related Guides
    • Solid Geometry
    • Plane Geometry
    • Derived Geometric Regions
    • See Also
      • CSGRegionTree
      • SolidRegionQ
      • BooleanRegion
      • RegionUnion
      • RegionIntersection
      • RegionDifference
      • RegionSymmetricDifference
      • And
      • Or
      • BooleanFunction
    • Related Guides
      • Solid Geometry
      • Plane Geometry
      • Derived Geometric Regions

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
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Basic Uses  
Presentation  
Annotations  
Applications  
Basic Applications  
CAD Modeling  
Properties & Relations  
Possible Issues  
Interactive Examples  
Neat Examples  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • CSGRegionTree
    • SolidRegionQ
    • BooleanRegion
    • RegionUnion
    • RegionIntersection
    • RegionDifference
    • RegionSymmetricDifference
    • And
    • Or
    • BooleanFunction
  • Related Guides
    • Solid Geometry
    • Plane Geometry
    • Derived Geometric Regions
    • See Also
      • CSGRegionTree
      • SolidRegionQ
      • BooleanRegion
      • RegionUnion
      • RegionIntersection
      • RegionDifference
      • RegionSymmetricDifference
      • And
      • Or
      • BooleanFunction
    • Related Guides
      • Solid Geometry
      • Plane Geometry
      • Derived Geometric Regions

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

  • CSGRegion is also known as constructive solid geometry (CSG) object.
  • CSGRegion is typically used to construct solid geometric regions by using nested combinations of union, intersection and subtraction of simple geometric primitives.
  • CSGRegion[…] displays in a notebook as a plot of a solid region in 2D and 3D.
  • In CSGRegion["op",{reg1,reg2,…}], "op" are Boolean operations and regions regi are other CSGRegion objects or geometric regions.
  • The following Boolean operators "op" can be used:
  • "Intersection"smallest solid containing the intersection of two regions
    "Difference"smallest solid containing the difference of two regions
    "Union"smallest solid containing the union of two regions
  • The following 2D solid regions regi are supported:
  • Diskdisk
    Ellipsoidellipsoid
    Parallelogramparallelogram
    Rectanglerectangle
    Triangletriangle
    Simplexsimplex
  • The following 3D solid regions regi are supported:
  • Ballball
    Conecone
    Cubecube
    Cuboidcuboid
    Cylindercylinder
    Dodecahedrondodecahedron
    Ellipsoidellipsoid
    Icosahedronicosahedron
    Octahedronoctahedron
    Parallelepipedparallelepiped
    Prismprism
    Pyramidpyramid
    Simplexsimplex
    Tetrahedrontetrahedron
  • The following n‐dimensional solid regions regi are supported:
  • Ballball
    Cuboidaxis-aligned cuboid
    Ellipsoidellipsoid
    Parallelepipedparallelotope
    Simplexsimplex
  • In CSGRegion["op",{…,wi[regi],…}], wi are geometric transformations or wrappers for regions regi.
  • The following geometric transformations wi can be used:
  • GeometricTransformation[regi,…]geometric affine transformation
    Rotate[regi,…]rotation
    Scale[regi,…]scaling
    Translate[regi,…]translation
  • The following special wrappers wi can be used:
  • Annotation[regi,…]associate an annotation with regi
    Style[regi,…]show regi with the specified style
  • CSGRegion[{reg1,reg2,…}] is equivalent to CSGRegion["Union",{reg1,reg2,…}].
  • CSGRegion takes the same options as Region.
  • CSGRegion can be used with functions such as RegionMember, RegionDistance, RegionMeasure and NIntegrate.

Examples

open all close 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  (11)

Basic Uses  (4)

Union of regions:

Difference:

Intersection:

CSG regions in 2D:

3D:

nD:

One-level CSG region:

Nested CSG region:

Union with more than two regions:

Use Or as an alternative to "Union":

Use And as an alternative to "Intersection":

Presentation  (4)

Specify styling for parts of a CSGRegion in 2D:

3D:

Specify styling for a subtree within CSGRegion:

Apply styling to a CSGRegion:

Modify styling of an existing CSGRegion:

Styling is now applied to the original CSGRegion expression:

Annotations  (3)

Specify annotations with Annotation:

Check for existing annotations with AnnotationKeys:

Retrieve annotations with AnnotationValue:

Apply annotations with Annotate:

Delete annotations with AnnotationDelete:

Modify annotations with AnnotationValue:

Original CSGRegion gives updated annotation value:

CSGRegion styling is managed through annotations:

Use Style wrapper as a shorthand to specify styling annotations:

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:

See Also

CSGRegionTree  SolidRegionQ  BooleanRegion  RegionUnion  RegionIntersection  RegionDifference  RegionSymmetricDifference  And  Or  BooleanFunction

Related Guides

    ▪
  • Solid Geometry
  • ▪
  • Plane Geometry
  • ▪
  • Derived Geometric Regions

History

Introduced in 2021 (13.0) | Updated in 2024 (14.1)

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_2025_csgregion, author="Wolfram Research", title="{CSGRegion}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/CSGRegion.html}", note=[Accessed: 04-February-2026]}

BibLaTeX

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

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English