rotate
Rotate geometry
Description
rotate(
uses the rotation axis specified by two reference points. This syntax is only valid for a
3-D geometry.g
,theta
,refpoint1,refpoint2
)
returns a handle h
= rotate(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.
Examples
Input Arguments
Output Arguments
Tips
rotate
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 = rotate(g,90)
.