translate
Translate geometry
Description
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.
Examples
Input Arguments
Output Arguments
Tips
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 anAnalyticGeometry
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])
.
Version History
See Also
rotate
| scale
| AnalyticGeometry Properties | DiscreteGeometry Properties | pdegplot
| importGeometry
| geometryFromMesh
| generateMesh