Home › Forums › Nazca › Angular discretization for bends
Is it possible to define angular discretization for nd.bend? (as well as sbend definition for example)
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)
The accuracy specifies the maximum deviation from the ideal shape.
© 2023 Nazca Design. | firstname.lastname@example.org