Skip to main content

gdschamfer

gdschamfer is a Python add-on module for gdspy that can perform chamfering operation on GDSII files. It extends the fillet function in gdspy so that:

  • inside corners (i.e., concave bends) or outside corners (i.e., convex bends) can be selectively chamfered or filleted.

  • orthogonal corners can be selectively chamfered or filleted.

The operation of chamfering leads to corners being replaced with 45° slanting edges. An example of inside corners of a polygon being chamfered is shown below:

On the other hand, the filleting operation that gdspy's fillet() function does will result in concave curved corners for inside corners and convex (or rounded) corners for outside corners. When the fillet radius of curvature tends to infinity the resulting fillet starts to approximate a chamfer.

Usage

To use gdschamfer install its PyPI python distribution package using pip:

pip install gdschamfer

In your python scripts place the import statement

import gdschamfer

There are 3 functions available for use:

  1. gdschamfer.chamfer_polygons(...): Use this to perform chamfering of gdspy Polygon objects.

  2. gdschamfer.chamfer_cell(...): Use this to perform chamfering of gdspy Cell objects.

  3. gdschamfer.chamfer_gds(...): Use this to perform chamfering on GDSII file.

Chamfer style

To understand how the option chamfer_style modifies the corners consider the GDSII file demo/input.gds shown below:


a) When chamfer_style = "inside_corners":

GDSII with 3 polygons, with 2 on layer 20 and 1 on layer 22 showing chamfered inside corners


b) When chamfer_style = "outside_corners":

GDSII with 3 polygons, with 2 on layer 20 and 1 on layer 22 showing chamfered outside corners


c) When chamfer_style = "all_corners":

GDSII with 3 polygons, with 2 on layer 20 and 1 on layer 22 showing chamfered corners


Metadata

Release files for gdschamfer 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gdschamfer 0.3.0
File Size Uploaded
gdschamfer-0.3.0.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gdschamfer 0.3.0
File Interpreter ABI Platform
gdschamfer-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / gdschamfer-0.3.0.tar.gz

Download URL gdschamfer-0.3.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aa3c4b5e25180bc99262a124e5a764428a8efdba35f6cf81ca31685f1d5e1c3d
BLAKE2b-256 checksum
How to use checksums
007e1853baba0493259db6cbeeaded2a80e4862c75a6973bb75fc383cef02988
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6

Release files / gdschamfer-0.3.0-py3-none-any.whl

Download URL gdschamfer-0.3.0-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88008a13f75f1128fd81cfbf7e24c94a34a30923575c37896aa2d36d9fac5f74
BLAKE2b-256 checksum
How to use checksums
0a80e459faf887a1285aa64530a6abed25a28fd34939cb564ccfd516d6dd0643
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page