Skip to content

Internal error in Region::delaunay() #1996

@martinjankoehler

Description

@martinjankoehler

@klayoutmatthias
I noticed this while debugging the devel branch, but can also reproduce it with PyPi's klayout-0.29.11-cp312-cp312-macosx_11_0_arm64.whl

Steps to reproduce

import klayout.db as kdb
r = kdb.Region(kdb.Polygon([kdb.Point(-8000, -8075), kdb.Point(-8000, 8075), kdb.Point(18000, 8075), kdb.Point(18000, -8075)]))
r.delaunay(50, 0.5)

which yields the error

ERROR: src/db/db/dbTriangle.cc,450,fabs (s) > db::epsilon
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Internal error: src/db/db/dbTriangle.cc:450 fabs (s) > db::epsilon was not true in Region.delaunay

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions