I3DExInstancePrimitive Struct Reference
[External Interfaces]

Inheritance diagram for I3DExInstancePrimitive:

IMCUnknown List of all members.

Public Member Functions

virtual uint32 MCCOMAPI GetObjectNumber ()=0
virtual void MCCOMAPI GetInstanceMesh (uint32 instanceKind, FacetMesh **mesh)=0
virtual void MCCOMAPI GetInstanceList (uint32 instanceKind, TInstanceList **instanceList)=0

Detailed Description

A primitive (see I3DExGeometricPrimitive) can derive from this interface when it is composed of multiple identical parts. For example a tree in which leaves are stored as instances. This allow storing the geometry of each object type only once. Note that you will need to provide your own Ray tracing implementation for this primitive (see IRaytracablePrimitive).


Member Function Documentation

virtual void MCCOMAPI I3DExInstancePrimitive::GetInstanceList (  uint32  instanceKind,
TInstanceList **  instanceList
)  [pure virtual]
 

Returns the list of instances for a given object

Parameters:
instanceKind A 0-based index that identifies the object (the number of objects is defined by GetObjectNumber())
instanceList A pointer (counted) to the instance list that is returned.

virtual void MCCOMAPI I3DExInstancePrimitive::GetInstanceMesh (  uint32  instanceKind,
FacetMesh **  mesh
)  [pure virtual]
 

Returns the mesh for a given object.

Parameters:
instanceKind A 0-based index that identifies the object (the number of objects is defined by GetObjectNumber())
mesh A pointer to the facet mesh that is returned.

virtual uint32 MCCOMAPI I3DExInstancePrimitive::GetObjectNumber (   )  [pure virtual]
 

Returns the number of "template" objects being instanciated in the primitive


The documentation for this struct was generated from the following file:
Generated on Mon Mar 14 12:29:00 2005 for Carrara SDK Doc by  doxygen 1.3.9.1