whizzter / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 0 forks source link

BUG: Polygon constructor doesn't add individual points to points collection #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
From the code:

    public Polygon( PolygonPoint p1, PolygonPoint p2, PolygonPoint p3 )
    {
        p1._next = p2;
        p2._next = p3;
        p3._next = p1;
        p1._previous = p3;
        p2._previous = p1;
        p3._previous = p2;
    }

This constructor is not adding the points p1, p2 and p3 to the points 
collection, so if you use the polygon later it throws an ArrayOutOfBounds 
because _points is empty.

Original issue reported on code.google.com by ariel.co...@gmail.com on 29 Aug 2011 at 5:58

GoogleCodeExporter commented 8 years ago
Oops. Never got around to using that constructor for anything.

Original comment by thahlen@gmail.com on 31 Aug 2011 at 4:25