Houdini Engine 3.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HAPI_PartInfo Struct Reference

#include <HAPI_Common.h>

Public Attributes

HAPI_PartId id
HAPI_StringHandle nameSH
HAPI_PartType type
int faceCount
int vertexCount
int pointCount
int attributeCounts [HAPI_ATTROWNER_MAX]
HAPI_Bool isInstanced
int instancedPartCount
int instanceCount

Detailed Description

Definition at line 1219 of file HAPI_Common.h.

Member Data Documentation

int HAPI_PartInfo::attributeCounts[HAPI_ATTROWNER_MAX]

Definition at line 1231 of file HAPI_Common.h.

int HAPI_PartInfo::faceCount

Definition at line 1225 of file HAPI_Common.h.

HAPI_PartId HAPI_PartInfo::id

Definition at line 1221 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 1251 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 1242 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 1236 of file HAPI_Common.h.

HAPI_StringHandle HAPI_PartInfo::nameSH

Definition at line 1222 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 1227 of file HAPI_Common.h.

HAPI_PartType HAPI_PartInfo::type

Definition at line 1223 of file HAPI_Common.h.

int HAPI_PartInfo::vertexCount

Definition at line 1226 of file HAPI_Common.h.

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