RegionResize[reg,l]
resize the region reg to have the first side length l preserving side length ratios.
RegionResize[reg,{lmax}]
resize into a box with maximum side length lmax preserving side length ratios.
RegionResize[reg,{l1,l2,…}]
resize into a box with side lengths li.
RegionResize[reg,{{x1,min,x1,max},{x2,min,x2,max},…}]
resize into a box with corners {x1,min,x2,min,…} and {x1,max,x2,max,…}.
RegionResize
RegionResize[reg,l]
resize the region reg to have the first side length l preserving side length ratios.
RegionResize[reg,{lmax}]
resize into a box with maximum side length lmax preserving side length ratios.
RegionResize[reg,{l1,l2,…}]
resize into a box with side lengths li.
RegionResize[reg,{{x1,min,x1,max},{x2,min,x2,max},…}]
resize into a box with corners {x1,min,x2,min,…} and {x1,max,x2,max,…}.
Details
- RegionResize is used to resize a region in ways that either preserve the shape or distort the shape.
- The side lengths li can be any of:
-
Automatic automatically determined side length All the original side length Scaled[s] fraction s of the original side length num num side length {num} at most num side length - RegionResize[reg,l] is equivalent to RegionResize[reg,{l,Automatic,…}].
- RegionResize[reg,{l}] is equivalent to RegionResize[reg,{{l},{l},…}].
Examples
open all close allBasic Examples (2)
ℛ = Triangle[{{0, 0}, {1, 2}, {2, 1}}];𝒯 = RegionResize[ℛ, 1 / 2]Graphics[{Red, ℛ, StandardGray, 𝒯}]ℛ = DelaunayMesh[RandomReal[1, {100, 3}]];𝒯 = RegionResize[ℛ, {{1, 3}, {-2, 2}, {1, 4}}];Show[ℛ, 𝒯]Scope (26)
Basic Uses (7)
RegionResize works for any constant region:
RegionResize[Disk[], {{-1, 2}, {-1, 2}}]RegionResize[Disk[{x, y}, 2], {{-1, 2}, {-1, 2}}]ℛ = ImplicitRegion[x ^ 4 - x y + y ^ 4 ≤ 1., {x, y}];𝒯 = RegionResize[ℛ, {{-1, 2}, {-1, 1}}]RegionPlot[{ℛ, 𝒯}]RegionResize works on any geometric dimension:
RegionResize[Ball[{1, 2, 3, 4, 5, 7}, 8], {{0, 1}, {0, 2}, {0, 3}, {1, 4}, {5, 10}, {2, 3}}]Resize the region to have the first side length 2 and preserve side length ratios:
ℛ = Triangle[{{0, 0}, {1, 0}, {1, 2}}];𝒯 = RegionResize[ℛ, 2];RegionBounds[𝒯]Graphics[{Red, 𝒯, StandardGray, ℛ}]Resize into a box with maximum side length 3 and preserve side length ratios:
ℛ = Triangle[{{0, 0}, {1, 0}, {1, 2}}];𝒯 = RegionResize[ℛ, {3}];RegionBounds[𝒯]Graphics[{Red, 𝒯, StandardGray, ℛ}]Resize into a box with side lengths:
ℛ = Triangle[{{0, 0}, {1, 0}, {1, 2}}];𝒯 = RegionResize[ℛ, {1, 4}];RegionBounds[𝒯]Graphics[{StandardGray, 𝒯, Red, ℛ}]Resize into a box with corners:
ℛ = Triangle[{{0, 0}, {1, 0}, {1, 2}}];𝒯 = RegionResize[ℛ, {{-1, 1}, {2, 3}}];RegionBounds[𝒯]Graphics[{StandardGray, 𝒯, Red, ℛ}]The side lengths li can be automatically determined:
ℛ = Triangle[{{0, 0, 0}, {1, 0, 0}, {0, 1, 1}}];𝒯 = RegionResize[ℛ, {Automatic, 3, Automatic}];RegionBounds[𝒯]𝒯 = RegionResize[ℛ, {All, 3, 4}];RegionBounds[𝒯]A fraction of the original side length:
𝒯 = RegionResize[ℛ, {Scaled[1 / 2], 3, 4}];RegionBounds[𝒯]Graphics3D[{StandardGray, 𝒯, Red, ℛ}]𝒯 = RegionResize[ℛ, {1, 3, 4}];RegionBounds[𝒯]𝒯 = RegionResize[ℛ, {2, {3}, 4}];RegionBounds[𝒯]Special Regions (6)
RegionResize[Point[{{1}, {2}, {3}}], {{1, 4}}]RegionResize[Point[{{1, 1}, {2, 3}, {3, 5}}], {{1, 5}, {1, 3}}]RegionResize[Circle[{0, 0}, 3], {{1, 3}, {0, 3}}]RegionResize[Disk[{0, 0}, {3, 5}], {{0, 3}, {-5, 5}}]ℛ = Triangle[{{0, 0}, {1, 2}, {2, 1}}];𝒯 = RegionResize[ℛ, {{0, 2}, {0, 1}}]Graphics[{Red, ℛ, StandardGray, 𝒯}]RegionResize[Point[{{1, 1, 1}, {2, 3, 4}, {3, 5, 8}}], {{1, 2}, {1, 3}, {2, 5}}]RegionResize[Line[{{1, 2, 3}, {4, 5, 6}}], {{1, 2}, {1, 3}, {2, 5}}]RegionResize[Polygon[{{1, 0, 0}, {0, 2, 0}, {0, 0, 3}}], {{1, 2}, {1, 3}, {2, 5}}]ℛ = Cuboid[{1, 1, 1}];𝒯 = RegionResize[ℛ, {2, 2, 2 / 3}]Graphics3D[{StandardGray, 𝒯, Red, ℛ}]RegionResize[Simplex[{{1, 0, 0, 0}, {0, 2, 0, 0}, {0, 0, 3, 0}, {0, 0, 0, 4}}], {{0, 1}, {0, 2}, {0, 3}, {1, 4}}]RegionResize[Cuboid[{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}], {{0, 1}, {0, 2}, {0, 3}, {1, 4}, {5, 10}}]RegionResize[Ball[{1, 2, 3, 4, 5, 7}, 8], {{0, 1}, {0, 2}, {0, 3}, {1, 4}, {5, 10}, {2, 3}}]Formula Regions (3)
A union of two disks as an ImplicitRegion:
ℛ = ImplicitRegion[x^2 + y^2 ≤ 4∨(x - 3)^2 + y^2 ≤ 3, {x, y}];𝒯 = RegionResize[ℛ, {{0, 3}, {-2, 2}}]RegionPlot[{ℛ, 𝒯}]A union of two cylinders as an ImplicitRegion:
ℛ = ImplicitRegion[x^2 + y^2 ≤ 2∨(x - 2)^2 + y^2 ≤ 1, {x, y, {z, 0, 2}}];𝒯 = RegionResize[ℛ, {{0, 3}, {-2, 2}, {3, 4}}]RegionPlot3D[{ℛ, 𝒯}]A rational parametrization of a disk represented as a ParametricRegion:
ℛ = ParametricRegion[{(1 - t ^ 2) / (1 + t ^ 2), 2t / (1 + t ^ 2)}, {t}];𝒯 = RegionResize[ℛ, {{1, 2}, {0, 1}}]RegionPlot[{ℛ, 𝒯}]Mesh Regions (4)
MeshRegion in 2D:
ℛ = DelaunayMesh[RandomReal[1, {50, 2}]];𝒯 = RegionResize[ℛ, {{1, 3}, {0, 2}}];Show[ℛ, 𝒯]MeshRegion in 3D:
ℛ = DelaunayMesh[RandomReal[1, {100, 3}]];𝒯 = RegionResize[ℛ, {{1, 3}, {-2, 2}, {1, 4}}];Show[ℛ, 𝒯]BoundaryMeshRegion in 2D:
ℛ = ConvexHullMesh[RandomReal[1, {50, 2}]];𝒯 = RegionResize[ℛ, {{1, 4}, {-1, 2}}];Show[ℛ, 𝒯]BoundaryMeshRegion in 3D:
ℛ = ConvexHullMesh[RandomReal[1, {100, 3}]];
𝒯 = RegionResize[ℛ, {{1, 5}, {1, 5}, {1, 6}}];Show[ℛ, 𝒯]Derived Regions (4)
RegionIntersection of two regions:
ℛ = RegionIntersection[Disk[{0, 0}, 1], Disk[{0, 1}, 1]];𝒯 = RegionResize[ℛ, {{1, 5}, {0, 3}}];Show[DiscretizeRegion[ℛ], DiscretizeRegion[𝒯]]RegionUnion of mixed-dimensional regions:
ℛ = RegionUnion[Circle[{1, 0}, 1], Disk[{0, 0}, 1]];𝒯 = RegionResize[ℛ, {{1, 5}, {0, 3}}];Show[DiscretizeRegion[ℛ], DiscretizeRegion[𝒯]]ℛ = TransformedRegion[Disk[{0, 0}, 1], ScalingTransform[{3, 2}]];𝒯 = RegionResize[ℛ, {{1, 4}, {0, 3}}];Show[DiscretizeRegion[ℛ], DiscretizeRegion[𝒯]]ℛ = RegionBoundary[Disk[{0, 0}, 1]];𝒯 = RegionResize[ℛ, {{1, 4}, {0, 3}}]Show[DiscretizeRegion[ℛ], DiscretizeRegion[𝒯]]Subdivision Regions (2)
SubdivisionRegion in 2D:
ℛ = SubdivisionRegion[Rectangle[]];𝒯 = RegionResize[ℛ, {{1.2, 4}, {0, 2}}];Show[ℛ, 𝒯]SubdivisionRegion in 3D:
ℛ = SubdivisionRegion[Cube[]];𝒯 = RegionResize[ℛ, {{0, 4}, {0, 1}, {0, 2}}];Show[ℛ, 𝒯]Applications (4)
Graphics[{Red, ℛ = Rectangle[], StandardGray, RegionResize[ℛ, 1 / 2]}]Graphics[{Red, ℛ = Triangle[], StandardGray, RegionResize[ℛ, 1 / 2]}]Graphics3D[{Red, ℛ = Cuboid[], StandardGray, RegionResize[ℛ, {1 / 2, 3, 1 / 1}]}]ℛ = Pyramid[{{0, 0, 0}, {2, 0, 0}, {2, 2, 0}, {0, 2, 0}, {1, 1, 2}}];Graphics3D[{Red, ℛ, StandardGray, RegionResize[ℛ, {1 / 2, 3, 1 / 1}]}]Resize a 3D model before printing:
ℛ = ExampleData[{"Geometry3D", "Beethoven"}, "MeshRegion"]Abs[Subtract @@@ RegionBounds[ℛ]]𝒯 = RegionResize[ℛ, Scaled[1 / 2]];Abs[Subtract @@@ RegionBounds[𝒯]]Reduce the cost of the 3D printed model:
Printout3D[ℛ, "Sculpteo"]["Price"]Printout3D[𝒯, "Sculpteo"]["Price"]g = Graphics3D[{Blue, Cylinder[], Red, Sphere[{0, 0, 2}]}]Show[{g, RegionResize[DiscretizeGraphics[g], {{1, 4}, {1, 3}, {1, 4}}]}]g = Plot3D[Sin[x + y ^ 2], {x, -2, 2}, {y, -2, 2}]Show[{g, RegionResize[DiscretizeGraphics[g], Scaled[2 / 3]]}]Properties & Relations (3)
RegionResize can preserve the box ratios by resizing the region to have the first side length:
ℛ = RegionResize[DelaunayMesh[RandomReal[1, {100, 2}]], 1];𝒯 = RegionResize[ℛ, 3];Ratios[Subtract@@@RegionBounds[#]]& /@ {ℛ, 𝒯}Use RegionBounds to get bounds of a region:
ℛ = Triangle[{{0, 0}, {1, 2}, {2, 1}}];RegionBounds[ℛ]Rescale the region and get the new bounds:
𝒯 = RegionResize[ℛ, {{1, 4}, {1, 2}}];RegionBounds[𝒯]RescalingTransform can be used to resize the region:
ℛ = ArrayMesh[{{1, 0}, {1, 1}}, Frame -> True];𝒯 = RegionResize[ℛ, {{1, 5}, {1, 3}}]Use RescalingTransform:
TransformedRegion[ℛ, RescalingTransform[RegionBounds[ℛ], RegionBounds[𝒯]]]Related Guides
History
Text
Wolfram Research (2016), RegionResize, Wolfram Language function, https://reference.wolfram.com/language/ref/RegionResize.html.
CMS
Wolfram Language. 2016. "RegionResize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RegionResize.html.
APA
Wolfram Language. (2016). RegionResize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RegionResize.html
BibTeX
@misc{reference.wolfram_2026_regionresize, author="Wolfram Research", title="{RegionResize}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/RegionResize.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_regionresize, organization={Wolfram Research}, title={RegionResize}, year={2016}, url={https://reference.wolfram.com/language/ref/RegionResize.html}, note=[Accessed: 13-June-2026]}