zero convex hull counters

This commit is contained in:
Irlan 2018-04-20 03:09:28 -03:00
parent 231b9c29d0
commit a6faeed545

View File

@ -38,13 +38,17 @@ struct b3QHull : public b3Hull
b3Face hullFaces[B3_MAX_HULL_FACES];
b3Plane hullPlanes[B3_MAX_HULL_FACES];
//
b3QHull()
{
// Zero the counters since the user manipulates via setters
vertices = hullVertices;
vertexCount = 0;
edges = hullEdges;
edgeCount = 0;
faces = hullFaces;
faceCount = 0;
planes = hullPlanes;
centroid.SetZero();
}
// Create a convex hull from an array of points.