Click or drag to resize
Ab4d.SharpEngine logo

InstancedMeshNodeSetInstancesData(WorldColorInstanceData, BoundingBox) Method

SetInstancesData method sets an array of WorldColorInstanceData structs that define the world transformations (positions, scales, rotations) and colors or instanced geometry objects. Calling this method sets StartInstanceIndex to zero and InstancesCount to the number of elements in the instancesData array. After each change of InstancesData user must call UpdateInstancesData(Boolean) or UpdateInstancesData(BoundingBox) methods. This method also gets the BoundingBox of all mesh instances. If you do not know the BoundingBox call the SetInstancesData(WorldColorInstanceData) method.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public void SetInstancesData(
	WorldColorInstanceData[] instancesData,
	BoundingBox boundingBox
)

Parameters

instancesData  WorldColorInstanceData
an array of WorldColorInstanceData structs that define the world transformations (positions, scales, rotations) and colors or instanced geometry objects
boundingBox  BoundingBox
BoundingBox of all mesh instances (without the transformation that is applied to this SceneNode)
See Also