29#ifndef PX_SPARSE_GRID_PARAMS_H
30#define PX_SPARSE_GRID_PARAMS_H
34#include "foundation/PxSimpleTypes.h"
35#include "foundation/PxMath.h"
73 PX_CUDA_CALLABLE
PX_INLINE PxU32 getNumCellsPerSubgrid()
const
78 PX_CUDA_CALLABLE
PX_INLINE PxReal getSqrt3dx()
const
#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
PX_CUDA_CALLABLE PX_FORCE_INLINE float PxSqrt(float a)
Square root.
Definition PxMath.h:146
Parameters to define the sparse grid settings like grid spacing, maximal number of subgrids etc.
Definition PxSparseGridParams.h:46
PxU16 subgridSizeZ
Subgrid resolution in z dimension (must be an even number)
Definition PxSparseGridParams.h:109
PX_CUDA_CALLABLE PX_INLINE PxSparseGridParams(const PxSparseGridParams ¶ms)
Copy constructor.
Definition PxSparseGridParams.h:63
PxReal gridSpacing
Grid spacing for the grid.
Definition PxSparseGridParams.h:106
PxU16 haloSize
Number of halo cell layers around every subgrid cell. Only 0 and 1 are valid values.
Definition PxSparseGridParams.h:110
PxU16 subgridSizeY
Subgrid resolution in y dimension (must be an even number)
Definition PxSparseGridParams.h:108
PX_INLINE void operator=(const PxSparseGridParams ¶ms)
Assignment operator.
Definition PxSparseGridParams.h:95
PxU32 maxNumSubgrids
Maximum number of subgrids.
Definition PxSparseGridParams.h:105
PX_INLINE PxSparseGridParams()
Default constructor.
Definition PxSparseGridParams.h:50
PX_INLINE void setToDefault()
(re)sets the structure to the default.
Definition PxSparseGridParams.h:87
PxU16 subgridSizeX
Subgrid resolution in x dimension (must be an even number)
Definition PxSparseGridParams.h:107