drufat / triangle

Python bindings to the triangle library
GNU Lesser General Public License v3.0
224 stars 53 forks source link

triangles no longer returned #30

Closed mikedh closed 5 years ago

mikedh commented 5 years ago

Hi, it looks like with the new release triangles are no longer returned:

Code that used to work (JSON of args in gist):

with open('arg.json', 'w') as f:
    arg = json.load(f)
from triangle import triangulate
result = triangulate(arg, 'pq30')
return result['vertices'], result['triangles']

If you embed and check returned keys, they are now missing 'triangles`:

In [9]: result.keys()
Out[9]: dict_keys(['vertices', 'vertex_markers', 'holes'])
drufat commented 5 years ago

Thanks for the bug report. The latest commit should fix this issue.

drufat commented 5 years ago

I also released a new version with the fix. Upgrade with pip install triangle --upgrade.

mikedh commented 5 years ago

Awesome! Thanks for the quick fix, I verified it fixed the issue.