I’m trying to put a random hole inside my box, but the clipper feature doesn’t do it cleanly. Eventually I’d like to be able to add multiple holes.
box = nd.geometries.rectangle(length=20, height=10)
hole = nd.geometries.transform(points=(nd.geometries.circle(radius=1, N=100)), center=(0,0,0), move=(5,5,0))
new = nd.clipper.polygons_NOT(hole, box)
nd.Polygon(points=new, layer='M1AM').put()
nd.export_gds(filename='test.gds')