Skip to content

Python add-on module for gdspy that can perform chamfering operation on GDSII files

License

Notifications You must be signed in to change notification settings

arun-goud/gdschamfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


About

Python add-on module for gdspy that can perform chamfering operation on GDSII files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy