RegionQ

RegionQ[reg]

gives True if reg is a valid region and False otherwise.

Examples

open allclose all

Basic Examples  (3)

Special regions:

Formula regions:

Mesh regions:

Scope  (17)

Special Regions  (4)

Regions in including Point:

Interval:

Regions in including Point:

Line:

Circle:

Disk:

Regions in including Point:

Line:

Polygon:

Cylinder:

Regions in including Simplex in :

Cuboid in :

Ball in :

Formula Regions  (3)

A disk represented as an ImplicitRegion:

A cylinder:

A disk represented as a ParametricRegion:

Using a rational parametrization of the disk:

A cylinder:

ImplicitRegion can have several components of different dimension:

Mesh Regions  (4)

MeshRegion in 1D:

2D:

3D:

BoundaryMeshRegion in 1D:

2D:

3D:

MeshRegion that represents a curve in 2D:

A MeshRegion can have components of different dimension:

Derived Regions  (4)

RegionIntersection of two regions:

RegionUnion of mixed-dimensional regions:

TransformedRegion:

RegionBoundary:

Geographical Regions  (2)

Polygons with GeoPosition:

Polygons with GeoPositionXYZ:

Polygons with GeoPositionENU:

Polygons with GeoGridPosition:

Applications  (1)

Create a definition that only applies to regions:

Properties & Relations  (2)

MeshRegionQ and BoundaryMeshRegionQ can be used to check more specialized region types:

ConstantRegionQ and BoundedRegionQ can be used to check region properties:

Possible Issues  (3)

Graphics and Graphics3D are not RegionQ:

Use DiscretizeGraphics to convert to a valid region:

Or use BoundaryDiscretizeGraphics for full-dimensional graphics only:

A Graph is not RegionQ:

Convert the graph to a MeshRegion:

Degenerate polyhedra are not valid geometric regions:

Degenerate polygons are not valid geometric regions:

Wolfram Research (2014), RegionQ, Wolfram Language function, https://reference.wolfram.com/language/ref/RegionQ.html.

Text

Wolfram Research (2014), RegionQ, Wolfram Language function, https://reference.wolfram.com/language/ref/RegionQ.html.

CMS

Wolfram Language. 2014. "RegionQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RegionQ.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_regionq, author="Wolfram Research", title="{RegionQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/RegionQ.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_regionq, organization={Wolfram Research}, title={RegionQ}, year={2014}, url={https://reference.wolfram.com/language/ref/RegionQ.html}, note=[Accessed: 22-November-2024 ]}