Limbo
|
#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::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 More... | |
GdsObject & | operator= (GdsObject const &rhs) |
assignment More... | |
virtual | ~GdsObject () |
destructor More... | |
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 173 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 |