Class QuadEdge
java.lang.Object
Jcg.triangulations2D.QuadEdge
Quad-Edge data structure
- Author:
- Code by X.Philippeau - Structure by Guibas and Stolfi
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QuadEdgeCreates a new QuadEdge that connects e1.dest() to e2.orig()static voidDeletes a QuadEdge, that is, disconnects it from its cycle (same for its dual and its symmetric).dest()Returns the destination vertex of the QuadEdge.dual()Returns the dual QuadEdge, oriented at 90 degrees in direct orderdualSym()Returns the symmetric of the dual QuadEdge (which is also the dual of the symmetric QuadEdge).booleanstatic voidPerforms a flip of QuadEdge e.inthashCode()lnext()Returns the next QuadEdge along the left cycle (lnext.orig() == this.dest())lprev()Returns the previous QuadEdge along the left cycle (lprev.dest() == this.orig())static QuadEdgeCreates a new QuadEdge, setting next and dual fields to default null values.next()Returns the next QuadEdge starting at orig() in direct orderorig()Returns the origin vertex of the QuadEdge.prev()Returns the previous QuadEdge starting at orig() in direct orderrnext()Returns the next QuadEdge along the right cycle (rnext.orig() == this.dest())rprev()Returns the previous QuadEdge along the right cycle (rprev.dest() == this.orig())voidsets dual QuadEdge.voidSets next QuadEdge starting from orig() in direct order.voidSets origin vertex of QuadEdge.static voidMerges/splits umbrella around q1.orig() with umbrella around q2.orig().sym()Returns the symmetric QuadEdge, with origin and destination reversed.toString()
-
Field Details
-
next
-
dual
-
orig
-
mark
public boolean mark -
cMark
public boolean cMark
-
-
Constructor Details
-
QuadEdge
-
-
Method Details
-
toString
-
next
Returns the next QuadEdge starting at orig() in direct order -
dual
Returns the dual QuadEdge, oriented at 90 degrees in direct order -
orig
Returns the origin vertex of the QuadEdge. -
setNext
Sets next QuadEdge starting from orig() in direct order. -
setDual
sets dual QuadEdge. -
setOrig
Sets origin vertex of QuadEdge. -
sym
Returns the symmetric QuadEdge, with origin and destination reversed. -
dest
Returns the destination vertex of the QuadEdge. -
dualSym
Returns the symmetric of the dual QuadEdge (which is also the dual of the symmetric QuadEdge). -
prev
Returns the previous QuadEdge starting at orig() in direct order -
rprev
Returns the previous QuadEdge along the right cycle (rprev.dest() == this.orig()) -
rnext
Returns the next QuadEdge along the right cycle (rnext.orig() == this.dest()) -
lnext
Returns the next QuadEdge along the left cycle (lnext.orig() == this.dest()) -
lprev
Returns the previous QuadEdge along the left cycle (lprev.dest() == this.orig()) -
makeEdge
-
splice
-
connect
-
flipEdge
Performs a flip of QuadEdge e.- Parameters:
e- the 2 QuadEdges to connect
-
deleteEdge
Deletes a QuadEdge, that is, disconnects it from its cycle (same for its dual and its symmetric).- Parameters:
q- the QuadEdge to delete
-
equals
-
hashCode
-