Houdini Engine 2.0
 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 pointAttributeCount
 
int faceAttributeCount
 
int vertexAttributeCount
 
int detailAttributeCount
 
HAPI_Bool isInstanced
 
int instancedPartCount
 
int instanceCount
 

Detailed Description

Definition at line 1186 of file HAPI_Common.h.

Member Data Documentation

int HAPI_PartInfo::detailAttributeCount

Definition at line 1201 of file HAPI_Common.h.

int HAPI_PartInfo::faceAttributeCount

Definition at line 1199 of file HAPI_Common.h.

int HAPI_PartInfo::faceCount

Definition at line 1192 of file HAPI_Common.h.

HAPI_PartId HAPI_PartInfo::id

Definition at line 1188 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 1221 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 accross as two parts, hence this count would be two. Call HAPI_GetInstancedPartIds() to get the list of HAPI_PartId's.

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

HAPI_StringHandle HAPI_PartInfo::nameSH

Definition at line 1189 of file HAPI_Common.h.

int HAPI_PartInfo::pointAttributeCount

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

HAPI_PartType HAPI_PartInfo::type

Definition at line 1190 of file HAPI_Common.h.

int HAPI_PartInfo::vertexAttributeCount

Definition at line 1200 of file HAPI_Common.h.

int HAPI_PartInfo::vertexCount

Definition at line 1193 of file HAPI_Common.h.


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