API#
Geometry Construction#
Classes and functions for construction and manipulation of geometric objects.
Component definition
|
A Component is an empty canvas where you add polygons, references and ports (to connect to other components). |
|
Pointer to a Component with x, y, rotation, mirror. |
|
Returns a Component from a GDS file. |
|
Returns Component from YAML string or file. |
|
Returns Component from a np.ndarray. |
paths
|
Path object for smooth Paths. |
|
Returns a straight path. |
|
Returns an euler bend that adiabatically transitions from straight to curved. |
|
Returns a radial arc. |
|
Returns an Archimedean spiral. |
|
Returns a smooth Path from a series of waypoints. |
cross_section functions
|
Waveguide information to extrude a path. |
|
Waveguide information to extrude a path between two CrossSection. |
|
Return CrossSection. |
|
Return CrossSection. |
|
Return CrossSection. |
|
Rib PIN doped cross_section. |
|
Rib PN doped cross_section. |
|
Rib PN doped cross_section. |
|
Returns strip cross_section with top metal and undercut trenches on both. |
|
Returns strip cross_section with top heater metal. |
|
Returns strip cross_section with N++ doped heaters on both sides. |
|
Returns rib cross_section with N++ doped heaters on both sides. |
|
Returns rib cross_section with N++ doped heaters on both sides. |
transitions
|
Returns a smoothly-transitioning between two CrossSections. |
geometry
|
Performs boolean operations between 2 Component/Reference/list objects. |
|
Returns a boolean operation between two components Uses KLayout python API. |
|
Perform a boolean operation and return the list of resulting Polygons. |
|
Perform a fillet operation and return the list of resulting Polygons. |
|
Returns inverted version of input shapes with additional border around the edges. |
|
Returns new component after removing one layer from another. |
|
Returns new Component with polygons eroded or dilated by an offset. |
|
Returns Component containing the outlined polygon(s). |
|
Trim a component by another geometry, preserving the component's layers and ports. |
|
Returns new Component with inverted union of Component polygons. |
|
Given two Components A and B, performs the layer-by-layer XOR difference between A and B and returns polygons representing the differences between A and B. |
decorators
|
Parametrized Decorator for Component functions. |
typings
alias of |
|
Represent a PEP 604 union type |
|
alias of |
|
Represent a PEP 604 union type |
|
|
A Component is an empty canvas where you add polygons, references and ports (to connect to other components). |
|
Waveguide information to extrude a path. |
alias of |
|
Represent a PEP 604 union type |
|
alias of |
|
Represent a PEP 604 union type |
|
Represent a PEP 604 union type |
|
|
Level for 3D LayerStack. |
Represent a PEP 604 union type |
|
alias of |
|
Represent a PEP 604 union type |
|
|
|
alias of |
|
|
|
|
CrossSection to extrude a path with a waveguide. |
|
Manhattan Step. |
|
Pack#
pack
|
Pack a list of components into as few Components as possible. |
|
Returns Component with a 1D or 2D grid of components. |
|
Returns Component with 1D or 2D grid of components with text labels. |
Netlist#
get_netlist
|
Returns instances, connections and placements from |
|
Parses a recursive netlist for a component as if it was a single netlist with its lowest-level instances. |