drufat / triangle

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

Make triangulating with option "n" (for neighborslist) work #33

Closed weaselp closed 5 years ago

weaselp commented 5 years ago

As a followup to #21, this makes the feature actually work with the refactored code.

Without this, we end up with a KeyError:

[..]
  File "...../xxx", line 31, in triangulate_tri
    'pn' # p .. constrained (triangulate a PSLG
  File "..../triangle/tri.py", line 65, in triangulate
    tri = {translate_frw[_]: tri[_] for _ in tri}
  File "..../triangle/tri.py", line 65, in <dictcomp>
    tri = {translate_frw[_]: tri[_] for _ in tri}
KeyError: 'neighborlist'
drufat commented 5 years ago

Thanks for the fix. Merged.