Click or drag to resize
AB4D logo

InstanceData Structure

InstanceData contains World and Color data that describe the world transformation and color of one geometry instance. After each change of InstancesData user must call Update method in InstancedGeometryVisual3D.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Ab3d.DirectXInstanceData

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public struct InstanceData

The InstanceData type exposes the following members.

Constructors
Methods
 NameDescription
Public methodStatic memberGetHitInstanceIndex GetHitInstanceIndex returns index of the instance that was hit in hit testing (defined by hitBounds). The method retuns -1 if hitBounds is not found (was not hit).
Public methodSetPosition(Point3D) Sets position for this instance
Public methodSetPosition(Vector3) Sets position for this instance
Public methodSetPosition(Single, Single, Single) Sets position for this instance
Public methodSetScale(Vector3) Sets scale for this instance
Public methodSetScale(Vector3D) Sets scale for this instance
Public methodSetScale(Single, Single, Single) Sets scale for this instance
Top
Fields
 NameDescription
Public fieldDiffuseColor Color used for diffuse material
Public fieldStatic memberHiddenInstanceColor HiddenInstanceColor is a Color4 with alpha value set to 0. When an instance has alpha color set to 0, then it will not be rendered.
Public fieldStatic memberSizeInBytes Size of this struct in bytes
Public fieldWorld World transformation
Top
See Also