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

Perpendicular lines missing on thick polygons #1

Open
dabreegster opened this issue Jun 11, 2024 · 1 comment
Open

Perpendicular lines missing on thick polygons #1

dabreegster opened this issue Jun 11, 2024 · 1 comment

Comments

@dabreegster
Copy link
Owner

image
It's due to

let project_away_meters = 10.0;
. When the polygon is farther than 10m from the center line, the perpendicular line doesn't reach. I amped up this value but then hit problems in
fn clip_line_to_polygon(polygon: &Polygon, line: Line) -> Option<Line> {
; on some of the test inputs, a very long perpendicular line will intersect the input polygon in more than 2 places. Need to find the two hits closest to the original point on the center line

@dabreegster
Copy link
Owner Author

Just noting some issues with the incoming fix
image
image

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