UConn Computational Geometry

View My GitHub Profile

Compugeom.GitHub.io by compugeom

CG_PSLG

Description

A drawable planar straight line graph.

Constructor

CG_PSLG()

Attributes

[CG_Edge] edges A list of edges contained in this PSLG.
CG_HalfEdge activeHalfEdge The currently active half edge that is to be drawn.
Boolean orient The orientation of the interior of this PSLG.

Functions

CG_Edge newEdge(CG_Vertex u, CG_Vertex v) Adds a new edge with endpoints u and v, creates half edges associated with these vertices and sets the active HalfEdge as v.h.twin.
null keyPressed() Traverses the PSLG with keyboard command p, n and t.