|
RavEngine
|
Sampler to generate Poisson Samples locally on a triangle mesh or a shape. For every local addition of new samples, an individual sampling density can be used. More...
#include <PxSamplingExt.h>
Public Member Functions | |
| virtual void | setSamplingRadius (PxReal samplingRadius)=0 |
| virtual void | addSamples (const PxArray< PxVec3 > &samples)=0 |
| virtual PxU32 | removeSamples (const PxArray< PxVec3 > &samples)=0 |
| virtual void | addSamplesInSphere (const PxVec3 &sphereCenter, PxReal sphereRadius, bool createVolumeSamples=false)=0 |
| virtual void | addSamplesInBox (const PxBounds3 &axisAlignedBox, const PxQuat &boxOrientation, bool createVolumeSamples=false)=0 |
| virtual const PxArray< PxVec3 > & | getSamples () const =0 |
Public Member Functions inherited from physx::PxUserAllocated | |
| PX_INLINE void * | operator new (size_t, void *address) |
| PX_INLINE void | operator delete (void *, void *) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new (size_t size, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new[] (size_t size, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void * | operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void | operator delete (void *ptr, Alloc alloc, const char *fileName, int line) |
| template<typename Alloc > | |
| PX_INLINE void | operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line) |
| PX_INLINE void | operator delete (void *ptr) |
| PX_INLINE void | operator delete[] (void *ptr) |
Sampler to generate Poisson Samples locally on a triangle mesh or a shape. For every local addition of new samples, an individual sampling density can be used.
Adds samples
| [in] | samples | The samples to add. Adding samples is a bit an expensive operation. |
Implemented in physx::TriangleMeshPoissonSampler, and physx::ShapePoissonSampler.
|
pure virtual |
Adds new Poisson Samples inside the box specified
| [in] | axisAlignedBox | The axis aligned bounding box. Used to define the region where new samples get added. |
| [in] | boxOrientation | The orientation making an oriented bounding box out of the axis aligned one. Used to define the region where new samples get added. |
| [in] | createVolumeSamples | If set to true, samples will also get generated inside of the mesh, not just on its surface. |
Implemented in physx::TriangleMeshPoissonSampler, and physx::ShapePoissonSampler.
|
pure virtual |
Adds new Poisson Samples inside the sphere specified
| [in] | sphereCenter | The sphere's center. Used to define the region where new samples get added. |
| [in] | sphereRadius | The sphere's radius. Used to define the region where new samples get added. |
| [in] | createVolumeSamples | If set to true, samples will also get generated inside of the mesh, not just on its surface. |
Implemented in physx::TriangleMeshPoissonSampler, and physx::ShapePoissonSampler.
Gets the Poisson Samples
Implemented in physx::TriangleMeshPoissonSampler, and physx::ShapePoissonSampler.
|
pure virtual |
Adds samples
| [in] | samples | The samples to remove. Removing samples is a bit an expensive operation. |
Implemented in physx::TriangleMeshPoissonSampler, and physx::ShapePoissonSampler.
|
pure virtual |
Sets the sampling radius
| [in] | samplingRadius | The closest distance two surface samples are allowed to have. Changing the sampling radius is a bit an expensive operation. |
Implemented in physx::TriangleMeshPoissonSampler, and physx::ShapePoissonSampler.