zero convex hull counters
This commit is contained in:
parent
231b9c29d0
commit
a6faeed545
@ -38,13 +38,17 @@ struct b3QHull : public b3Hull
|
|||||||
b3Face hullFaces[B3_MAX_HULL_FACES];
|
b3Face hullFaces[B3_MAX_HULL_FACES];
|
||||||
b3Plane hullPlanes[B3_MAX_HULL_FACES];
|
b3Plane hullPlanes[B3_MAX_HULL_FACES];
|
||||||
|
|
||||||
//
|
|
||||||
b3QHull()
|
b3QHull()
|
||||||
{
|
{
|
||||||
|
// Zero the counters since the user manipulates via setters
|
||||||
vertices = hullVertices;
|
vertices = hullVertices;
|
||||||
|
vertexCount = 0;
|
||||||
edges = hullEdges;
|
edges = hullEdges;
|
||||||
|
edgeCount = 0;
|
||||||
faces = hullFaces;
|
faces = hullFaces;
|
||||||
|
faceCount = 0;
|
||||||
planes = hullPlanes;
|
planes = hullPlanes;
|
||||||
|
centroid.SetZero();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a convex hull from an array of points.
|
// Create a convex hull from an array of points.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user