Glade Reference
The polygon class is derived from a shape. This class is normally created in a cellView using the dbCreatePoly() function. Note that dbCreatePoly() will create a square or a rectangle if the polygon has 4 points. A polygon is represented by a series of points, which represent the vertices of the polygon. There is an implicit edge between the first and last point.
Get the bounding box of this polygon.
Set the bounding box of this polygon. Not useful and will throw an exception if called.
Returns the object type of this polygon as POLYGON.
Returns the object name of this polygon as "POLYGON".
Returns the number of points of the polygon's boundary. Note that polygons are not closed as they are in GDS2.
Returns the point list of this polygon as a C array of Points.
Returns the Point p at the index into the list of points.
Bias this polygon by bias, snapping to the grid grid.
Scale this polygon by scale, snapping to the grid grid.
Get the distance of the nearest segment s of this polygon to the point p;
Get the distance of the nearest vertex s of this polygon to the point p;
Returns true if the point in inside or on the edge of the polygon.
Get the area of this polygon.
Get the perimeter of this polygon.
Transform this polygon using trans.
Move this polygon by distance delta. If opt is true then the database is re-optimised for the new polygon position. If there are a lot of objects to move it makes sense to turn this off and instead use the cellView update() function after moving them all.
Copy this polygon to cellView cv, with offset delta. If layerNum is non-negative the polygon will be copied to the new layer number.
Flatten this polygon into cellView cv with transformation trans.
Stretch segment seg of this polygon by delta.
Stretch vertex v of this polygon by delta.
Removes colinear points, sets the point order to be counterclockwise and sets the first point to be the smallest in X and Y.
Returns true if the polygon is self-intersecting.
Copyright © Peardrop Design 2024.