PxSDFIdx

Defined in include/foundation/PxMathUtils.h

static inline PxU32 PxSDFIdx(PxU32 i, PxU32 j, PxU32 k, PxU32 nbX, PxU32 nbY)

Computes the 1D index for a 3D grid point.

Parameters
  • i – [in] The x-coordinate index

  • j – [in] The y-coordinate index

  • k – [in] The z-coordinate index

  • nbX – [in] The number of grid points along the x-axis

  • nbY – [in] The number of grid points along the y-axis

Returns

The 1D index corresponding to the 3D grid point