Skip to content

Conversation

@sebcrozet
Copy link
Member

Currently, enabling the TriMeshFlags::FIX_INTERNAL_EDGES flag on a TriMesh would automatically enable the ORIENTED flag too. This is problematic because some users (on rapier in particular) want to enable FIX_INTERNAL_EDGES on open meshes. While this is technically valid, the implied ORIENTED flag results in some incorrect collision-detection between mesh and balls due to the malformed interior of these open meshes.

This PR decouples both flags so that FIX_INTERNAL_EDGES can be specified without having an impact on point projection.

@sebcrozet sebcrozet merged commit 626f0c3 into master Apr 10, 2025
7 checks passed
@sebcrozet sebcrozet deleted the trimesh-flags-decoupling branch April 10, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants