remove quickhull array dependency (except for drawing)

This commit is contained in:
Irlan
2018-04-20 23:37:59 -03:00
parent bd4ca5d143
commit 4ebe826eea
4 changed files with 200 additions and 187 deletions

View File

@ -175,8 +175,8 @@ void b3QHull::Set(const b3Vec3* points, u32 count)
// Create a convex hull.
// Allocate memory buffer for the worst case.
const u32 qhBufferCapacity = qhGetBufferCapacity(B3_MAX_HULL_VERTICES);
u8 qhBuffer[qhBufferCapacity];
const u32 qhBufferSize = qhGetBufferSize(B3_MAX_HULL_VERTICES);
u8 qhBuffer[qhBufferSize];
// Build
qhHull hull;