28 April 2020 at 20:23
#6132
Keymaster
another way is:
import nazca as nd
from nazca.interconnects import Interconnect as IC
# Interconnect settings
XS = 'xs1'
nd.add_layer2xsection(xsection=XS, layer=1)
IC_1 = IC(width=1, radius=80, xs=XS)
nd.cfg.use_hull = True # switch hull calculation on for all cells
nd.cfg.hull_based_bbox = True # use the hull for the next level hull/bbox, not the bbox, for all cells.
# main
with nd.Cell('main', autobbox=False) as main:
IC_1.bend(angle=45).put(0, 0, 45)
print(main.bbox)
print(main.hull)
Ronald