Public Attributes
xsimrAttributeData Struct Reference
xsimrCurveExtrapolation Enum

## Detailed Description

A structure containing the information for a single attribute.

Each attribute has a name and a type. The tag points to a miUserdata blob that contains a flat array of xsimrPointCloudData::nb_particles attribute values.

Note:
  If the xsimrAttributeData::constant flag is `miTRUE`, then all the attribute entries are the same value and therefore only the first attribute entry is valid to conserve space.

See also:
  xsimrAttributeType, xsimrPointCloudData, xsimrParticleShape

Since:
  7.0

Example:
  Example demonstrating how to use the xsimrAttributeData structure

              miScalar getSizeAtIndex( siParticleAttribute *attr, miUint pid, miUint index )
              {
                  miUserdata      *data_ptr;
                  miScalar        *size_ptr;
                  miScalar        result;

                  if( index >= attr->count )
                      index = attr->count - 1;

                  data_ptr = (miUserdata *)mi_db_access( attr->tag );
                  size_ptr = (miScalar *)&data_ptr->parameters[ 0 ];
                  if( attr->constant )
                      result = size_ptr[ 0 ];
                  else
                      result = size_ptr[ pid * attr->count + index ];

                  mi_db_unpin( attr_size->tag );

                  return( result );
              }

`#include <xsi_miuserdata_defs.h>`

List of all members.

## Public Attributes
miTag | name
xsimrAttributeType | type
miBoolean | constant
miUint | size
miTag | offsets
miTag | data
miTag | blob_type

## Member Data Documentation

miTag name

The name of the attribute. The name is case-insensitive.

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

- xsi_miuserdata_defs.h