|
RavEngine
|
Represents a signed distance field. More...
#include <GuSDF.h>
Public Member Functions | |
| SDF (const PxEMPTY) | |
| SDF () | |
| Constructor. | |
| SDF (PxZERO s) | |
| Constructor. | |
| SDF (const SDF &sdf) | |
| Copy constructor. | |
| ~SDF () | |
| Destructor. | |
| PxReal * | allocateSdfs (const PxVec3 &meshLower, const PxReal &spacing, const PxU32 dimX, const PxU32 dimY, const PxU32 dimZ, const PxU32 subgridSize, const PxU32 sdfSubgrids3DTexBlockDimX, const PxU32 sdfSubgrids3DTexBlockDimY, const PxU32 sdfSubgrids3DTexBlockDimZ, PxReal subgridsMinSdfValue, PxReal subgridsMaxSdfValue, PxU32 bytesPerSparsePixel) |
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) |
Static Public Member Functions | |
| static void | getBinaryMetaData (PxOutputStream &stream) |
Public Attributes | |
| PxVec3 | mMeshLower |
| Lower bound of the original mesh. | |
| PxReal | mSpacing |
| Spacing of each sdf voxel. | |
| Dim3 | mDims |
| Dimension of the sdf. | |
| PxU32 | mNumSdfs |
| Number of sdf values. | |
| PxReal * | mSdf |
| Array of sdf. | |
| PxU32 | mSubgridSize |
| The number of cells in a sparse subgrid block (full block has mSubgridSize^3 cells and (mSubgridSize+1)^3 samples). If set to zero, this indicates that only a dense background grid SDF is used without sparse blocks. | |
| PxU32 | mNumStartSlots |
| Array length of mSubgridStartSlots. Only used for serialization. | |
| PxU32 * | mSubgridStartSlots |
| Array with start indices into the subgrid texture for every subgrid block. 10bits for z coordinate, 10bits for y and 10bits for x. | |
| PxU32 | mNumSubgridSdfs |
| Array length of mSubgridSdf. Only used for serialization. | |
| PxU8 * | mSubgridSdf |
| The data to create the 3d texture containg the packed subgrid blocks. Stored as PxU8 to support multiple formats (8, 16 and 32 bits per pixel) | |
| Dim3 | mSdfSubgrids3DTexBlockDim |
| Subgrid sdf is layed out as a 3d texture including packed blocks of size (mSubgridSize+1)^3. | |
| PxReal | mSubgridsMinSdfValue |
| The minimum value over all subgrid blocks. Used if normalized textures are used which is the case for 8 and 16bit formats. | |
| PxReal | mSubgridsMaxSdfValue |
| The maximum value over all subgrid blocks. Used if normalized textures are used which is the case for 8 and 16bit formats. | |
| PxU32 | mBytesPerSparsePixel |
| The number of bytes per subgrid pixel. | |
Represents a signed distance field.