Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

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,}.

DetailsDetails

  • 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:
  • Automaticautomatically determined side length
    Allthe original side length
    Scaled[s]fraction s of the original side length
    numnum 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},}].

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Resize a triangle:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Visualize the regions:

In[3]:=
Click for copyable input
Out[3]=

Resize a 3D mesh region:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input

Visualize the regions:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2016
(11.0)