public class SoLevelOfSimplification extends SoLOD
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:
If the DecimationType is AUTOMATIC, then the child is chosen based on the range value in the usual
percentages[i-1] <= DecimationPercentage < percentages[i]
SoLODmanner, 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
|center||0 0 0|
A child is chosen in the same way as in GLRender. If the
numTriangles field is greater than 0, the percentage value for this child is multiplied by the
numTriangles value and this value is added to the PrimitiveCount without traversing the child. If
numTriangles is less than or equal to 0, then the child is traversed to get the count.
Implemented as for
|Modifier and Type||Field and Description|
Number of triangles in highest (1.0) case.
Percentage decimation for each child.
|Constructor and Description|
Creates level-of-simplification node with default settings.
Constructor that takes approximate number of children.
addChild, findChild, getChild, getNumChildren, insertChild, removeAllChildren, removeChild, removeChild, replaceChild, replaceChild
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
public final SoMFFloat percentages
public final SoSFInt32 numTriangles
Generated on October 28, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com