Closed profelis closed 12 years ago
Unfortunately, the simple decomposition is not guaranteed to be 100% robust (monotone and convex should be 100% robust).
However, if you can get me a dump of the input polygon so that I can reproduce the error, then perhaps I can find what degeneracy it triggers and handle it and so improve the algorithm.
unfortunately, I cant add dump. But I know what vertices array has the duplicate vertices. With out duplicates no error
sequential duplicates are handled. If you mean duplicates which are not sequential then that is most likely an unhandled case (There are 'a lot' of cases :P)
Pure as3 project
var geomPoly:GeomPoly = new GeomPoly(newVertices); if (!geomPoly.isSimple()) simpleGeomPolyList = geomPoly.simple_decomposition();