5.50. Scale (transformation)

<transformation geometry="scale"> ‐ A scale transformation

5.50.1. Attributes

NameTypeDefaults
idIDNone (required)
xFLOAT0.0
yFLOAT0.0
zFLOAT0.0
matrixFLOAT MATRIXNone (read-only)

5.50.2. Description

This element defines a scale transformation with respect to the x, y, and z axes.

The float values of the x, y, and z attributes define the scale factors along the x-, y-, and z-axis.

The value of the read-only attribute matrix is a 4x4 float matrix that represents the current curve transformation.

5.50.3. Expected child

None.

5.50.4. Example

In the example below, the node fish#1 is scaled by a factor of 2 in the x- and y-directions, and by a factor of 0.5 in the z-direction.

<node id="node_fish_scale">
  <transformation id="fish_scale" 
      geometry="scale" x="2" y="2" z=".5" />
  <use xlink:href="fish.xml:#fish#1" />
</node>