Hi!
Is it possible to add a third dimension to the function?(z height)
Something like:
polygon = [(0,1,2), (-1, 0, 2.5), (0, -1, 2.5), (1, 0, 2)]
I tried it but get the error:
triangles = tripy.earclip(polygon)
File "C:\Users\SEKRSV\AppData\Local\Programs\Python\Python36\lib\site-packages\tripy.py", line 30, in earclip
polygon = [Point(*point) for point in polygon]
File "C:\Users\SEKRSV\AppData\Local\Programs\Python\Python36\lib\site-packages\tripy.py", line 30, in <listcomp>
polygon = [Point(*point) for point in polygon]
TypeError: __new__() takes 3 positional arguments but 4 were given
Hi!
Is it possible to add a third dimension to the function?(z height)
Something like:
polygon = [(0,1,2), (-1, 0, 2.5), (0, -1, 2.5), (1, 0, 2)]
I tried it but get the error:
triangles = tripy.earclip(polygon)