Class SoLinearProfile

  • All Implemented Interfaces:
    SafeDisposable

    public class SoLinearProfile
    extends SoProfile
    Piecewise-linear profile curve. This node specifies a piecewise-linear curve that is used as a profile for either a trimming patch of a NURBS surface or for the bevel of SoText3. The index field indexes into the current profile coordinates (specified in an SoProfileCoordinate2 or SoProfileCoordinate3 node). If the last value of the index field is SO_LINEAR_PROFILE_USE_REST_OF_VERTICES (-1), all remaining coordinates in the current coordinates will be used, starting with the coordinate after the previous index (all coordinates will be used if SO_LINEAR_PROFILE_USE_REST_OF_VERTICES is the only value in the index field). For example, if index contains the values [2,0,-1] and there are 4 profile coordinates (0-3), it is as if the index field contains [2,0,1,2,3].

    Note: Trimmed NURBS are correctly displayed only if an outer boundary is defined (must have counterclockwise orientation).

    File format/default:

    LinearProfile {

      index 0
      linkage START_FIRST
    }

    Action behavior:

    SoGLRenderAction, SoRayPickAction, SoCallbackAction
    Adds a profile to the current state.

    See Also:
    SoNurbsProfile, SoProfileCoordinate2, SoProfileCoordinate3
    • Constructor Detail

      • SoLinearProfile

        public SoLinearProfile()
        Creates a linear profile node with default settings.