SoLevelOfSimplification Class Reference
[GroupsLarge Model]

VSG extension Level-of-detail switching node designed for grouping simplified versions of the same shape. More...

#include <Inventor/nodes/SoLevelOfSimplification.h>

Inheritance diagram for SoLevelOfSimplification:
SoLOD SoGroup SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoLevelOfSimplification ()
 SoLevelOfSimplification (int nChildren)

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoMFFloat percentages
SoSFInt32 numTriangles

Detailed Description

VSG extension Level-of-detail switching node designed for grouping simplified versions of the same shape.

This group node is used to group the results of simplifying a shape, such that every child represents the same model but with a different number of primitives. Since it is derived from SoLOD, it can behave as a distance-based level-of-detail node; however, it also responds to the decimation percentage element. It records what percentage decimation each child is, and then chooses the appropriate child based on the DecimationPercentage and DecimationType elements.

You should specify N percentages for N+1 children. If the DecimationType is HIGHEST or LOWEST, then the LevelOfSimplification node will automatically choose the first or last child, respectively. If the DecimationType is PERCENTAGE, then the node will choose child "i" based on the decimation percentage element value such that:

      percentages[i-1] <= DecimationPercentage < percentages[i]
     

If the DecimationType is AUTOMATIC, then the child is chosen based on the range value in the usual SoLOD manner, but no child greater than the value of the DecimationPercentage element will be chosen.

This node also has a field for recording how many triangles the full detail child contains. This allows this node to answer an SoGetPrimitiveCountAction without traversing its children. This is a benefit when some children contain WWWInline , a common occurrence. If the children contain some non-triangle primitives, then the field should be -1 which will force the node to traverse its children during SoGetPrimitiveCountAction.

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoGetPrimitiveCountAction, SoLOD, SoOctreeOrdering, SoRenderList, SoValueOrdering SoLevelOfDetail


Constructor & Destructor Documentation

SoLevelOfSimplification::SoLevelOfSimplification (  ) 

Creates level-of-simplification node with default settings.

SoLevelOfSimplification::SoLevelOfSimplification ( int  nChildren  ) 

Constructor that takes approximate number of children.


Member Function Documentation

static SoType SoLevelOfSimplification::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoLOD.

virtual SoType SoLevelOfSimplification::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoLOD.


Member Data Documentation

Number of triangles in highest (1.0) case.

Can be -1 if unknown or if children contain primitives other than triangles.

Percentage decimation for each child.

Should be numbers between 0.0 and 1.0, with 1.0 representing full detail and 0.0 representing bounding box detail.


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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/