dimforge / parry

2D and 3D collision-detection library for Rust.
https://parry.rs
Apache License 2.0
555 stars 96 forks source link

Trimesh 3D: make solid point-queries optionally detect the trimesh interior #58

Closed sebcrozet closed 2 years ago

sebcrozet commented 2 years ago

Add (3D only) TriMesh::compute_pseudo_normals. If this is called, and if the trimesh respects some constraints (oriented with outward normals, manifold almost everywhere, etc.) any subsequent point queries with the solid argument set to true will properly set the PointProjection::is_inside to true when the point lies in the interior of the trimesh.