C# Class FarseerPhysics.Common.Decomposition.CDT.Polygon.Polygon

Inheritance: Triangulatable
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Protected Properties

Свойство Type Description
_holes List
_last PolygonPoint
_points List
_steinerPoints List
_triangles List

Méthodes publiques

Méthode Description
AddHole ( Polygon poly ) : void

Add a hole to the polygon.

AddPoint ( PolygonPoint p ) : void

Adds a point after the last in the polygon.

AddPoints ( IEnumerable list ) : void

Inserts list (after last point in polygon?)

AddSteinerPoint ( TriangulationPoint point ) : void
AddSteinerPoints ( List points ) : void
AddTriangle ( DelaunayTriangle t ) : void
AddTriangles ( IEnumerable list ) : void
ClearSteinerPoints ( ) : void
ClearTriangles ( ) : void
InsertPointAfter ( PolygonPoint point, PolygonPoint newPoint ) : void

Inserts newPoint after point.

Polygon ( ) : System
Polygon ( IEnumerable points ) : System

Create a polygon from a list of at least 3 points with no duplicates.

Polygon ( IList points ) : System

Create a polygon from a list of at least 3 points with no duplicates.

PrepareTriangulation ( TriangulationContext tcx ) : void

Creates constraints and populates the context with points

RemovePoint ( PolygonPoint p ) : void

Removes a point from the polygon.

Method Details

AddHole() public méthode

Add a hole to the polygon.
public AddHole ( Polygon poly ) : void
poly Polygon A subtraction polygon fully contained inside this polygon.
Résultat void

AddPoint() public méthode

Adds a point after the last in the polygon.
public AddPoint ( PolygonPoint p ) : void
p PolygonPoint The point to add
Résultat void

AddPoints() public méthode

Inserts list (after last point in polygon?)
public AddPoints ( IEnumerable list ) : void
list IEnumerable
Résultat void

AddSteinerPoint() public méthode

public AddSteinerPoint ( TriangulationPoint point ) : void
point TriangulationPoint
Résultat void

AddSteinerPoints() public méthode

public AddSteinerPoints ( List points ) : void
points List
Résultat void

AddTriangle() public méthode

public AddTriangle ( DelaunayTriangle t ) : void
t FarseerPhysics.Common.Decomposition.CDT.Delaunay.DelaunayTriangle
Résultat void

AddTriangles() public méthode

public AddTriangles ( IEnumerable list ) : void
list IEnumerable
Résultat void

ClearSteinerPoints() public méthode

public ClearSteinerPoints ( ) : void
Résultat void

ClearTriangles() public méthode

public ClearTriangles ( ) : void
Résultat void

InsertPointAfter() public méthode

Inserts newPoint after point.
public InsertPointAfter ( PolygonPoint point, PolygonPoint newPoint ) : void
point PolygonPoint The point to insert after in the polygon
newPoint PolygonPoint The point to insert into the polygon
Résultat void

Polygon() public méthode

public Polygon ( ) : System
Résultat System

Polygon() public méthode

Create a polygon from a list of at least 3 points with no duplicates.
public Polygon ( IEnumerable points ) : System
points IEnumerable A list of unique points.
Résultat System

Polygon() public méthode

Create a polygon from a list of at least 3 points with no duplicates.
public Polygon ( IList points ) : System
points IList A list of unique points
Résultat System

PrepareTriangulation() public méthode

Creates constraints and populates the context with points
public PrepareTriangulation ( TriangulationContext tcx ) : void
tcx TriangulationContext The context
Résultat void

RemovePoint() public méthode

Removes a point from the polygon.
public RemovePoint ( PolygonPoint p ) : void
p PolygonPoint
Résultat void

Property Details

_holes protected_oe property

protected List _holes
Résultat List

_last protected_oe property

protected PolygonPoint,FarseerPhysics.Common.Decomposition.CDT.Polygon _last
Résultat PolygonPoint

_points protected_oe property

protected List _points
Résultat List

_steinerPoints protected_oe property

protected List _steinerPoints
Résultat List

_triangles protected_oe property

protected List _triangles
Résultat List