Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

coarse ellipse border

Hi all,I create a ellipse from .I found that the number of points that used to approximate the ellipse would reach the set value if the value of Box coordinates is greater than a micron.However, if the value of Box coordinates is less than a micron,the number of points is less than the set value.What should I do if I want the number of points to reach the set value for the latter case.

Comments

  • pya.DPolygon.ellipse(pya.DBox.new(-1,-5,1,5),170)
    pya.DPolygon.ellipse(pya.DBox.new(-0.1,-5,0.1,5),170)

  • Hi Oscar,

    Both

    pya.DPolygon.ellipse(pya.DBox.new(-1,-5,1,5),170).num_points()
    pya.DPolygon.ellipse(pya.DBox.new(-0.1,-5,0.1,5),170).num_points()
    

    give 170, so the polygons are fine.

    But maybe your should check your database unit. That's the minimum resolution a GDS file has. When you use a polygon in a layout it is converted to an integer-type polygon and it's point are snapped to the database unit grid. This may reduce the number of points because points may be merged.

    Matthias

Sign In or Register to comment.