Home Forums Nazca Cut away polygon

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #7059
    John Serafini
    Participant

    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')
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.