Transformation
Transform (scale, move, and rotate) some 2D and 3D plot types.
Syntax
model.result(<pgtag>).feature(<ftag>).create(<atag>,"Transformation");
model.result(<pgtag>).feature(<ftag>).feature(<atag>).set(property,<value>);
Description
model.result(<pgtag>).feature(<ftag>).create(<atag>,"Transformation") creates a transformation attribute feature with the name <atag>, belonging to the feature <ftag>.
Transformation attributes can transform the coordinates of a plot feature by specified values for scaling, rotation, and moving. The transformation attribute can be added to arrow plots; contour plots; isosurface plots; particle plots; pellets plots; slice plots; streamline, streamline multislice, and streamline surface plots; surface plots; volume plots; and mesh plots.
The following properties are available:
Theta and phi angles for the rotation, if type is set to linear and axistype is set to spherical for a Rotation3D dataset, and if enablerot is true.
Axis coordinates (x, y, and z) for the rotation, if type is set to linear and axistype is set to cartesian for a Rotation3D dataset, and if enablerot is true.
x | y | z | cartesian | spherical
The axis type for a rotation, if type is set to linear for a Rotation3D dataset, if enablerot is true.
{0, 0} (2D), {0, 0, 0} (3D)
The move (translation), if transtype is general, if enablemove is true.
{0, 0} (2D), {0, 0, 0} (3D)
The translation, if transtype is general.
The base vectors of a transformation, specified using setIndex syntax, if transtype is general.
structured | general
See Also
Transformation2D, Transformation3D