CSGRegionTree[reg]
gives the tree expression representing the CSG region reg.
CSGRegionTree
CSGRegionTree[reg]
gives the tree expression representing the CSG region reg.
Details and Options
- CSGRegionTree is also known as CSG tree expression.
- CSGRegionTree is typically used to generate Tree expressions representing CSG regions.
- A CSG region tree is a tree where leaf vertices represent primitives and other vertices represent Boolean operations and transformations.
- CSGRegionTree has the same options as Tree.
-
AlignmentPoint Center the default point in the graphic to align with AspectRatio Automatic ratio of height to width Axes False whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool Epilog {} primitives rendered after the main plot FormatType TraditionalForm the default format type for text Frame False whether to put a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic LabelStyle {} style specifications for labels Method Automatic details of graphics methods to use PlotLabel None an overall label for the plot PlotRange All range of values to include PlotRangeClipping False whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RotateLabel True whether to rotate y labels on the frame Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks
List of all options
Examples
open all close allBasic Examples (1)
Scope (3)
CSGRegionTree works on intersection operations:
reg = CSGRegion["Intersection", {Ball[], Cuboid[]}];CSGRegionTree[reg]reg = CSGRegion["Union", {Ball[], Cuboid[]}];CSGRegionTree[reg]reg = CSGRegion["Difference", {Ball[], Cuboid[]}];CSGRegionTree[reg]CSGRegionTree works on one-level CSG region:
reg = CSGRegion["Intersection", {Ball[], Cuboid[]}];CSGRegionTree[reg]reg = CSGRegion["Intersection", {Ball[], CSGRegion["Union", {Ball[], Cuboid[]}]}];CSGRegionTree[reg]Intersection with more than two regions:
reg = CSGRegion["Intersection", {Ball[], Ball[], Cuboid[], Ball[]}];CSGRegionTree[reg]CSGRegionTree works on CSG regions in 2D:
reg = CSGRegion["Intersection", {Disk[], Rectangle[]}];CSGRegionTree[reg]reg = CSGRegion["Intersection", {Ball[], Cuboid[]}];CSGRegionTree[reg]reg = CSGRegion["Intersection", {Ball[{0, 0, 0, 0}], Ball[{1, 0, 1, 0}]}];CSGRegionTree[reg]Properties & Relations (2)
A CSGRegionTree is a tree:
reg = CSGRegion["Union", {Ball[], Cuboid[], Ball[{1, 0, 0}]}];CSGRegionTree[reg]TreeQ[%]Leaves of a CSG region tree represent primitives:
reg = CSGRegion["Union", {Rotate[Ball[], 30Degree, {0, 0, 1}], Cuboid[], Ball[{1, 0, 0}]}];tree = CSGRegionTree[reg]TreeLeaves[tree]See Also
Related Guides
History
Text
Wolfram Research (2021), CSGRegionTree, Wolfram Language function, https://reference.wolfram.com/language/ref/CSGRegionTree.html.
CMS
Wolfram Language. 2021. "CSGRegionTree." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CSGRegionTree.html.
APA
Wolfram Language. (2021). CSGRegionTree. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CSGRegionTree.html
BibTeX
@misc{reference.wolfram_2026_csgregiontree, author="Wolfram Research", title="{CSGRegionTree}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/CSGRegionTree.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_csgregiontree, organization={Wolfram Research}, title={CSGRegionTree}, year={2021}, url={https://reference.wolfram.com/language/ref/CSGRegionTree.html}, note=[Accessed: 12-June-2026]}