Open topic with navigation
<node3d>.setScale
Scales a node
<node3d>.setScale( |
|
[x,y,z] |
mode = viz.ABS_PARENT |
) |
|
[x,y,z]
Specifies the scale factor that is applied independently to each of the three dimensions.
mode = viz.ABS_PARENT
Can be one of the following:
viz.ABS_PARENT | Perform the transformation absolutely in the parents coordinate system. |
viz.ABS_GLOBAL | Perform the transformation absolutely in world coordinates. |
viz.REL_LOCAL viz.ABS_LOCAL | Perform the transformation in the objects local coordinates system. |
viz.REL_PARENT | Perform the transformation relatively in the parents coordinate system. |
viz.REL_GLOBAL | Perform the transformation relatively in the global coordinate system. |
Remarks
Use this action to scale an object. The applied scaling can either be uniform or non-uniform about the three dimensions. If non-uniform scaling is applied, then the results of both translational and rotational transformations applied to the same object may be affected producing results that are often difficult to predict. For that reason, it is preferable to non-uniformly scale objects within the modeling software used to build the original object.
Return Value
None
Example
hedra = viz.add('tut_hedra.wrl')
hedra.setScale(2,2,2)
See also