RavEngine
Loading...
Searching...
No Matches
physx::PxTriangleMeshPoissonSampler Class Referenceabstract

Sampler to generate Poisson Samples on a triangle mesh. More...

#include <PxSamplingExt.h>

Inheritance diagram for physx::PxTriangleMeshPoissonSampler:
[legend]
Collaboration diagram for physx::PxTriangleMeshPoissonSampler:
[legend]

Public Member Functions

virtual const PxArray< PxI32 > & getSampleTriangleIds () const =0
 
virtual const PxArray< PxVec3 > & getSampleBarycentrics () const =0
 
virtual bool isPointInTriangleMesh (const PxVec3 &p)=0
 
- Public Member Functions inherited from physx::PxPoissonSampler
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)
 

Detailed Description

Sampler to generate Poisson Samples on a triangle mesh.

Member Function Documentation

◆ getSampleBarycentrics()

virtual const PxArray< PxVec3 > & physx::PxTriangleMeshPoissonSampler::getSampleBarycentrics ( ) const
pure virtual

Gets the Poisson Samples' barycentric coordinates

Returns
Returns the generated Poisson Samples' barycentric coordinates

Implemented in physx::TriangleMeshPoissonSampler.

◆ getSampleTriangleIds()

virtual const PxArray< PxI32 > & physx::PxTriangleMeshPoissonSampler::getSampleTriangleIds ( ) const
pure virtual

Gets the Poisson Samples' triangle indices

Returns
Returns the generated Poisson Samples' triangle indices

Implemented in physx::TriangleMeshPoissonSampler.

◆ isPointInTriangleMesh()

virtual bool physx::PxTriangleMeshPoissonSampler::isPointInTriangleMesh ( const PxVec3 &  p)
pure virtual

Checks whether a point is inside the triangle mesh

Returns
Returns true if the point is inside the triangle mesh

Implemented in physx::TriangleMeshPoissonSampler.


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