Transformation2D, Transformation3D
Create a transformation 2D or transformation 3D dataset. Use a transformation dataset to scale, rotate, and move a geometry in another dataset. If you use multiple transformations, note that they are performed in that order and that they do not always commute. If you need a transformation in another order, use multiple transformation datasets in succession with only one type of transformation in each dataset.
Syntax
model.result().dataset().create(<dtag>,"Transformation2D");
model.result().dataset().create(<dtag>,"Transformation3D");
model.result().dataset(<dtag>).setIndex(...);
model.result().dataset(<dtag>).set(property,<value>);
Description
model.result().dataset().create(<dtag>,"Transformation2D") creates a 2D transformation dataset feature named <dtag>.
model.result().dataset().create(<dtag>,"Transformation3D") creates a 3D transformation dataset feature named <dtag>.
This dataset takes a geometry from another dataset and adds a transformation that can include scaling, rotation, and translation (moving).
The following properties are available for Transformation2D and Transformation3D:
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.
none | dataset name
{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