Main Content

Scale geometry

returns a handle `h`

= scale(`g`

,___)`h`

to the resulting geometry object
`g`

. Use this syntax with any input arguments from the previous
syntaxes.

If the original geometry is a `DiscreteGeometry`

object, then the
function modifies the original geometry and returns the handle `h`

to
the modified `DiscreteGeometry`

geometry object. If the original geometry
is an `AnalyticGeometry`

object, then `h`

is a handle
to a new `DiscreteGeometry`

geometry object. In this case, the original
geometry remains unchanged.

`scale`

modifies a geometry, but it does not modify a mesh. After modifying a geometry, regenerate the mesh to ensure a proper mesh association with the new geometry.If the scaling factor is negative, then the coordinates will flip their signs. The scaling factor of

`-1`

mirrors the existing geometry if the reference point is the origin.If

`g`

is an`AnalyticGeometry`

object, and you want to replace it with the resulting discrete geometry, assign the output to the original geometry, for example,`g = scale(g,20)`

.

`rotate`

| `translate`

| AnalyticGeometry Properties | DiscreteGeometry Properties | `pdegplot`

| `importGeometry`

| `geometryFromMesh`

| `generateMesh`