27#ifndef EXT_FAST_WINDING_NUMBER_H
28#define EXT_FAST_WINDING_NUMBER_H
32#include "GuWindingNumberT.h"
38 using Triangle = Gu::IndexedTriangleT<PxI32>;
39 using Triangle16 = Gu::IndexedTriangleT<PxI16>;
41 typedef Gu::ClusterApproximationT<PxF64, Vec3> ClusterApproximationF64;
42 typedef Gu::SecondOrderClusterApproximationT<PxF64, Vec3> SecondOrderClusterApproximationF64;
44 PxF64 computeWindingNumber(
const PxArray<Gu::BVHNode>& tree,
const Vec3& q, PxF64 beta,
const PxHashMap<PxU32, ClusterApproximationF64>& clusters,
45 const PxArray<Triangle>& triangles,
const PxArray<Vec3>& points);
47 void precomputeClusterInformation(PxArray<Gu::BVHNode>& tree,
const PxArray<Triangle>& triangles,
48 const PxArray<Vec3>& points, PxHashMap<PxU32, ClusterApproximationF64>& result, PxI32 rootNodeIndex = 0);
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Definition SnippetImmediateMode.cpp:303