PxParticleFluidReadData Class Reference
[Particles]
Data layout descriptor for reading fluid particle data from the SDK.
More...
#include <PxParticleFluidReadData.h>
Inheritance diagram for PxParticleFluidReadData:
![Inheritance graph](classPxParticleFluidReadData__inherit__graph.png)
Collaboration diagram for PxParticleFluidReadData:
![Collaboration graph](classPxParticleFluidReadData__coll__graph.png)
Public Member Functions | |
virtual | ~PxParticleFluidReadData () |
virtual destructor | |
Public Attributes | |
PxStrideIterator< const PxF32 > | densityBuffer |
Particle density data. |
Detailed Description
Data layout descriptor for reading fluid particle data from the SDK.Additionally to PxParticleReadData, the density can be read from the SDK.
Constructor & Destructor Documentation
virtual PxParticleFluidReadData::~PxParticleFluidReadData | ( | ) | [inline, virtual] |
virtual destructor
Member Data Documentation
Particle density data.
The density depends on how close particles are to each other. The density values are normalized such that:
- Particles which have no neighbors (no particles closer than restParticleDistance * 2) will have a density of zero.
- Particles which are at rest density (distances corresponding to restParticleDistance in the mean) will have a density of one.
The density buffer is only guaranteed to be valid after the particle fluid has been simulated. Otherwise densityBuffer.ptr() is NULL. This also applies to particle fluids that are not assigned to a scene.
The documentation for this class was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com