The Vertex class represents one 2d-Vertex and corresponds to the gpc_vertex-structure of the gpc library.
Member | Description |
---|---|
public double X | |
public double Y | |
public Vector( double x, double y) | Constructor |
public string ToString() |
Represents a list of Vertices and correspond to the gpc_vertex_list-structure of the gpc library.
Member | Description |
---|---|
public int NofVertices | Number of Vertices. |
public Vertex[] Vertex | |
public VectoxList() | Constructor. No Initialization. NofVertices and Vertices have to be set manually. |
public VectorList( PointF[] points ) | Constructor. |
public PointF[] ToPoints() | Returns the Points. |
public GraphicsPath TristripToGraphicsPath() | Assumes that the VetexList is a Tristrip and creates a GraphicPath-object that consists of all Triangles. |
public string ToString() |
Represents a Polygon that can consist of some Contours. A contour can be a hole that will be cut from the other contours. The Polygon-Class corresponds to the gpc_polygon-structure of the gpc library.
Member | Description |
---|---|
public int NofContours | Number of Contours. |
public bool[] ContourIsHole | Specifies for every Contour whether it represents a hole. |
public VectexList[] Contour | The Contours |
public Polygon() | Constructor. No Initialization. NofContours, ContourIsHole and Contour have to be set manually. |
public Polygon( GraphicsPath path ) | Constructor. The Polygon is converted from a GraphicsPath object. Notice that this converting is only possible if the GraphicsPath-object don't contains any curves. This can be ensure e.g. by using the Flatten-Method from the GraphicsPath-Class. |
public void AddContour( VertexList contour, bool contourIsHole ) | Adds another Contour to the polygon. |
public void Save( string filename, bool writeHoleFlags ) | Save the Polygon to a File. If writeHoleFlags is true for every Contour it is stored whether it is a hole. |
public static Polygon FromFile( string filename, bool readHoleFlags ) | Reads a Polygon from a File. |
public GraphicsPath ToGraphicsPath() | Converts the Polygon to a GraphicsPath. |
public string ToString() | |
public Tristrip ClipToTristrip( GpcOperation operation, Polygon polygon ) | Performs the chosen operation to the two polygons and returns the result as a tristrip. Corresponds to the gpc_tristrip_clip-function of the gpc-library. |
public Polygon Clip( GpcOperation operation, Polygon polygon ) | Performs the chosen operation to the two polygons and returns the result as a new Polygon. Corresponds to the gpc_polygon_clip-function of the gpc-library. |
public Tristrip ToTristrip() | Converts the Polygon to a Tristrip. Corresponds to the gpc_polygon_to_tristrip-function of the gpc-library. |
A list of tristrips. Each Tristrip is a list of Triangles. Every triple of Vertices represents a Triangle. This means that a Vertex of a VertexList is in up to 3 Triangles. The Tristrip-Class corresponds to the gpc_tristrip-structure of the gpc library.
Member | Description |
---|---|
public int NofStrips | Number of tristrips. |
public VertexList[] Strip | The tristrips. |
Difference |
Intersection |
XOr |
Union |