SoLOD

InventorModule
genre InventorNodesAutomatic
author Silicon Graphics Inc
package MeVisLab/Standard
definition inventor.def

Purpose

The node SoLOD enables applications to automatically switch between various representations of objects. The children of this node typically represent the same object or objects at varying levels of detail, ranging from the highest to the lowest. The distance from the world-space eye point to the transformed center of the LOD is computed, and one child is drawn based on the values in the ranges field.

More precisely, if the distance from the world-space eye point to the transformed center is D and the ranges array contains LAST_RANGE+1 values (numbered 0…LAST_RANGE), then:

if       D < ranges[0]               : Child 0 is drawn
else if  ranges[i-1] < D < ranges[i] : Child i is drawn
else if  D > ranges[LAST_RANGE]      : Child LAST_RANGE+1 is drawn

Thus, N ranges and N+1 children should be specified. If too few children are specified, the last child will be used for the extra ranges. If too few ranges are specified, the extra children will never be used.

It is often useful to define the lowest detail child as a SoInfo node. This causes the object to completely disappear if it is far enough away from the eye point. Defining the highest detail child as a SoInfo node can also be beneficial if the object should disappear when it gets too close to the eye point.

Input Fields

child

name: child, type: SoNode

Output Fields

self

name: self, type: SoNode

Parameter Fields

Hidden Fields

center

name: center, type: Vector3, default: 0 0 0

Sets the object-space center of the model.

range

name: range, type: DoubleList, default: [  ]

Sets world-space distances to use as switching criteria.