My Project
|
Polygon interface. More...
Public Member Functions | |
void | AddContour (IEnumerable< Vertex > points, int marker, bool hole, bool convex) |
void | AddContour (IEnumerable< Vertex > points, int marker, Point hole) |
Rectangle | Bounds () |
Compute the bounds of the polygon. | |
void | Add (Vertex vertex) |
Add a vertex to the polygon. | |
void | Add (ISegment segment, bool insert=false) |
Add a segment to the polygon. | |
void | Add (ISegment segment, int index) |
Add a segment to the polygon. | |
void | Add (Contour contour, bool hole=false) |
Add a contour to the polygon. | |
void | Add (Contour contour, Point hole) |
Add a contour to the polygon. | |
Properties | |
List< Vertex > | Points [get] |
Gets the vertices of the polygon. | |
List< ISegment > | Segments [get] |
Gets the segments of the polygon. | |
List< Point > | Holes [get] |
Gets a list of points defining the holes of the polygon. | |
List< RegionPointer > | Regions [get] |
Gets a list of pointers defining the regions of the polygon. | |
bool | HasPointMarkers [get, set] |
Gets or sets a value indicating whether the vertices have marks or not. | |
bool | HasSegmentMarkers [get, set] |
Gets or sets a value indicating whether the segments have marks or not. | |
Polygon interface.
void TriangleNet.Geometry.IPolygon.Add | ( | Contour | contour, |
bool | hole = false |
||
) |
Add a contour to the polygon.
contour | The contour to insert. |
hole | Treat contour as a hole. |
Implemented in TriangleNet.Geometry.Polygon.
Add a contour to the polygon.
contour | The contour to insert. |
hole | Point inside the contour, making it a hole. |
Implemented in TriangleNet.Geometry.Polygon.
void TriangleNet.Geometry.IPolygon.Add | ( | ISegment | segment, |
bool | insert = false |
||
) |
Add a segment to the polygon.
segment | The segment to insert. |
insert | If true, both endpoints will be added to the points list. |
Implemented in TriangleNet.Geometry.Polygon.
void TriangleNet.Geometry.IPolygon.Add | ( | ISegment | segment, |
int | index | ||
) |
Add a segment to the polygon.
segment | The segment to insert. |
index | The index of the segment endpoint to add to the points list (must be 0 or 1). |
Implemented in TriangleNet.Geometry.Polygon.
void TriangleNet.Geometry.IPolygon.Add | ( | Vertex | vertex | ) |
Add a vertex to the polygon.
vertex | The vertex to insert. |
Implemented in TriangleNet.Geometry.Polygon.
Rectangle TriangleNet.Geometry.IPolygon.Bounds | ( | ) |
Compute the bounds of the polygon.
Implemented in TriangleNet.Geometry.Polygon.
|
getset |
Gets or sets a value indicating whether the vertices have marks or not.
Implemented in TriangleNet.Geometry.Polygon.
|
getset |
Gets or sets a value indicating whether the segments have marks or not.
Implemented in TriangleNet.Geometry.Polygon.
|
get |
Gets a list of points defining the holes of the polygon.
Implemented in TriangleNet.Geometry.Polygon.
|
get |
Gets the vertices of the polygon.
Implemented in TriangleNet.Geometry.Polygon.
|
get |
Gets a list of pointers defining the regions of the polygon.
Implemented in TriangleNet.Geometry.Polygon.
|
get |
Gets the segments of the polygon.
Implemented in TriangleNet.Geometry.Polygon.