Class SoScale

All Implemented Interfaces:
SafeDisposable

public class SoScale extends SoTransformation
Node representing a 3D geometric scaling. This node defines a 3D scaling about the origin. If the components of the scaling vector are not all the same, this produces a non-uniform scale.

File format/default:

Scale {

    scaleFactor 1 1 1
}

Action behavior:

SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction
Accumulates scaling transformation into the current transformation. Sets: SoModelMatrixElement

SoGetMatrixAction
Returns the matrix corresponding to the scaling.

See Also:
  • Field Details

    • scaleFactor

      public final SoSFVec3f scaleFactor
      The scaling factors in the x, y, and z dimensions. Negative and null values may cause undesirable results.
  • Constructor Details

    • SoScale

      public SoScale()
      Creates a scale node with default settings.