This version includes some breaking changes to the API. Most notably, the change in the gdstk.inside
function and the addition of the dedicated short-circuit versions gdstk.all_inside
and gdstk.any_inside
, plus methods Polygon.contain
, Polygon.contain_all
, and Polygon.contain_any
.
This version also introduces the new function gdstk.contour
for the parametric generation of geometries similarly to contour plots.
Added
contour
functionPolygon.transform
to apply a general transformation to the polygon verticesPolygon.contain
tests whether single points are inside the polygonPolygon.contain_all
andPolygon.contain_any
test multiple points with short circuitall_inside
andany_inside
test multiple points against multiple polygons with short circuit- Alternative function interfaces in the C++ API
Fixed
- Holes in boolean results could lead to incorrect geometry in specific cases
- Bug in boolean operations resulting in self-intersecting polygons
- Bug in boolean operations with clockwise-oriented polygons
- Unsupported reccords found when loading a library generate a warning, not an error.
Changed
inside
has changed to use the better interfaces: grouping has been removed, scaling is not necessary, and short-circuit is implemented inall_inside
andany_inside