Home Forums Nazca Angular discretization for bends

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6841
    jnojic
    Participant

    Is it possible to define angular discretization for nd.bend? (as well as sbend definition for example)

    #6844
    Xaveer
    Moderator

    Dear Jnojic,

    The discretization of bends and other curved interconnects is determined by the accuracy settings of the layer that is written to.

    This example illustrates this:

    import nazca as nd
    nd.add_layer(“one”, layer=1, accuracy=0.1)
    nd.add_layer(“two”, layer=2, accuracy=0.001)
    nd.bend(radius=10, width=2, angle=90, layer=”one”).put(0, 3)
    nd.bend(radius=10, width=2, angle=90, layer=”two”).put(3, 0)
    nd.export_gds()

    The accuracy specifies the maximum deviation from the ideal shape.

    Xaveer

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.