Gdspy使用一

Gdspy is a Python module for creating/importing/merging GDSII stream files. It includes key libraries for creating complex CAD layouts:

  • Gdspy是一个Python模块,用于创建/导入/合并GDSII流文件。它包括用于创建复杂CAD布局的关键库:
    Boolean operations on polygons (AND, OR, NOT, XOR) based on clipping algorithm
    基于裁剪算法的多边形布尔运算
  • Polygon offset (inward and outward rescaling of polygons)
    多边形偏移(多边形的向内和向外重缩放)
  • Efficient point-in-polygon solutions for large array sets
    大数组集合多边形中的有效点解

Gdspy also includes a simple layout viewer.
Gdspy还包括一个简单的布局查看器
Typical applications of gdspy are in the fields of electronic chip design, planar lightwave circuit design, and mechanical engineering.
gdspy的典型应用是在电子芯片设计、平面光波电路设计和机械工程领域

Installation
##安装

  • Dependencies:
    ###依赖项:
 ** [Python](http://www.python.org/) (tested with versions 2.7, 3.5, 3.6, and 3.7)
 ** [Numpy](http://numpy.scipy.org/)
 ** [Python-future](http://python-future.org/) (only for Python 2)
 ** C compiler (needed only if built from source)
 ** Tkinter (optional: needed for the LayoutViewer GUI)
 ** [Sphinx](http://sphinx-doc.org/) (optional: to build the documentation)
 
  • Windows
    The preferred option is to install pre-compiled binaries from here.Installation via pip and building from source as above are also possible, but an appropriate build environment is required for compilation of the C extension modules.
    首选选项是从[此处](https://github.com/heitzmann/gdspy/releases)安装预编译的二进制文件。
    也可以通过pip进行安装,也可以从上面的源代码进行构建,但是编译C扩展模块需要合适的[构建环境](https://wiki.python.org/moin/WindowsCompilers)。

Documentation
The complete documentation is available [here]http://gdspy.readthedocs.io/.
完整的文档[在这里](http://gdspy.readthedocs.io/)
The source files can be found in the docs directory.
源文件可以在docs目录中找到

Support

Help support gdspy development by [donating via PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JD2EUE2WPPBQQ)
通过[通过贝宝捐赠](https://www.PayPal.com/cgi-bin/webscr)帮助支持gdspy开发?cmd=_s-xclick&hosted_button_id=JD2EUE2WPPBQQ)

History of changes
Version 1.4 (May 18, 2019) * Revised [documentation]http://gdspy.readthedocs.io/.
1.4版(2019年5月18日)*修订[文件](http://gdspy.readthedocs.io/)。
New FlexPath and RobustPath classes:
新的FlexPath和RobustPath类:
more efficient path generation when using the original GDSII path specification
使用原始GDSII路径规范时更有效的路径生成
New Curve class: 新曲线类:
SVG-like polygon creation 类SVG多边形创建
Added PolygonSet.mirror 添加polygoset.mirror
Added Path.bezier to create paths based on Bézier curves
添加Path.bezier以基于Bézier曲线创建路径
Added Path.smooth to create paths based on smooth interpolating curves. 添加Path.smooth以基于平滑插值曲线创建路径。
Added get_gds_units to get units used in a GDSII file without loading
添加了get-gds-u单元以获取GDSII文件中使用的单元,而无需加载
Added get_binary_cells to load only the binary GDSII representation of cell from a file
添加了get_binary_单元格,以便仅从文件加载单元格的二进制GDSII表示
Added argument tolerance to Round, Path.arc, Path.turn, and Path.parametric to automatically control the number of points in the final polygons.
将参数公差添加到Round、Path.arc、Path.turn和Path.parametric以自动控制最终多边形中的点数。
Added argument binary_cells to GDSII writing functions to support get_binary_cells.
向GDSII写入函数添加参数binary_cells以支持get_binary_cells。
Added argument rename_template to GdsLibrary.read_gds for flexible cell renaming
为灵活的单元重命名增加了GalsBrBAR.Read GDS的参数
Changed return value of slice to avoid creating empty PolygonSet.
更改slice的返回值以避免创建空polygoset。
Added argument timestamp to GDSII writing functions
向GDSII写入函数添加参数时间戳
Improved Round to support creating ellipses.
改进了圆以支持创建椭圆。
Added support for unlimited number of points per polygon
添加了对每个多边形的无限点数的支持
Added support for BGNEXTN and ENDEXTN when reading a GDSII file
在读取GDSII文件时添加了对BGNEXTN和ENDEXTN的支持
Polygon creation warnings are now controlled by poly_warnings.
Incorrect anchor in Label now raises an error, instead of emitting a warning 标签中不正确的定位现在引发错误,而不是发出警告
Added correct support for radius in PolygonSet.fillet on a per-vertex basis.
在polygonite.fillet中添加了对每个顶点半径的正确支持。
Speed improvements in GDSII file generation and geometry creation
GDSII文件生成和几何图形创建的速度改进
Font rendering example using [matplotlib] 使用[matplotlib]的字体呈现示例
Expanded test suite 扩展测试套件

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值