Interface ICamApiInstancedVO
Instancing aspect of a visual object: draws the object's mesh at several placements without duplicating its geometry, so one object can render as many copies. Implemented by the same object as ICamApiVisualObject (it also exposes ICamApiRenderableVO); flat : IUnknown, fetched via QueryInterface. Objects without drawable faces (e.g. a gizmo) do not implement it, so QI returns nil.
Namespace: CAMAPI.ViewPort
Assembly: CAMAPI.ViewPort.dll
Syntax
[Guid("A2E7C9D5-4B18-4F63-9C20-7E5A1D3B8F42")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ICamApiInstancedVO
Properties
InstanceCount
Number of instance placements currently added (0 when the object draws once at its own transform).
Declaration
int InstanceCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
AddInstance(TST3DMatrix)
Declaration
void AddInstance(TST3DMatrix Transform)
Parameters
| Type | Name | Description |
|---|---|---|
| TST3DMatrix | Transform |
ClearInstances()
Remove all instance placements, so the object is drawn once again at its own transform.
Declaration
void ClearInstances()