Stores the current neighbor tolerance factor. More...
#include <Inventor/elements/SoNeighborToleranceElement.h>
Public Member Functions | |
virtual void | print (FILE *fp) const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, float tolerance) |
static float | get (SoState *state) |
static float | getDefault () |
static void | setDefault (const float tolerance) |
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.
static float SoNeighborToleranceElement::get | ( | SoState * | state | ) | [inline, static] |
Returns current tolerance factor from the state.
static int SoNeighborToleranceElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoFloatElement.
static SoType SoNeighborToleranceElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoFloatElement.
static float SoNeighborToleranceElement::getDefault | ( | ) | [inline, static] |
Returns the default tolerance factor value.
virtual void SoNeighborToleranceElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoFloatElement.
static void SoNeighborToleranceElement::set | ( | SoState * | state, | |
float | tolerance | |||
) | [static] |
Sets the current tolerance factor in the state.
static void SoNeighborToleranceElement::setDefault | ( | const float | tolerance | ) | [static] |
set the default tolerance factor value.