Hull sharing (#13)

Save memory when there are many duplicate hulls. Can improve performance
in some cases.

For consistency with b3MeshData, b3Hull is renamed to b3HullData.
This commit is contained in:
Erin Catto 2026-06-11 22:39:26 -07:00 • committed by GitHub
commit a252f03b19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
66 changed files with 881 additions and 549 deletions

View file

@ -197,7 +197,7 @@ static int ShapeMassTest( void )
ENSURE( index == 2 * N * N );
b3Hull* hull = b3CreateHull( points, 2 * N * N, 2 * N * N );
b3HullData* hull = b3CreateHull( points, 2 * N * N, 2 * N * N );
b3MassData mdLower = b3ComputeHullMass( hull, 1.0f );
ENSURE( mdLower.mass < md.mass && md.mass < mdUpper.mass );