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

Return an ordered set of points if they are collinear (ports mapbox/delaunator/pull/47) #17

Merged
merged 3 commits into from
Jun 15, 2021

Conversation

andreesteve
Copy link
Collaborator

This PR addresses the second issued tracked at #15 - returns ordered points on the hull with an empty triangulation (no triangles/edges) if input points are collinear.

This is contract breaking as triangulate() now returns Triangulation instead of Option<Triangulation>.

When the set of input points is empty, the returned Triangulation is empty (no triangles, edges or hull).

@andreesteve andreesteve requested a review from mourner June 12, 2021 19:17
Cargo.toml Show resolved Hide resolved
Cargo.toml Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

None yet

2 participants