Click or drag to resize
DigitalRuneLodCollectionAdd Method
Adds a LOD to the LodCollection.

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void Add(
	float distance,
	SceneNode node
)

Parameters

distance
Type: SystemSingle
The distance at which the LOD will be visible. (Must be normalized - see LodCollection.)
node
Type: DigitalRune.Graphics.SceneGraphSceneNode
The LOD node (a single scene node or subtree that represents the LOD).
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptiondistance is negative, infinite or NaN.
ArgumentNullExceptionnode is .
Remarks
If a LOD at the same distance already exists in the LodCollection, it will be overwritten.
See Also