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.

14.29 Polygons with circular edges ( r circle polygon<br />

)<br />

1. Definition<br />

An instance P of the data type r circle polygon is a cyclic list of r circle segments,<br />

i.e. straight line or circular segments. A polygon is called simple if all nodes of the<br />

graph induced by its segments have degree two and it is called weakly simple, if its segments<br />

are disjoint except for common endpoints and if the chain does not cross itself. See<br />

the <strong>LEDA</strong> book for details.<br />

A weakly simple polygon splits the plane into an unbounded region and one or more<br />

bounded regions. For a simple polygon there is just one bounded region. When a weakly<br />

simple polygon P is traversed either the bounded region is consistently to the left of P or<br />

the unbounded region is consistently to the left of P . We say that P is positively oriented<br />

in the former case and negatively oriented in the latter case. We use P to also denote the<br />

region to the left of P and call this region the positive side of P .<br />

<strong>The</strong> number of segments is called the size of P . A polygon of size zero is trivial; it either<br />

describes the empty set or the full two-dimensional plane.<br />

#include < <strong>LEDA</strong>/geo/r circle polygon.h ><br />

2. Types<br />

r circle polygon :: KIND { EMPTY, FULL, NON TRIVIAL }<br />

describes the kind of the polygon: the empty set, the full plane or<br />

a non-trivial polygon.<br />

r circle polygon :: CHECK TYPE { NO CHECK, SIMPLE, WEAKLY SIMPLE, NOT<br />

WEAKLY SIMPLE }<br />

used to specify which checks should be applied and also describes<br />

the outcome of a simplicity check.<br />

r circle polygon :: RESPECT TYPE { DISREGARD ORIENTATION, RESPECT<br />

ORIENTATION }<br />

used in contructors to specify whether to force a positive orientation<br />

for the constructed object (DISREGARD ORIENTATION ) or to<br />

keep the orientation of the input (RESPECT ORIENTATION ).<br />

3. Creation<br />

r circle polygon P ; creates an empty polygon P .<br />

r circle polygon P (KIND k);<br />

creates a polygon P of kind k, where k is either EMPTY or FULL.

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

Saved successfully!

Ooh no, something went wrong!