removed assert

This commit is contained in:
zzzzrrr 2009-11-24 12:28:34 -05:00
parent 2e0041456a
commit fee243fbf0
1 changed files with 3 additions and 1 deletions

View File

@ -197,8 +197,10 @@ def line_intersect(edge, x):
class Triangulator(object):
##
## Number of points should be > 3
##
def __init__(self, poly_line):
assert len(poly_line) > 3, "Number of points must be > 3"
self.polygons = []
self.trapezoids = []
self.xmono_poly = []