35#include "PxPhysXConfig.h"
36#include "geometry/PxSimpleTriangleMesh.h"
37#include "foundation/PxBounds3.h"
Class representing 3D range or axis aligned bounding box.
Definition PxBounds3.h:58
static PX_CUDA_CALLABLE PX_FORCE_INLINE PxBounds3 empty()
Return empty bounds.
Definition PxBounds3.h:284
A structure describing signed distance field for mesh.
Definition PxSDFDesc.h:70
PxU32 numThreadsForSdfConstruction
The number of threads that are launched to compute the signed distance field.
Definition PxSDFDesc.h:144
PX_INLINE PxSDFDesc()
Constructor.
Definition PxSDFDesc.h:158
PxDim3 sdfSubgrids3DTexBlockDim
Number of subgrid blocks in the 3d texture. The full texture dimension will be sdfSubgrids3DTexBlockD...
Definition PxSDFDesc.h:107
PxDim3 dims
Dimensions of sdf.
Definition PxSDFDesc.h:81
PxBoundedData sdfStartSlots
Array with start indices into the subgrid texture for every subgrid block. 10bits for z coordinate,...
Definition PxSDFDesc.h:117
PxReal subgridsMinSdfValue
The minimum value over all subgrid blocks. Used if normalized textures are used which is the case for...
Definition PxSDFDesc.h:122
PxReal spacing
The spacing of each sdf voxel.
Definition PxSDFDesc.h:91
PxU32 subgridSize
The number of cells in a sparse subgrid block (full block has subgridSize^3 cells and (subgridSize+1)...
Definition PxSDFDesc.h:97
PxBounds3 sdfBounds
The bounds of the sdf. If left unassigned (empty), the bounds of the mesh will be used.
Definition PxSDFDesc.h:132
PxReal subgridsMaxSdfValue
The maximum value over all subgrid blocks. Used if normalized textures are used which is the case for...
Definition PxSDFDesc.h:127
PX_INLINE bool isValid() const
Returns true if the descriptor is valid.
Definition PxSDFDesc.h:175
PxSdfBitsPerSubgridPixel::Enum bitsPerSubgridPixel
Enumeration that defines the number of bits per subgrid pixel (either 32, 16 or 8bits)
Definition PxSDFDesc.h:102
PxVec3 meshLower
The Lower bound of the original mesh.
Definition PxSDFDesc.h:86
PxBoundedData sdfSubgrids
The data to create the 3d texture containg the packed subgrid blocks. Stored as PxU8 to support multi...
Definition PxSDFDesc.h:112
PxBoundedData sdf
Pointer to first sdf array element.
Definition PxSDFDesc.h:76
PxReal narrowBandThicknessRelativeToSdfBoundsDiagonal
Narrow band thickness as a fraction of the bounds diagonal length. Every subgrid block that overlaps ...
Definition PxSDFDesc.h:139
Defines the number of bits per subgrid pixel.
Definition PxSDFDesc.h:56
Enum
Definition PxSDFDesc.h:59
@ e16_BIT_PER_PIXEL
16 bit per subgrid pixel (values will be stored as normalized integers)
Definition PxSDFDesc.h:61
@ e8_BIT_PER_PIXEL
8 bit per subgrid pixel (values will be stored as normalized integers)
Definition PxSDFDesc.h:60
@ e32_BIT_PER_PIXEL
32 bit per subgrid pixel (values will be stored as floats in world scale units)
Definition PxSDFDesc.h:62
3 Element vector class.
Definition PxVec3.h:50
PX_CUDA_CALLABLE PX_INLINE bool isFinite() const
returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
Definition PxVec3.h:156
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Definition PxCoreUtilityTypes.h:96
A helper structure to define dimensions in 3D.
Definition PxSDFDesc.h:48