Class SoNeighborToleranceElement

  • public class SoNeighborToleranceElement
    extends SoFloatElement
    Stores the current neighbor tolerance factor. Specifies the tolerance value to use when default normals are computed. Specifically it determines which (other) points in the shape are close enough to influence the normal at each vertex. Setting a smaller tolerance value will select a smaller number of points and can reduce the time required for computing normals on very large, very dense geometry.

    The default is 10e-5.

    If the OIV_NORMGEN_TOLERANCE environment variable is set, the default is 1/OIV_NORMGEN_TOLERANCE.

    See Also:
    SoShapeHints, SoPreferences
    • Method Detail

      • getClassStackIndex

        public static int getClassStackIndex()
        As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *
      • setDefault

        public static void setDefault​(float tolerance)
        set the default tolerance factor value.
      • set

        public static void set​(SoState state,
                               float tolerance)
        Sets the current tolerance factor in the state.
      • getDefault

        public static float getDefault()
        Returns the default tolerance factor value.
      • get

        public static float get​(SoState state)
        Returns current tolerance factor from the state.