29#ifndef GU_WINDING_NUMBER_H
30#define GU_WINDING_NUMBER_H
36#include "foundation/PxSimpleTypes.h"
37#include "foundation/PxHashMap.h"
38#include "foundation/PxArray.h"
39#include "GuWindingNumberCluster.h"
47 typedef ClusterApproximationT<PxReal, PxVec3> ClusterApproximation;
49 PX_PHYSX_COMMON_API PxF32 computeWindingNumber(
const Gu::BVHNode* tree,
const PxVec3& q,
const PxHashMap<PxU32, ClusterApproximation>& clusters,
50 const PxU32* triangles,
const PxVec3* points);
52 PX_PHYSX_COMMON_API PxF32 computeWindingNumber(
const Gu::BVHNode* tree,
const PxVec3& q, PxF32 beta,
const PxHashMap<PxU32, ClusterApproximation>& clusters,
53 const PxU32* triangles,
const PxVec3* points);
55 PX_PHYSX_COMMON_API
void precomputeClusterInformation(
const Gu::BVHNode* tree,
const PxU32* triangles,
const PxU32 numTriangles,
56 const PxVec3* points, PxHashMap<PxU32, ClusterApproximation>& result, PxI32 rootNodeIndex = 0);
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39