-
Notifications
You must be signed in to change notification settings - Fork 73
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
Vector3 DistanceTo
Polygon and Polyline are not consistent.
#945
Comments
@wynged the reason it fails it the fact that
|
On the second thought default 0 can be confusing too because user doesn't know what to expect. |
I think we should make this work, rather than simply call it a bad use of to Polyline although I see what you mean. |
Create a PR. At the end of the day I decided to remove default 10 value from to ToPolyline and and added ToPolyline without parameters as it looks the cleanest. |
Describe the bug
The method for finding distance between a polygon and the polyline form of that polygon returns bad results. When a polygon is turned into a polygon we get the expected value in the test in this branch, but the polygon itself fails.
https://github.com/hypar-io/Elements/tree/fix-distance-to-polygon
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Wether a polygon has been turned into a polygon or not shouldn't affect the distance to that object.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: