Method | Description | |
---|---|---|
CutHoleInShape ( |
Cuts a hole into a shape.
|
|
DetermineWindingOrder ( |
Determines the winding order of a polygon given a set of vertices.
|
|
EnsureWindingOrder ( |
Ensures that a set of vertices are wound in a particular order, reversing them if necessary.
|
|
ReverseWindingOrder ( |
Reverses the winding order for a set of vertices.
|
|
Triangulate ( |
Triangulates a 2D polygon produced the indexes required to render the points as a triangle list.
|
Method | Description | |
---|---|---|
ClipNextEar ( ICollection |
||
FindConvexAndReflexVertices ( ) : void | ||
FindEarVertices ( ) : void | ||
IsConvex ( |
||
IsEar ( |
||
IsReflex ( |
||
ValidateAdjacentVertex ( |
public static CutHoleInShape ( |
||
shapeVerts | An array of vertices for the primary shape. | |
holeVerts | An array of vertices for the hole to be cut. It is assumed that these vertices lie completely within the shape verts. | |
return | Microsoft.Xna.Framework.Vector2[] |
public static DetermineWindingOrder ( |
||
vertices | The vertices of the polygon. | |
return | WindingOrder |
public static EnsureWindingOrder ( |
||
vertices | The vertices of the polygon. | |
windingOrder | WindingOrder | The desired winding order. |
return | Microsoft.Xna.Framework.Vector2[] |
public static ReverseWindingOrder ( |
||
vertices | The vertices of the polygon. | |
return | Microsoft.Xna.Framework.Vector2[] |
public static Triangulate ( |
||
inputVertices | The polygon vertices in counter-clockwise winding order. | |
desiredWindingOrder | WindingOrder | The desired output winding order. |
outputVertices | The resulting vertices that include any reversals of winding order and holes. | |
indices | int | The resulting indices for rendering the shape as a triangle list. |
return | void |