Polygon Class |
public class Polygon : Triangulatable
The Polygon type exposes the following members.
| Name | Description | |
|---|---|---|
| Polygon(IEnumerablePolygonPoint) | Create a polygon from a list of at least 3 points with no duplicates. | |
| Polygon(IListPolygonPoint) | Create a polygon from a list of at least 3 points with no duplicates. | |
| Polygon(PolygonPoint) | Create a polygon from a list of at least 3 points with no duplicates. |
| Name | Description | |
|---|---|---|
| Holes | Gets the holes contained in this polygon. | |
| Points | Gets the points that will be triangulated. | |
| Triangles | Gets the triangles produced by triangulation. | |
| TriangulationMode | Gets the triangulation mode used for this instance. |
| Name | Description | |
|---|---|---|
| AddHole | Add a hole to the polygon. | |
| AddPoint | Adds a point after the last in the polygon. | |
| AddPoints | Inserts list (after last point in polygon?) | |
| AddSteinerPoint | Adds a Steiner point to the polygon. | |
| AddSteinerPoints | Adds multiple Steiner points to the polygon. | |
| AddTriangle | Adds a triangle to the triangulation result. | |
| AddTriangles | Adds multiple triangles to the triangulation result. | |
| ClearSteinerPoints | Removes all Steiner points from the polygon. | |
| ClearTriangles | Clears the currently stored triangulation result. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| InsertPointAfter | Inserts newPoint after point. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Prepare | Prepares this instance for triangulation using the specified context. | |
| RemovePoint | Removes a point from the polygon. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| _holes | Stores holes contained in the polygon. | |
| _last | Stores the last polygon point processed while building the contour. | |
| _points | Stores the polygon boundary points. | |
| _steinerPoints | Stores optional Steiner points inside the polygon. | |
| _triangles | Stores triangles generated during triangulation. |