Class SoBaseExtrusion

All Implemented Interfaces:
SafeDisposable
Direct Known Subclasses:
SoCircularExtrusion, SoExtrusion

public abstract class SoBaseExtrusion extends SoShape
Abstract base class for all extrusion-based shape nodes. This node is the abstract base class for all extrusion-based shape (geometry) nodes. It is used as a repository for convenience functions for subclasses and to provide a type identifier to make it easy to determine whether a shape is extrusion-based.

All extrusion-based shapes are created by extruding a 2D shape along a 3D spine. The user can determine which caps are created using the fields beginCap and endCap.

The scaleMode field is used to select the points that will be scaled by the scaleFactor in the current transformation (for example SoTransform), if any. Translation and rotation are applied in all cases.

The extrusionMode field is used to select the extrusion algorithm.

File format/default:

This is an abstract class. See the reference page of a derived class for the format and default values.

See Also:
  • Field Details

    • beginCap

      public final SoSFBool beginCap
      If true, begin planar cap surfaces generated. Default is true.
    • endCap

      public final SoSFBool endCap
      If true, end planar cap surfaces generated. Default is true.
    • spine

      public final SoMFVec3f spine
      Spine points. Default is [0 0 0, 0 1 0].
    • scaleMode

      public final SoSFEnum<SoBaseExtrusion.ScaleModes> scaleMode
      Scaling behavior of the extrusion. . Default is DEFAULT.
    • extrusionMode

      public final SoSFEnum<SoBaseExtrusion.ExtrusionModes> extrusionMode
      Construction behavior of the extrusion. . Default is SMOOTH.