dlannan / poly2tri

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

Point's edge_list is not reset in js.poly2tri.SweepContext.prototype.InitEdges or else #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. reuse same polylines in another SweepContext
2.
3.

What is the expected output? What do you see instead?
triangulation fails; should not, really.

What version of the product are you using? On what operating system?
javascript

Please provide any additional information below.
in test index.html, find these lines:

        // prepare SweepContext
        var swctx = new js.poly2tri.SweepContext(contour);
        for (var idx in holes)
        {
            swctx.AddHole(holes[idx]);
        }

add these lines immediately after:

        js.poly2tri.sweep.Triangulate(swctx);
        swctx = new js.poly2tri.SweepContext(contour);
        for (var idx in holes)
        {
            swctx.AddHole(holes[idx]);
        }

enjoy error alerts :)

Original issue reported on code.google.com by makc.the...@gmail.com on 15 Feb 2012 at 11:08

GoogleCodeExporter commented 9 years ago
Can you contact the JS author to fix?

Original comment by mason.gr...@gmail.com on 4 Apr 2012 at 1:22

GoogleCodeExporter commented 9 years ago
Anyone is welcome to submit a patch. C++ and Java are now the officially 
supported languages.

Original comment by mason.gr...@gmail.com on 7 Apr 2012 at 5:13