# xsimrPointCloudData Struct Reference

The main particle data header. More...

`#include <xsi_miuserdata_defs.h>`

List of all members.

## Public Attributes
miUint | version
miUint | nb_particles
miTag | positions
int | i_data
int | n_data
xsimrAttributeData | attributes [1]

## Detailed Description

The main particle data header.

This structure contains the version of the data as the first entry (always), the cloud's bbox, number of particles in the cloud, the position vector and any optional attributes that were defined on the cloud.

The position data holds an array of `miVector` values that represent each particle's position in local space. The number of entries in that array equals xsimrPointCloudData::nb_particles. The number of entries in the data array of each particle attribute is the same, unless the data is constant. In the case of constant data, only the first entry is valid and should be used for each particle. The position array is always full, never constant.

See also:
  xsimrPointCloudData, xsimrPointCloudIndex, PointCloudDefines, xsimrAttributeData, xsimrParticleShape

Since:
  7.0

## Member Data Documentation

miUint version

Version of the data

miUint nb_particles

Number of particles in the cloud

miTag positions

Particle position in local space

int i_data

Data index

int n_data

Data count

xsimrAttributeData attributes[1]

Attributes (optional) defined on the cloud

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

- xsi_miuserdata_defs.h