Class SoNeighborToleranceElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoFloatElement
-
- com.openinventor.inventor.elements.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
-
-
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
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static float
get(SoState state)
Returns current tolerance factor from the state.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static float
getDefault()
Returns the default tolerance factor value.static void
set(SoState state, float tolerance)
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 Detail
-
getClassStackIndex
@Deprecated(since="9.3.0.0") public static int 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
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.
-
-