Class SoNeighborToleranceElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoFloatElement
com.openinventor.inventor.elements.SoNeighborToleranceElement
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
Returns current tolerance factor from the state.static int
Deprecated.As of Open Inventor 9.3.0.0.static float
Returns the default tolerance factor value.static void
Sets the current tolerance factor in the state.static void
setDefault
(float tolerance) set the default tolerance factor value.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. 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
Sets the current tolerance factor in the state. -
getDefault
public static float getDefault()Returns the default tolerance factor value. -
get
Returns current tolerance factor from the state.
-