HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HAPI_PartInfo Struct Reference

Meta-data describing a Geo Part. More...

#include <HAPI_Common.h>

Public Attributes

HAPI_PartId id
 Id to identify this part relative to it's Geo. More...
 
HAPI_StringHandle nameSH
 String handle for the name of the part. More...
 
HAPI_PartType type
 
int faceCount
 
int vertexCount
 
int pointCount
 
int attributeCounts [HAPI_ATTROWNER_MAX]
 
HAPI_Bool isInstanced
 
int instancedPartCount
 
int instanceCount
 
HAPI_Bool hasChanged
 

Detailed Description

Meta-data describing a Geo Part.

Definition at line 1578 of file HAPI_Common.h.

Member Data Documentation

int HAPI_PartInfo::attributeCounts[HAPI_ATTROWNER_MAX]

Definition at line 1593 of file HAPI_Common.h.

int HAPI_PartInfo::faceCount

Definition at line 1586 of file HAPI_Common.h.

HAPI_Bool HAPI_PartInfo::hasChanged

If this is false, the underlying attribute data appear to match that of the previous cook. In this case you may be able to re-used marshaled data from the previous cook.

Definition at line 1618 of file HAPI_Common.h.

HAPI_PartId HAPI_PartInfo::id

Id to identify this part relative to it's Geo.

Definition at line 1581 of file HAPI_Common.h.

int HAPI_PartInfo::instanceCount

The number of instances that this instancer part is instancing. Using the same example as with HAPI_PartInfo::instancedPartCount, if I'm instancing the merge of a curve and a box 5 times, this count would be 5. To be clear, all instanced parts are instanced the same number of times and with the same transform for each instance. Call HAPI_GetInstancerPartTransforms() to get the transform of each instance.

Definition at line 1613 of file HAPI_Common.h.

int HAPI_PartInfo::instancedPartCount

The number of parts that this instancer part is instancing. For example, if we're instancing a curve and a box, they would come across as two parts, hence this count would be two. Call HAPI_GetInstancedPartIds() to get the list of HAPI_PartId's.

Definition at line 1604 of file HAPI_Common.h.

HAPI_Bool HAPI_PartInfo::isInstanced

If this is true, don't display this part. Load its data but then instance it where the corresponding instancer part tells you to instance it.

Definition at line 1598 of file HAPI_Common.h.

HAPI_StringHandle HAPI_PartInfo::nameSH

String handle for the name of the part.

Definition at line 1583 of file HAPI_Common.h.

int HAPI_PartInfo::pointCount

Number of points. Note that this is NOT the number of "positions" as "points" may imply. If your geometry has 3 points then set this to 3 and not 3*3.

Definition at line 1591 of file HAPI_Common.h.

HAPI_PartType HAPI_PartInfo::type

Definition at line 1584 of file HAPI_Common.h.

int HAPI_PartInfo::vertexCount

Definition at line 1587 of file HAPI_Common.h.


The documentation for this struct was generated from the following file: