Click or drag to resize
AB4D logo

InstancedModel3DGroupNodeSetInstanceData Method

Updates the InstanceData and InstancesCount. This method must be called after the instance data is changed.

Namespace: Ab3d.DirectX.Models
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public void SetInstanceData(
	InstanceData[] instancesData,
	bool updateBounds = true
)

Parameters

instancesData  InstanceData
array of InstanceData
updateBounds  Boolean  (Optional)
when true the BoundingBox of this Node is recalculated. Can be set to false to skip this calculation that can take some time.
Remarks

SetInstanceData Updates the InstanceData.

This method must be called after the instance data is changed.

When the instanceData is changed, usually the BoundingBox of this SceneNode should be also changed. Because it can take some time to calculate the new bounding box, it is possible to prevent updating BoundingBox with specifying updateBounds property to false.

See Also