JCash / voronoi

A C implementation for creating 2D voronoi diagrams
MIT License
633 stars 94 forks source link

Crashes on division by zero #4

Closed lundmark closed 6 years ago

lundmark commented 8 years ago

Crashes on division by zero in the jcv_edge_create where dx AND dy is both 0. The reason to this is because s1 == s2 is true.

JCash commented 7 years ago

I haven't been able to reproduce this. Do you happen to remember how you produced the point set?

lundmark commented 7 years ago

Hmm I just generated a couple of thousand points randomized between 0.0 and 2048.0 in both x and y axis. It is possible that points existed so that they were incredibly close to each other if that might be the issue?

JCash commented 6 years ago

I still haven't seen this in action, will close for now, and we can reopen when we know more and have more test data.