You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astralchroma opened this issue
Aug 14, 2024
· 4 comments
Labels
2DThe issue is specifically about the 2D version of Rapier.3DThe issue is specifically about the 3D version of Rapier.A-GeometryC-BugSomething isn't workingD-MediumP-Medium
ColliderBuilder::trimesh doesn't return an error, and does not document potential panics.
panicked at .cargo/registry/src/index.crates.io-6f17d22bba15001f/parry3d-0.17.0/src/shape/trimesh.rs:268:9:
A triangle mesh must contain at least one triangle.
The potential for this panic should be at least documented, though given the error message, it seems like this should instead be returning a Result
The text was updated successfully, but these errors were encountered:
I think we'll have to do some changes in shared_shape.rs and trimesh.rs. We may add a custom TrimeshError in trimesh.rs and return a Result<> utilizing this custom error from trimesh() function in the implementation of SharedShape.
Thus we can handle this result in collider.rs of this repo to return error.
I’ll have to update rapier’s handling of those new return types when we the above is merged and we update the parry dependency, but if you want to anticipate and help with that you’re most welcome 🙏🏼 ; that means targeting that branch and do a bit of maintenance at different time points (when it’s merged, when/if other API changes…). To be clear the maintaining/finishing line can be done by rapier’s maintainers if need be
2DThe issue is specifically about the 2D version of Rapier.3DThe issue is specifically about the 3D version of Rapier.A-GeometryC-BugSomething isn't workingD-MediumP-Medium
ColliderBuilder::trimesh
doesn't return an error, and does not document potential panics.The potential for this panic should be at least documented, though given the error message, it seems like this should instead be returning a
Result
The text was updated successfully, but these errors were encountered: