PxParticleFluidReadData Class Reference
[particles (deprecated)]

Data layout descriptor for reading fluid particle data from the SDK. (deprecated). More...

#include <PxParticleFluidReadData.h>

Inheritance diagram for PxParticleFluidReadData:

Inheritance graph
PxParticleReadDataPxLockedData
[legend]
Collaboration diagram for PxParticleFluidReadData:

Collaboration graph
PxParticleReadDataPxLockedDataPxStrideIterator\< const PxF32 \>PxStrideIterator\< const PxParticleFlags \>PxStrideIterator\< const PxVec3 \>PxVec3
[legend]

List of all members.

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. (deprecated).

Additionally to PxParticleReadData, the density can be read from the SDK.

Deprecated:
The PhysX particle feature has been deprecated in PhysX version 3.4
See also:
PxParticleReadData PxParticleFluid.lockParticleFluidReadData()

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:

  1. Particles which have no neighbors (no particles closer than restParticleDistance * 2) will have a density of zero.
  2. 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-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com