Translation
Translate some 2D and 3D plot types.
Syntax
model.result(
<pgtag>
).feature(
<ftag>
).create(
<atag>
,
"
Translation
"
);
model.result(
<pgtag>
).feature(
<ftag>
).feature(
<atag>
).set(
property
,
<value>
);
Description
model.result(
<pgtag>
).feature(
<ftag>
).create(
<atag>
,"Translation")
creates a translation attribute feature with the name
<atag>
, belonging to the feature
<ftag>
.
Transformation attributes move the coordinates of a plot feature by specified translation values. The translation attribute can be added to arrow plots; contour plots; isosurface plots; particle plots; slice plots; streamline, streamline multislice, and streamline surface plots; surface plots; volume plots; and mesh plots.
The following property is available:
Table 7-146:
Valid Property for Translation
name
Value
Default
Description
trans
double array
{0, 0, 0}
(3D)
The translation of the plot as a vector (x and y displacements in 2D; x, y, and z displacements in 3D).
See Also
Deform