Click or drag to resize
Ab4d.SharpEngine logo

InstancedMeshNodeUpdateInstancesData(Boolean) Method

UpdateInstancesData recreates the instances data buffer from the array of WorldColorInstanceData that was set by calling the SetInstancesData(WorldColorInstanceData) method. When the BoundingBox has changed and you know the new bounding box, call the UpdateInstancesData(BoundingBox) to prevent calculating it from the instances data.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public void UpdateInstancesData(
	bool updateBoundingBox = true
)

Parameters

updateBoundingBox  Boolean  (Optional)
 
Exceptions
ExceptionCondition
InvalidOperationExceptionwhen SetInstancesData was not called before
See Also