|
Limbo 3.5.4
|
#include <GdsObjects.h>
Public Types | |
| typedef GdsShape | base_type |
| base type | |
| typedef gtl::polygon_data< GdsShape::coordinate_type > | base_ext_type |
| use polygon_data as polygon type | |
| typedef base_type::coordinate_type | coordinate_type |
| typedef base_type::point_type | point_type |
| Public Types inherited from GdsParser::GdsDB::GdsShape | |
| typedef GdsObject | base_type |
| base type | |
| Public Types inherited from GdsParser::GdsDB::GdsObject | |
| typedef int | coordinate_type |
| coordinate types | |
| typedef gtl::point_data< coordinate_type > | point_type |
| typedef gtl::point_data< double > | float_point_type |
| float point type to avoid numerical issue | |
| typedef gtl::interval_data< coordinate_type > | interval_type |
| interval type | |
| typedef gtl::rectangle_data< coordinate_type > | rectangle_type |
| rectangle type | |
| typedef gtl::polygon_data< coordinate_type > | polygon_type |
| polygon type | |
| typedef gtl::polygon_90_set_data< coordinate_type > | polygon_set_type |
| polygon set type | |
Public Member Functions | |
| GdsPolygon () | |
| default constructor | |
| GdsPolygon (GdsPolygon const &rhs) | |
| GdsPolygon & | operator= (GdsPolygon const &rhs) |
| ~GdsPolygon () | |
| destructor | |
| Public Member Functions inherited from GdsParser::GdsDB::GdsShape | |
| GdsShape () | |
| default constructor | |
| GdsShape (GdsShape const &rhs) | |
| GdsShape & | operator= (GdsShape const &rhs) |
| ~GdsShape () | |
| destructor | |
| int | layer () const |
| void | setLayer (int l) |
| int | datatype () const |
| void | setDatatype (int d) |
| Public Member Functions inherited from GdsParser::GdsDB::GdsObject | |
| GdsObject () | |
| default constructor | |
| GdsObject (GdsObject const &rhs) | |
| copy constructor | |
| GdsObject & | operator= (GdsObject const &rhs) |
| assignment | |
| virtual | ~GdsObject () |
| destructor | |
Additional Inherited Members | |
| Protected Attributes inherited from GdsParser::GdsDB::GdsShape | |
| int | m_layer |
| layer | |
| int | m_datatype |
| data type | |
Polygonal geometric object.
Parameters
-------—
points : array-like[N][2]
Coordinates of the vertices of the polygon.
layer : integer
The GDSII layer number for this element.
datatype : integer
The GDSII datatype for this element (between 0 and 255).
verbose : bool
If False, warnings about the number of vertices of the polygon will
be suppressed.
Notes
--—
The last point should not be equal to the first (polygons are
automatically closed).
The GDSII specialization supports only a maximum of 199 vertices per
polygon.
Examples
-----—
triangle_pts = [(0, 40), (15, 40), (10, 50)]
triangle = gdspy.Polygon(triangle_pts)
myCell.add(triangle)
Definition at line 175 of file GdsObjects.h.
| typedef gtl::polygon_data<GdsShape::coordinate_type> GdsParser::GdsDB::GdsPolygon::base_ext_type |
use polygon_data as polygon type
Definition at line 181 of file GdsObjects.h.
base type
Definition at line 179 of file GdsObjects.h.
| typedef base_type::coordinate_type GdsParser::GdsDB::GdsPolygon::coordinate_type |
Definition at line 183 of file GdsObjects.h.
| typedef base_type::point_type GdsParser::GdsDB::GdsPolygon::point_type |
Definition at line 184 of file GdsObjects.h.
| GdsParser::GdsDB::GdsPolygon::GdsPolygon | ( | GdsPolygon const & | rhs | ) |
copy constructor
| rhs | an object |
| GdsPolygon & GdsParser::GdsDB::GdsPolygon::operator= | ( | GdsPolygon const & | rhs | ) |
assignment
| rhs | an object |