Click or drag to resize

Polygon Class

Represents a polygon that can be triangulated, including optional holes and Steiner points.
Inheritance Hierarchy
SystemObject
  Poly2TriPolygon

Namespace: Poly2Tri
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class Polygon : Triangulatable

The Polygon type exposes the following members.

Constructors
 NameDescription
Public methodPolygon(IEnumerablePolygonPoint) Create a polygon from a list of at least 3 points with no duplicates.
Public methodPolygon(IListPolygonPoint) Create a polygon from a list of at least 3 points with no duplicates.
Public methodPolygon(PolygonPoint) Create a polygon from a list of at least 3 points with no duplicates.
Top
Properties
 NameDescription
Public propertyHoles Gets the holes contained in this polygon.
Public propertyPoints Gets the points that will be triangulated.
Public propertyTriangles Gets the triangles produced by triangulation.
Public propertyTriangulationMode Gets the triangulation mode used for this instance.
Top
Methods
 NameDescription
Public methodAddHole Add a hole to the polygon.
Public methodAddPoint Adds a point after the last in the polygon.
Public methodAddPoints Inserts list (after last point in polygon?)
Public methodAddSteinerPoint Adds a Steiner point to the polygon.
Public methodAddSteinerPoints Adds multiple Steiner points to the polygon.
Public methodAddTriangle Adds a triangle to the triangulation result.
Public methodAddTriangles Adds multiple triangles to the triangulation result.
Public methodClearSteinerPoints Removes all Steiner points from the polygon.
Public methodClearTriangles Clears the currently stored triangulation result.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInsertPointAfter Inserts newPoint after point.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPrepare Prepares this instance for triangulation using the specified context.
Public methodRemovePoint Removes a point from the polygon.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected field_holes Stores holes contained in the polygon.
Protected field_last Stores the last polygon point processed while building the contour.
Protected field_points Stores the polygon boundary points.
Protected field_steinerPoints Stores optional Steiner points inside the polygon.
Protected field_triangles Stores triangles generated during triangulation.
Top
See Also