mirror of
https://github.com/jhasse/poly2tri.git
synced 2024-12-02 10:13:29 +01:00
merge
This commit is contained in:
commit
47e25587fb
@ -197,8 +197,10 @@ def line_intersect(edge, x):
|
|||||||
|
|
||||||
class Triangulator(object):
|
class Triangulator(object):
|
||||||
|
|
||||||
|
##
|
||||||
|
## Number of points should be > 3
|
||||||
|
##
|
||||||
def __init__(self, poly_line):
|
def __init__(self, poly_line):
|
||||||
assert len(poly_line) > 3, "Number of points must be > 3"
|
|
||||||
self.polygons = []
|
self.polygons = []
|
||||||
self.trapezoids = []
|
self.trapezoids = []
|
||||||
self.xmono_poly = []
|
self.xmono_poly = []
|
||||||
|
Loading…
Reference in New Issue
Block a user