andreesteve / voronoice

A nice and fast way to construct 2D Voronoi Diagrams
MIT License
34 stars 9 forks source link

Panic during cell closing (edges not on bounding box) #10

Closed andreesteve closed 3 years ago

andreesteve commented 3 years ago

The following point input fails with "thread 'main' panicked at 'It seems that either 'a' (2) or 'b' (3) are not on the box's edge. Cannot link vertices not on the edge."

[
    [0.4446817804307164, -1.4735041992039426],
    [-0.04276828017538137, -1.6282007483655956],
    [0.47554205394946514, -3.127024067509565],
    [1.2183521552934446, 0.8684709588242181],
    [0.12128719292940696, 0.11798091561014001],
    [-0.5181364681029619, 0.05459704817809197],
    [-1.1952141025205931, 0.20699717539433704],
    [-1.303985141026327, 0.23780931230536906],
    [4.127366397502115, 3.47901168825461],
    [1, 1],
    [-1, 1],
    [-1, -1],
    [1, -1],
    [0.675369981348554, -4.625305442157765],
    [3.339159951759075, 2.8017247215313406],
    [-4.429246349080001, 0.8179811063068207],
    [1, 0.2074978364012643],
    [0.6011036664790848, -1],
    [-0.02676604635319781, 1],
    [-1, 0.4192148711903948],
    [-1, 0.1630573780265911],
    [1, 0.719098657197756],
]