WOLFRAM

Copy to clipboard.
RegionConvert[reg,form]

converts the region representation reg to the specified form.

Details

  • RegionConvert will produce an expression equivalent to expr.
  • RegionConvert is typically used for comparing regions with different representations or to get a representation suitable for different functions, e.g. optimization expects implicit forms of region constraints, whereas integration over a region expects the parametric form of a region.
  • The following forms can be used for converting between region representations:
  • "Implicit"implicit representation
    "Mesh"mesh representation
    "Parametric"parametric representation
    "Spline"spline representation

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Convert the unit disk to the implicit form:

Out[1]=1

Parametric form:

Out[2]=2

Convert a cube to the implicit form:

Out[1]=1

Parametric form:

Out[2]=2

Scope  (11)Survey of the scope of standard use cases

Special Regions  (5)

Convert Rectangle to the implicit form:

Out[1]=1

Parametric form:

Out[2]=2

Visualize it:

Out[3]=3

Convert DiskSegment to the implicit form:

Out[1]=1

Parametric form:

Out[2]=2

Visualize it:

Out[3]=3

Convert CapsuleShape to the implicit form:

Out[1]=1

Parametric form:

Out[2]=2

Visualize it:

Out[3]=3

Convert Hyperplane to the implicit form:

Out[1]=1

Parametric form:

Out[2]=2

Visualize it:

Out[3]=3

Represent Sphere as a B-spline surface:

Out[1]=1

Visualize it, along with the control points:

Out[2]=2

Formula Regions  (2)

Convert an ImplicitRegion object to the implicit form:

Out[2]=2

Convert a ParametricRegion object to the implicit form:

Out[2]=2

Mesh Regions  (2)

Convert a MeshRegion object to the implicit form:

Out[13]=13
Out[14]=14

A mesh region with disconnected components:

Out[4]=4
Out[5]=5

Convert a BoundaryMeshRegion object to the implicit form:

Out[1]=1
Out[2]=2

A boundary mesh region with disconnected components:

Out[3]=3
Out[4]=4

Derived Regions  (2)

Convert a BooleanRegion object to the implicit form:

Out[5]=5

Visualize it:

Out[6]=6

Convert a TransformedRegion object to the implicit form:

Out[2]=2

Visualize it:

Out[3]=3

Applications  (3)Sample problems that can be solved with this function

Compute the area of an annulus using its implicit form:

Out[2]=2
Out[3]=3

Compare:

Out[4]=4

Compute the volume of a ball using its implicit form:

Out[1]=1
Out[2]=2

Compare:

Out[3]=3

Find the projection of an implicit region on the plane in :

Visualize the projection:

Out[3]=3

Properties & Relations  (3)Properties of the function, and connections to other functions

Use CanonicalizePolygon to convert a region representation to a polygon form:

Out[1]=1

Use CanonicalizePolyhedron to convert a region representation to a polyhedron form:

Out[1]=1

Use DiscretizeRegion to convert a region into a mesh:

Out[1]=1
Wolfram Research (2021), RegionConvert, Wolfram Language function, https://reference.wolfram.com/language/ref/RegionConvert.html (updated 2024).
Copy to clipboard.
Wolfram Research (2021), RegionConvert, Wolfram Language function, https://reference.wolfram.com/language/ref/RegionConvert.html (updated 2024).

Text

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

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

CMS

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

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

APA

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

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

BibTeX

@misc{reference.wolfram_2025_regionconvert, author="Wolfram Research", title="{RegionConvert}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/RegionConvert.html}", note=[Accessed: 26-March-2025 ]}

Copy to clipboard.
@misc{reference.wolfram_2025_regionconvert, author="Wolfram Research", title="{RegionConvert}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/RegionConvert.html}", note=[Accessed: 26-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_regionconvert, organization={Wolfram Research}, title={RegionConvert}, year={2024}, url={https://reference.wolfram.com/language/ref/RegionConvert.html}, note=[Accessed: 26-March-2025 ]}

Copy to clipboard.
@online{reference.wolfram_2025_regionconvert, organization={Wolfram Research}, title={RegionConvert}, year={2024}, url={https://reference.wolfram.com/language/ref/RegionConvert.html}, note=[Accessed: 26-March-2025 ]}