kqcircuits.util.symmetric_polygons
- kqcircuits.util.symmetric_polygons.polygon_with_hsym(points)[source]
Polygon with horizontal symmetry.
- Parameters:
points – List of points to copied to the other side of the symmetry axis. Points at the symmetry axis will be doubled.
- Returns:
DPolygon
- kqcircuits.util.symmetric_polygons.polygon_with_vsym(points)[source]
Polygon with vertical symmetry.
- Parameters:
points – List of points to copied to the other side of the symmetry axis. Points at the symmetry axis will be doubled.
- Returns:
DPolygon
- kqcircuits.util.symmetric_polygons.polygon_with_sym(points, mirror_trans)[source]
Polygon with symmetry with respect to an axis.
- Parameters:
points – List of points to copied to the other side of the symmetry axis. Points at the symmetry axis will be doubled.
mirror_trans – pya.DTrans that mirrors the points with respect to an axis
- Returns:
DPolygon