57 HalfEdge(PxI16 _ea, PxU8 _v, PxU8 _p) :ea(_ea), v(_v), p(_p){}
70 : mInputPlanes(srcHull.getInputPlanes())
77 : mInputPlanes(inPlanes)
82 PxI32 findCandidatePlane(
float planetestepsilon,
float epsilon)
const;
85 bool assertIntact(
float epsilon)
const;
88 const PxArray<PxVec3>& getVertices()
const
94 const PxArray<HalfEdge>& getEdges()
const
100 const PxArray<PxPlane>& getFacets()
const
106 const PxArray<PxPlane>& getInputPlanes()
const
112 PxArray<PxVec3>& getVertices()
118 PxArray<HalfEdge>& getEdges()
124 PxArray<PxPlane>& getFacets()
130 PxU32 maxNumVertsPerFace()
const;
133 void copyHull(
const ConvexHull& src)
135 mVertices.resize(src.getVertices().size());
136 mEdges.resize(src.getEdges().size());
137 mFacets.resize(src.getFacets().size());
139 PxMemCopy(mVertices.begin(), src.getVertices().begin(), src.getVertices().size()*
sizeof(PxVec3));
140 PxMemCopy(mEdges.begin(), src.getEdges().begin(), src.getEdges().size()*
sizeof(HalfEdge));
141 PxMemCopy(mFacets.begin(), src.getFacets().begin(), src.getFacets().size()*
sizeof(PxPlane));
145 PxArray<PxVec3> mVertices;
146 PxArray<HalfEdge> mEdges;
147 PxArray<PxPlane> mFacets;
148 const PxArray<PxPlane>& mInputPlanes;
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PX_FORCE_INLINE void * PxMemCopy(void *dest, const void *src, PxU32 count)
Copies the bytes of one memory block to another. The memory blocks must not overlap.
Definition PxMemory.h:83