kqcircuits.simulations.export.util
- kqcircuits.simulations.export.util.export_layers(filename, layout, cells=None, layers=None, output_format='OASIS')[source]
- kqcircuits.simulations.export.util.find_edge_from_point_in_cell(cell: Cell, layer: int, point: DPoint, dbu, tolerance=0.01)[source]
Finds the edge closest to a point, and returns the edge as well as it’s polygon and edge index
- kqcircuits.simulations.export.util.find_edge_from_point_in_polygons(polygons: List[Polygon], point: DPoint, dbu, tolerance=0.01)[source]
Finds the edge closest to a point, and returns the edge as well as it’s polygon and edge index
- kqcircuits.simulations.export.util.get_enclosing_polygon(points: List[List[float]])[source]
Order points in such a way that they form a polygon without intersecting lines. The ordering is clockwise starting from the left-most point.
- Parameters:
points – List of points [x,y]
- Returns:
ordered list of points [x,y]