Houdini Engine 3.1
 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
HAPI_AttributeTypeInfo typeInfo

Detailed Description

See Attributes.

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

HAPI_Bool HAPI_AttributeInfo::exists

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

HAPI_AttributeOwner HAPI_AttributeInfo::owner

Definition at line 1260 of file HAPI_Common.h.

HAPI_StorageType HAPI_AttributeInfo::storage

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

HAPI_AttributeTypeInfo HAPI_AttributeInfo::typeInfo

Attribute type info This is used to help identify the type of data stored in an attribute. Using the type is recommended over using just an attribute's name to identify its purpose.

Definition at line 1294 of file HAPI_Common.h.

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