JCash / voronoi

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

Fix #57 #58

Closed williamleong closed 3 years ago

williamleong commented 3 years ago

Assertion min_edge >= 0. The assert happens for large polygons when the distance squared returned by jcv_length_sq is always larger than the initial value of min_dist. Replaced min_dist initial value of 1000000 with JCV_FLT_MAX.

JCash commented 3 years ago

Good find! Thank you @williamleong !