Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Given a bunch of line segments, return distance which is within mesh #31

Open
clbarnes opened this issue Jan 12, 2023 · 0 comments
Open

Comments

@clbarnes
Copy link
Owner

Takes an array of source and target points.

Algorithm:

  • For each source point, cast rays to target points
  • For those which intersect, cast another ray from the intersection (or point+epsilon beyond it?) in case the same edge intersects multiple times: repeat until no intersection is found
  • For those which do not intersect, check whether the starting point is inside the mesh

This practically just uses existing methods (maybe want to do the epsilon projection in rust) so could be done in python.

Returns an array of floats between 0 and segment_length for how much is inside the mesh.

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

No branches or pull requests

1 participant