HDK
|
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 |
Meta-data describing a Geo Part.
Definition at line 1723 of file HAPI_Common.h.
int HAPI_PartInfo::attributeCounts[HAPI_ATTROWNER_MAX] |
Definition at line 1738 of file HAPI_Common.h.
int HAPI_PartInfo::faceCount |
Definition at line 1731 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 1763 of file HAPI_Common.h.
HAPI_PartId HAPI_PartInfo::id |
Id to identify this part relative to it's Geo.
Definition at line 1726 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 1758 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.
Definition at line 1749 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 1743 of file HAPI_Common.h.
HAPI_StringHandle HAPI_PartInfo::nameSH |
String handle for the name of the part.
Definition at line 1728 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 1736 of file HAPI_Common.h.
HAPI_PartType HAPI_PartInfo::type |
Definition at line 1729 of file HAPI_Common.h.
int HAPI_PartInfo::vertexCount |
Definition at line 1732 of file HAPI_Common.h.