Main Content

Translate geometry

returns a handle `h`

= translate(`g`

,`s`

)`h`

to the resulting geometry object
`g`

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

`translate`

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

`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 = translate(g,[1 2])`

.

AnalyticGeometry Properties | DiscreteGeometry Properties | `generateMesh`

| `geometryFromMesh`

| `importGeometry`

| `pdegplot`

| `rotate`

| `scale`