54 bool includeOctreeNodes =
true, PxI32 maxVertsPerCell = 20, PxI32 maxTreeDepth = 5);
66 PxI32 maxVertsPerCell;
74 orig =
Vec3(0.0, 0.0, 0.0);
81 PxI32 getChildNr(
const Vec3& p);
85 return getChildNr(
Vec3(p.x, p.y, p.z));
107 PxI32 currentTetMark;
118 void init(PxI32 _id0, PxI32 _id1, PxI32 _tetNr, PxI32 _faceNr)
120 this->id0 = _id0 < _id1 ? _id0 : _id1;
121 this->id1 = _id0 > _id1 ? _id0 : _id1;
122 this->tetNr = _tetNr;
123 this->faceNr = _faceNr;
128 if (id0 < e.id0)
return true;
129 if (id0 > e.id0)
return false;
135 return id0 == e.id0 && id1 == e.id1;
142 void treeInsertVert(PxI32 cellNr, PxI32 vertNr);
143 void createTetVerts(
bool includeOctreeNodes);
145 bool findSurroundingTet(
const Vec3& p, PxI32 startTetNr, PxI32& tetNr);
146 bool findSurroundingTet(
const Vec3& p, PxI32& tetNr);
147 void treeInsertTet(PxI32 tetNr);
148 void treeRemoveTet(PxI32 tetNr);
152 void removeTetNr(PxI32 tetNr);
154 Vec3 getTetCenter(PxI32 tetNr)
const;
155 bool meshInsertTetVert(PxI32 vertNr);
160 mutable float prevClip;
161 mutable float prevScale;
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39