Skip to content

Vector3 DistanceTo Polygon and Polyline are not consistent.  #945

@wynged

Description

@wynged

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:

  1. Look at the test in the branch above.

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):

  • OS: [e.g. iOS]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions