dimforge / parry

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

Enable tracing origins for mesh_intersection #131

Open GlennWSo opened 1 year ago

GlennWSo commented 1 year ago

Made changes to mesh_intersection.rs

Created an new function tracked_intersection that intersect meshes like intersect_meshes, but tracked_intersection also returns some metadata about the resulting trimesh so that the user can know from which input mesh each triangle was extracted.

Resolves #129

There is a number of ways one could go about create the tracking metadata, feedback would be much appreciated :)