PxIsosurfaceCallback
Defined in include/PxIsosurfaceExtraction.h
-
class PxIsosurfaceCallback : public PxParticleSystemCallback
Default implementation of a particle system callback to trigger the isosurface extraction.
A call to fetchResultsParticleSystem() on the PxScene will synchronize the work such that the caller knows that the post solve task completed.
Public Functions
-
inline void initialize(PxIsosurfaceExtractor *isosurfaceExtractor, PxU32 validPhaseMask = PxParticlePhaseFlag::eParticlePhaseFluid)
Initializes the isosurface callback.
- Parameters
isosurfaceExtractor – [in] The isosurface extractor
validPhaseMask – [in] The valid phase mask marking the phase bits that particles must have set in order to contribute to the isosurface
-
inline virtual void onPostSolve(const PxGpuMirroredPointer<PxGpuParticleSystem> &gpuParticleSystem, CUstream stream)
Method gets called after the particle system simulation step completed.
- Parameters
gpuParticleSystem – [in] Pointers to the particle systems gpu data available as host accessible pointer and as gpu accessible pointer
stream – [in] The stream on which all cuda kernel calls get scheduled for execution. A call to fetchResultsParticleSystem() on the PxScene will synchronize the work such that the caller knows that the task completed.
-
inline virtual void onBegin(const PxGpuMirroredPointer<PxGpuParticleSystem>&, CUstream)
Method gets called when dirty data from the particle system is uploated to the gpu.
- Parameters
gpuParticleSystem – [in] Pointers to the particle systems gpu data available as host accessible pointer and as gpu accessible pointer
stream – [in] The stream on which all cuda kernel calls get scheduled for execution. A call to fetchResultsParticleSystem() on the PxScene will synchronize the work such that the caller knows that the task completed.
-
inline virtual void onAdvance(const PxGpuMirroredPointer<PxGpuParticleSystem>&, CUstream)
Method gets called when the simulation step of the particle system is performed.
- Parameters
gpuParticleSystem – [in] Pointers to the particle systems gpu data available as host accessible pointer and as gpu accessible pointer
stream – [in] The stream on which all cuda kernel calls get scheduled for execution. A call to fetchResultsParticleSystem() on the PxScene will synchronize the work such that the caller knows that the task completed.
-
inline void initialize(PxIsosurfaceExtractor *isosurfaceExtractor, PxU32 validPhaseMask = PxParticlePhaseFlag::eParticlePhaseFluid)