31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

edge TRIANGULATE PLANE MAP(GRAPH & G)<br />

computes a constrained triangulation T of the plane map (counterclockwise<br />

straight-line embedded Graph) G. <strong>The</strong> function returns an<br />

edge of the outer face (convex hull). Precondition: G is simple.<br />

edge DELAUNAY TRIANG(GRAPH & G)<br />

computes a constrained Delaunay triangulation T of the plane map G.<br />

<strong>The</strong> function returns an edge of the outer face (convex hull). Precondition:<br />

G is simple.<br />

edge TRIANGULATE POLYGON(const polygon& P, GRAPH & G,<br />

list& inner edges, list& outer edges,<br />

list& boundary edges)<br />

triangulates the interior and exterior of the simple polygon P and stores<br />

all edges of the inner (outer) triangulation in inner edges (outer edges)<br />

and the edges of the polygon boundary in boundary edges. <strong>The</strong> function<br />

returns an edge of the convex hull of P if P is simple and nil otherwise.<br />

edge TRIANGULATE POLYGON(const gen polygon& GP,<br />

GRAPH & G,<br />

list& inner edges, list& outer edges,<br />

list& boundary edges, list& hole edges)<br />

triangulates the interior and exterior of the generalized polygon GP<br />

and stores all edges of the inner (outer) triangulation in inner edges<br />

(outer edges). <strong>The</strong> function returns nil if GP is trivial, and an edge<br />

of the convex hull otherwise. boundary edges contains the edges of every<br />

counter-clockwise oriented boundary cycle of GP, and hole edges contains<br />

the edges on every clockwise oriented boundary cycle of GP. Note that<br />

the reversals of boundary and hole edges will be returned in inner edges.<br />

Precondition: GP is simple.<br />

edge CONVEX COMPONENTS(const polygon& P, GRAPH & G,<br />

list& inner edges, list& boundary)<br />

if P is a bounded and non-trivial simple polygon its interior is decomposed<br />

into convex parts. All inner edges of the constructed decomposition are<br />

returned in inner edges. boundary edges contains the edges of the polygon<br />

boundary Note that the reversals of boundary edges will be stored in<br />

inner edges. <strong>The</strong> function returns an edge of the convex hull if P is<br />

simple and non-trivial and nil otherwise.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!