CSGRegionQ[reg]
yields True if the region reg is a valid CSGRegion object and False otherwise.
CSGRegionQ
CSGRegionQ[reg]
yields True if the region reg is a valid CSGRegion object and False otherwise.
Examples
open all close allBasic Examples (2)
Scope (3)
CSGRegionQ works on the CSG region Intersection:
CSGRegion["Intersection", {Ball[], Cuboid[]}]CSGRegionQ[%]CSGRegion["Union", {Ball[], Cuboid[]}];CSGRegionQ[%]CSGRegion["Difference", {Ball[], Cuboid[]}];CSGRegionQ[%]CSGRegionQ works on 1-level CSG region:
CSGRegion["Intersection", {Ball[], Cuboid[]}]CSGRegionQ[%]CSGRegion["Intersection", {Ball[], CSGRegion["Union", {Ball[], Cuboid[]}]}];CSGRegionQ[%]Intersection with more than two regions:
CSGRegion["Intersection", {Ball[], Ball[], Cuboid[], Ball[]}];CSGRegionQ[%]CSGRegionQ works on CSG regions in 2D:
CSGRegion["Intersection", {Disk[], Rectangle[]}]CSGRegionQ[%]CSGRegion["Intersection", {Ball[], Cuboid[]}];CSGRegionQ[%]CSGRegion["Intersection", {Ball[{0, 0, 0, 0}], Ball[{1, 0, 1, 0}]}];CSGRegionQ[%]Properties & Relations (4)
CSGRegionQ is a special case of RegionQ:
Subscript[ℛ, 1] = CSGRegion["Intersection", {Ball[], Cuboid[]}];
Subscript[ℛ, 2] = ConvexHullMesh[RandomReal[1, {10, 2}]];CSGRegionQ /@ {Subscript[ℛ, 1], Subscript[ℛ, 2]}RegionQ /@ {Subscript[ℛ, 1], Subscript[ℛ, 2]}A CSGRegion is always BoundedRegionQ:
ℛ = CSGRegion["Intersection", {Ball[], Cuboid[]}];{CSGRegionQ[ℛ], BoundedRegionQ[ℛ]}A CSGRegion is always ConstantRegionQ:
ℛ = CSGRegion["Intersection", {Ball[], Cuboid[]}];{CSGRegionQ[ℛ], ConstantRegionQ[ℛ]}A CSGRegion is solid:
ℛ = CSGRegion["Intersection", {Ball[], Cuboid[]}];{CSGRegionQ[ℛ], SolidRegionQ[ℛ]}See Also
Related Guides
History
Text
Wolfram Research (2021), CSGRegionQ, Wolfram Language function, https://reference.wolfram.com/language/ref/CSGRegionQ.html.
CMS
Wolfram Language. 2021. "CSGRegionQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CSGRegionQ.html.
APA
Wolfram Language. (2021). CSGRegionQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CSGRegionQ.html
BibTeX
@misc{reference.wolfram_2026_csgregionq, author="Wolfram Research", title="{CSGRegionQ}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/CSGRegionQ.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_csgregionq, organization={Wolfram Research}, title={CSGRegionQ}, year={2021}, url={https://reference.wolfram.com/language/ref/CSGRegionQ.html}, note=[Accessed: 13-June-2026]}