代码拉取完成,页面将自动刷新
import gdspy as gs
import numpy as np
lib = gs.GdsLibrary()
cell = lib.new_cell('x')
path1 = gs.Path(5, (-5, 0))
path1.segment(74, "-x")
path2 = gs.Path(5,(-76.5,-2.5))
path2.segment(80.5,"-y")
path3 = gs.Path(5,(-74,-80.5))
path3.segment(35,"+x")
path4 = gs.Path(5,(-41.5,-78))
path4.segment(65.5,"+y")
path5 = gs.Path(5,(-39,-15))
path5.segment(83,"+x")
path6 = gs.Path(5,(41.5,-17.5))
path6.segment(65.5,"-y")
path7 = gs.Path(5,(44,-80.5))
path7.segment(35,"+x")
path8 = gs.Path(5,(76.5,-78))
path8.segment(80.5,"+y")
path9 = gs.Path(5,(74,0))
path9.segment(69,"-x")
cell.add(path1)
cell.add(path2)
cell.add(path3)
cell.add(path4)
cell.add(path5)
cell.add(path6)
cell.add(path7)
cell.add(path8)
cell.add(path9)
lib.write_gds('E:/python/xiaoyu_GDSTest/corepart.gds')
gs.LayoutViewer(lib)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。