A relatively long time inside TriMesh::new is spent computing AABBs for triangles in the mesh. Solves the problem by rolling a custom AABB function for triangles, which is around three times as fast as using the generic support map implementation.
This could be further improved in the future by providing an AABB function which doesn't take an isometry parameter (as TriMesh::new just passes in Isometry::identity() anyway), but it would require some API changes that I wasn't sure how to best approach.
A relatively long time inside
TriMesh::new
is spent computing AABBs for triangles in the mesh. Solves the problem by rolling a custom AABB function for triangles, which is around three times as fast as using the generic support map implementation.This could be further improved in the future by providing an AABB function which doesn't take an isometry parameter (as
TriMesh::new
just passes inIsometry::identity()
anyway), but it would require some API changes that I wasn't sure how to best approach.