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

Clipped Voronoi cells sometimes have zero-length edges. #42

Closed
mbostock opened this issue May 23, 2018 · 3 comments · Fixed by #81
Closed

Clipped Voronoi cells sometimes have zero-length edges. #42

mbostock opened this issue May 23, 2018 · 3 comments · Fixed by #81
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

Not sure if this is a bug per se, but it would be nice to avoid them.

mbostock added a commit that referenced this issue May 23, 2018
@mourner mourner added the enhancement New feature or request label Jun 19, 2018
@mourner
Copy link
Collaborator

mourner commented Jun 20, 2019

Is there an example of this?

@Fil
Copy link
Member

Fil commented Jun 22, 2019

@Fil
Copy link
Member

Fil commented Jul 23, 2019

testing for (points[i] !== points[i-2] || points[i+1] !== points[i-1]) in https://github.com/d3/d3-delaunay/blob/master/src/voronoi.js#L103 does the trick; but I don't know the price in terms of speed (possibly negligible?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

3 participants