C# Class Poly2Tri.Triangulation.Delaunay.DelaunayTriangle

显示文件 Open project: scastle/Solitude Class Usage Examples

Public Properties

Property Type Description
EdgeIsConstrained FixedBitArray3
EdgeIsDelaunay FixedBitArray3
Neighbors FixedArray3
Points FixedArray3

Public Methods

Method Description
Area ( ) : double
Centroid ( ) : TriangulationPoint
Clear ( ) : void
ClearNeighbor ( DelaunayTriangle triangle ) : void
ClearNeighbors ( ) : void
Contains ( DTSweepConstraint e ) : bool
Contains ( TriangulationPoint p ) : bool
Contains ( TriangulationPoint p, TriangulationPoint q ) : bool
DelaunayTriangle ( TriangulationPoint p1, TriangulationPoint p2, TriangulationPoint p3 ) : System
EdgeIndex ( TriangulationPoint p1, TriangulationPoint p2 ) : int

Get the index of the neighbor that shares this edge (or -1 if it isn't shared)

GetConstrainedEdgeAcross ( TriangulationPoint p ) : bool
GetConstrainedEdgeCCW ( TriangulationPoint p ) : bool
GetConstrainedEdgeCW ( TriangulationPoint p ) : bool
GetDelaunayEdgeAcross ( TriangulationPoint p ) : bool
GetDelaunayEdgeCCW ( TriangulationPoint p ) : bool
GetDelaunayEdgeCW ( TriangulationPoint p ) : bool
IndexCCW ( TriangulationPoint p ) : int
IndexCW ( TriangulationPoint p ) : int
IndexOf ( TriangulationPoint p ) : int
Legalize ( TriangulationPoint oPoint, TriangulationPoint nPoint ) : void

Legalize triangle by rotating clockwise around oPoint

MarkConstrainedEdge ( DTSweepConstraint edge ) : void
MarkConstrainedEdge ( TriangulationPoint p, TriangulationPoint q ) : void

Mark edge as constrained

MarkConstrainedEdge ( int index ) : void
MarkEdge ( DelaunayTriangle triangle ) : void
MarkEdge ( List tList ) : void
MarkNeighbor ( DelaunayTriangle t ) : void

Exhaustive search to update neighbor pointers

MarkNeighborEdges ( ) : void

Finalize edge marking

NeighborAcross ( TriangulationPoint point ) : DelaunayTriangle
NeighborCCW ( TriangulationPoint point ) : DelaunayTriangle
NeighborCW ( TriangulationPoint point ) : DelaunayTriangle
OppositePoint ( DelaunayTriangle t, TriangulationPoint p ) : TriangulationPoint
PointCCW ( TriangulationPoint point ) : TriangulationPoint
PointCW ( TriangulationPoint point ) : TriangulationPoint
SetConstrainedEdgeAcross ( TriangulationPoint p, bool ce ) : void
SetConstrainedEdgeCCW ( TriangulationPoint p, bool ce ) : void
SetConstrainedEdgeCW ( TriangulationPoint p, bool ce ) : void
SetDelaunayEdgeAcross ( TriangulationPoint p, bool ce ) : void
SetDelaunayEdgeCCW ( TriangulationPoint p, bool ce ) : void
SetDelaunayEdgeCW ( TriangulationPoint p, bool ce ) : void
ToString ( ) : string

Private Methods

Method Description
MarkNeighbor ( TriangulationPoint p1, TriangulationPoint p2, DelaunayTriangle t ) : void

Update neighbor pointers

RotateCW ( ) : void

Method Details

Area() public method

public Area ( ) : double
return double

Centroid() public method

public Centroid ( ) : TriangulationPoint
return TriangulationPoint

Clear() public method

public Clear ( ) : void
return void

ClearNeighbor() public method

public ClearNeighbor ( DelaunayTriangle triangle ) : void
triangle DelaunayTriangle
return void

ClearNeighbors() public method

public ClearNeighbors ( ) : void
return void

Contains() public method

public Contains ( DTSweepConstraint e ) : bool
e Poly2Tri.Triangulation.Delaunay.Sweep.DTSweepConstraint
return bool

Contains() public method

public Contains ( TriangulationPoint p ) : bool
p TriangulationPoint
return bool

Contains() public method

public Contains ( TriangulationPoint p, TriangulationPoint q ) : bool
p TriangulationPoint
q TriangulationPoint
return bool

DelaunayTriangle() public method

public DelaunayTriangle ( TriangulationPoint p1, TriangulationPoint p2, TriangulationPoint p3 ) : System
p1 TriangulationPoint
p2 TriangulationPoint
p3 TriangulationPoint
return System

EdgeIndex() public method

Get the index of the neighbor that shares this edge (or -1 if it isn't shared)
public EdgeIndex ( TriangulationPoint p1, TriangulationPoint p2 ) : int
p1 TriangulationPoint
p2 TriangulationPoint
return int

GetConstrainedEdgeAcross() public method

public GetConstrainedEdgeAcross ( TriangulationPoint p ) : bool
p TriangulationPoint
return bool

GetConstrainedEdgeCCW() public method

public GetConstrainedEdgeCCW ( TriangulationPoint p ) : bool
p TriangulationPoint
return bool

GetConstrainedEdgeCW() public method

public GetConstrainedEdgeCW ( TriangulationPoint p ) : bool
p TriangulationPoint
return bool

GetDelaunayEdgeAcross() public method

public GetDelaunayEdgeAcross ( TriangulationPoint p ) : bool
p TriangulationPoint
return bool

GetDelaunayEdgeCCW() public method

public GetDelaunayEdgeCCW ( TriangulationPoint p ) : bool
p TriangulationPoint
return bool

GetDelaunayEdgeCW() public method

public GetDelaunayEdgeCW ( TriangulationPoint p ) : bool
p TriangulationPoint
return bool

IndexCCW() public method

public IndexCCW ( TriangulationPoint p ) : int
p TriangulationPoint
return int

IndexCW() public method

public IndexCW ( TriangulationPoint p ) : int
p TriangulationPoint
return int

IndexOf() public method

public IndexOf ( TriangulationPoint p ) : int
p TriangulationPoint
return int

Legalize() public method

Legalize triangle by rotating clockwise around oPoint
public Legalize ( TriangulationPoint oPoint, TriangulationPoint nPoint ) : void
oPoint TriangulationPoint The origin point to rotate around
nPoint TriangulationPoint ???
return void

MarkConstrainedEdge() public method

public MarkConstrainedEdge ( DTSweepConstraint edge ) : void
edge Poly2Tri.Triangulation.Delaunay.Sweep.DTSweepConstraint
return void

MarkConstrainedEdge() public method

Mark edge as constrained
public MarkConstrainedEdge ( TriangulationPoint p, TriangulationPoint q ) : void
p TriangulationPoint
q TriangulationPoint
return void

MarkConstrainedEdge() public method

public MarkConstrainedEdge ( int index ) : void
index int
return void

MarkEdge() public method

public MarkEdge ( DelaunayTriangle triangle ) : void
triangle DelaunayTriangle
return void

MarkEdge() public method

public MarkEdge ( List tList ) : void
tList List
return void

MarkNeighbor() public method

Exhaustive search to update neighbor pointers
public MarkNeighbor ( DelaunayTriangle t ) : void
t DelaunayTriangle
return void

MarkNeighborEdges() public method

Finalize edge marking
public MarkNeighborEdges ( ) : void
return void

NeighborAcross() public method

public NeighborAcross ( TriangulationPoint point ) : DelaunayTriangle
point TriangulationPoint
return DelaunayTriangle

NeighborCCW() public method

public NeighborCCW ( TriangulationPoint point ) : DelaunayTriangle
point TriangulationPoint
return DelaunayTriangle

NeighborCW() public method

public NeighborCW ( TriangulationPoint point ) : DelaunayTriangle
point TriangulationPoint
return DelaunayTriangle

OppositePoint() public method

public OppositePoint ( DelaunayTriangle t, TriangulationPoint p ) : TriangulationPoint
t DelaunayTriangle Opposite triangle
p TriangulationPoint The point in t that isn't shared between the triangles
return TriangulationPoint

PointCCW() public method

public PointCCW ( TriangulationPoint point ) : TriangulationPoint
point TriangulationPoint
return TriangulationPoint

PointCW() public method

public PointCW ( TriangulationPoint point ) : TriangulationPoint
point TriangulationPoint
return TriangulationPoint

SetConstrainedEdgeAcross() public method

public SetConstrainedEdgeAcross ( TriangulationPoint p, bool ce ) : void
p TriangulationPoint
ce bool
return void

SetConstrainedEdgeCCW() public method

public SetConstrainedEdgeCCW ( TriangulationPoint p, bool ce ) : void
p TriangulationPoint
ce bool
return void

SetConstrainedEdgeCW() public method

public SetConstrainedEdgeCW ( TriangulationPoint p, bool ce ) : void
p TriangulationPoint
ce bool
return void

SetDelaunayEdgeAcross() public method

public SetDelaunayEdgeAcross ( TriangulationPoint p, bool ce ) : void
p TriangulationPoint
ce bool
return void

SetDelaunayEdgeCCW() public method

public SetDelaunayEdgeCCW ( TriangulationPoint p, bool ce ) : void
p TriangulationPoint
ce bool
return void

SetDelaunayEdgeCW() public method

public SetDelaunayEdgeCW ( TriangulationPoint p, bool ce ) : void
p TriangulationPoint
ce bool
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

EdgeIsConstrained public_oe property

public FixedBitArray3 EdgeIsConstrained
return FixedBitArray3

EdgeIsDelaunay public_oe property

public FixedBitArray3 EdgeIsDelaunay
return FixedBitArray3

Neighbors public_oe property

public FixedArray3 Neighbors
return FixedArray3

Points public_oe property

public FixedArray3 Points
return FixedArray3