Houdini Engine 1.9
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HAPI_AttributeInfo Struct Reference

See Attributes. More...

#include <HAPI_Common.h>

Public Attributes

HAPI_Bool exists
 
HAPI_AttributeOwner owner
 
HAPI_StorageType storage
 
HAPI_AttributeOwner originalOwner
 
int count
 
int tupleSize
 

Detailed Description

See Attributes.

Definition at line 1160 of file HAPI_Common.h.

Member Data Documentation

int HAPI_AttributeInfo::count

Number of attributes. This count will match the number of values given the owner. For example, if the owner is HAPI_ATTROWNER_VERTEX this count will be the same as the HAPI_PartInfo::vertexCount. To be clear, this is not the number of values in the attribute, rather it is the number of attributes. If your geometry has three 3D points then this count will be 3 (not 3*3) while the HAPI_AttributeInfo::tupleSize will be 3.

Definition at line 1185 of file HAPI_Common.h.

HAPI_Bool HAPI_AttributeInfo::exists

Definition at line 1162 of file HAPI_Common.h.

HAPI_AttributeOwner HAPI_AttributeInfo::originalOwner

When converting from the Houdini native GA geometry format to the GT geometry format HAPI uses, some attributes might change owners. For example, in Houdini GA curves can have points shared by vertices but the GT format only supports curve vertices (no points). This means that if you had point attributes on a curve in Houdini, when it comes out of HAPI those point attributes will now be vertex attributes. In this case, the HAPI_AttributeInfo::owner will be set to HAPI_ATTROWNER_VERTEX but the HAPI_AttributeInfo::originalOwner will be HAPI_ATTROWNER_POINT.

Definition at line 1176 of file HAPI_Common.h.

HAPI_AttributeOwner HAPI_AttributeInfo::owner

Definition at line 1164 of file HAPI_Common.h.

HAPI_StorageType HAPI_AttributeInfo::storage

Definition at line 1165 of file HAPI_Common.h.

int HAPI_AttributeInfo::tupleSize

Number of values per attribute. Note that this is NOT the memory size of the attribute. It is the number of values per attributes. Multiplying this by the size of the HAPI_AttributeInfo::storage will give you the memory size per attribute.

Definition at line 1192 of file HAPI_Common.h.


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