-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
Using this polygon as input:
82 87
74 88
74 96
84 96
84 91
84 91
82 95
77 94
79 89
(Second list is hole)
This is a valid polygon:
Polygon rings must close
Rings that define holes should be inside rings that define exterior boundaries
Rings must not self-intersect—they may neither touch nor cross one another
Rings must not touch other rings except at a point
What is the expected output? What do you see instead?
Expect to have 7 triangles.
Got 13 triangles. The output mesh contains the tail and head points of Sweep
line algorithm.
What version of the product are you using? On what operating system?
Last version of poly2tri (rev b85d2568420a )
This input polygon is not supported by poly2tri.js
The fix is relatively simple. Just ignore triangles that contains the point
DTSweepContext._tail or DTSweepContext._head .
Please provide any additional information below.
Original issue reported on code.google.com by nico.de...@gmail.com on 20 Apr 2015 at 9:15