1 Star 0 Fork 0

xiaoyu / xiaoyu_gdspython_text

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
20210325_1_path.py 802 Bytes
一键复制 编辑 原始数据 按行查看 历史
xiaoyu 提交于 2021-03-25 16:46 . just for exercise
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)
Python
1
https://gitee.com/xiaoyu10101/xiaoyu_gdspython_text.git
git@gitee.com:xiaoyu10101/xiaoyu_gdspython_text.git
xiaoyu10101
xiaoyu_gdspython_text
xiaoyu_gdspython_text
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891