SoNeighborToleranceElement Class Reference
[Elements]

VSG extension Stores the current neighbor tolerance factor. More...

#include <Inventor/elements/SoNeighborToleranceElement.h>

Inheritance diagram for SoNeighborToleranceElement:
SoFloatElement SoElement SoTypedObject

List of all members.

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)

Detailed Description

VSG extension 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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/