nightkidfifa / poly2tri

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

Patch for /src/js/poly2tri.js (javascript) #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
poly2tri.js:1738> var newP = NextFlipPoint(ep, eq, ot, op);
Is this just typo?

Here is a test case passing this line:

    var p = function(x,y){return new js.poly2tri.Point(x,y);};

    var ctx = new js.poly2tri.SweepContext([ p(256, 288), p(339, 123), p(174, 41), p(8, 222) ]);
    ctx.AddHole([ p(116, 233), p(107, 233), p(99, 233), p(95, 233), p(88, 221), p(124, 233) ]);

    js.poly2tri.sweep.Triangulate(ctx);

Original issue reported on code.google.com by gyu...@gmail.com on 16 Jun 2012 at 4:05

Attachments:

GoogleCodeExporter commented 8 years ago
Given patch applied

Original comment by thahlen@gmail.com on 29 Sep 2012 at 2:47