Houdini Engine 3.2
 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
 
HAPI_Bool hasChanged
 

Detailed Description

Definition at line 1380 of file HAPI_Common.h.

Member Data Documentation

int HAPI_PartInfo::attributeCounts[HAPI_ATTROWNER_MAX]

Definition at line 1392 of file HAPI_Common.h.

int HAPI_PartInfo::faceCount

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

HAPI_PartId HAPI_PartInfo::id

Definition at line 1382 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 1412 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 1403 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 1397 of file HAPI_Common.h.

HAPI_StringHandle HAPI_PartInfo::nameSH

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

HAPI_PartType HAPI_PartInfo::type

Definition at line 1384 of file HAPI_Common.h.

int HAPI_PartInfo::vertexCount

Definition at line 1387 of file HAPI_Common.h.


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