RegionConvert[reg,form]
converts the region representation reg to the specified form.
RegionConvert
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 all close allBasic Examples (2)
Convert the unit disk to the implicit form:
RegionConvert[Disk[], "Implicit"]RegionConvert[Disk[], "Parametric"]Convert a cube to the implicit form:
RegionConvert[Cube[], "Implicit"]RegionConvert[Cube[], "Parametric"]Scope (11)
Special Regions (5)
Convert Rectangle to the implicit form:
RegionConvert[Rectangle[{1, 2}, {10, 8}], "Implicit"]RegionConvert[Rectangle[{1, 2}, {10, 8}], "Parametric"]Region[Rectangle[{1, 2}, {10, 8}]]Convert DiskSegment to the implicit form:
RegionConvert[DiskSegment[{0, 0}, 1, {0, 3Pi / 2}], "Implicit"]RegionConvert[DiskSegment[{0, 0}, 1, {0, 3Pi / 2}], "Parametric"]Region[DiskSegment[{0, 0}, 1, {0, 3Pi / 2}]]Convert CapsuleShape to the implicit form:
RegionConvert[CapsuleShape[], "Implicit"]RegionConvert[CapsuleShape[], "Parametric"]Region[CapsuleShape[]]Convert Hyperplane to the implicit form:
RegionConvert[Hyperplane[{-1, -1, 1}, {1, 2, 3}], "Implicit"]RegionConvert[Hyperplane[{-1, -1, 1}, {1, 2, 3}], "Parametric"]Region[Hyperplane[{-1, -1, 1}, {1, 2, 3}]]Represent Sphere as a B-spline surface:
bs = RegionConvert[Sphere[], "Spline"]Visualize it, along with the control points:
cpts = First[bs];
Show[Graphics3D[{PointSize[Medium], Red, Map[Point, cpts], Gray, Line[cpts], Line[Transpose[cpts]]}], Graphics3D[bs]]Formula Regions (2)
Convert an ImplicitRegion object to the implicit form:
ℛ = ImplicitRegion[(x - 5)^2 + (y - 1)^2 ≤ 1, {x, y}];RegionConvert[ℛ, "Implicit"]Convert a ParametricRegion object to the implicit form:
ℛ = ParametricRegion[{Cos[θ], Sin[θ]}, {{θ, 0, 2π}}];RegionConvert[ℛ, "Implicit"]Mesh Regions (2)
Convert a MeshRegion object to the implicit form:
ℛ = ConvexHullMesh[RandomReal[1, {50, 2}]]RegionConvert[ℛ, "Implicit"]A mesh region with disconnected components:
ℛ = MeshRegion[{{0, 0}, {1, 0}, {0, 1}, {1, 1}, {2, 1}, {2, 0}}, Polygon[{{1, 2, 3}, {4, 5, 6}}]]RegionConvert[ℛ, "Implicit"]Convert a BoundaryMeshRegion object to the implicit form:
ℛ = BoundaryMeshRegion[{{0, 0, 0}, {4, 0, 0}, {0, 4, 0}, {0, 0, 4}}, Polygon[{{1, 2, 3}, {1, 2, 4}, {2, 3, 4}, {1, 3, 4}}]]RegionConvert[ℛ, "Implicit"]A boundary mesh region with disconnected components:
ℛ = BoundaryMeshRegion[{{0, -1}, {-1, 0}, {0, 0}, {1, 0}, {0, 1}, {-1 / 2, 1 / 2}, {-1, 1 / 2}, {-1 / 2, 1}}, Line[{1, 3, 2, 1}], Line[{3, 4, 5, 3}], Line[{6, 7, 8, 6}]]RegionConvert[ℛ, "Implicit"]Derived Regions (2)
Convert a BooleanRegion object to the implicit form:
ℛ = BooleanRegion[Or, {Disk[{1, 1}, 1], Disk[{0, 0}, 1]}];RegionConvert[ℛ, "Implicit"]Region[%]Convert a TransformedRegion object to the implicit form:
ℛ = TransformedRegion[Rectangle[], RotationTransform[π / 4]];RegionConvert[ℛ, "Implicit"]Region[%]Applications (3)
Compute the area of an annulus using its implicit form:
RegionConvert[Annulus[], "Implicit"]NIntegrate[Boole[(1/4) ≤ x ^ 2 + y ^ 2 ≤ 1], {x, -1, 1}, {y, -1, 1}]N[Area[Annulus[]]]Compute the volume of a ball using its implicit form:
RegionConvert[Ball[], "Implicit"]NIntegrate[Boole[x^2 + y^2 + z^2 ≤ 1], {x, -1, 1}, {y, -1, 1}, {z, -1, 1}]N[Volume[Ball[]]]Find the projection of an implicit region on the
plane in
:
ℛ = RegionConvert[Icosahedron[], "Implicit"];prj = Reduce[Subscript[∃, z]{x, y, z}∈ℛ, Reals];RegionPlot[prj, {x, -1, 1}, {y, -1, 1}]Properties & Relations (3)
Use CanonicalizePolygon to convert a region representation to a polygon form:
CanonicalizePolygon[Triangle[]]Use CanonicalizePolyhedron to convert a region representation to a polyhedron form:
CanonicalizePolyhedron[Dodecahedron[]]Use DiscretizeRegion to convert a region into a mesh:
DiscretizeRegion[Triangle[], MaxCellMeasure -> Infinity]Related Guides
Text
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.
APA
Wolfram Language. (2021). RegionConvert. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RegionConvert.html
BibTeX
@misc{reference.wolfram_2026_regionconvert, author="Wolfram Research", title="{RegionConvert}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/RegionConvert.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_regionconvert, organization={Wolfram Research}, title={RegionConvert}, year={2024}, url={https://reference.wolfram.com/language/ref/RegionConvert.html}, note=[Accessed: 13-June-2026]}