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.

double P.approximate area( )<br />

approximates the (oriented) area of the bounded region<br />

of P .<br />

Precondition: P.kind( ) is not full.<br />

All binary boolean operations are regularized, i.e., the result R of the standard boolean<br />

operation is replaced by the interior of the closure of R. We use reg X to denote the<br />

regularization of a set X.<br />

r circle gen polygon P.unite(const r circle gen polygon& Q)<br />

returns reg(P ∪ Q).<br />

r circle gen polygon P.intersection(const r circle gen polygon& Q)<br />

returns reg(P ∩ Q).<br />

r circle gen polygon P.diff(const r circle gen polygon& Q)<br />

returns reg(P \ Q).<br />

r circle gen polygon P.sym diff(const r circle gen polygon& Q)<br />

returns reg((P ∪ Q) − (P ∩ Q)).<br />

r circle gen polygon r circle gen polygon :: unite(const list& L)<br />

returns the (regularized) union of all polygons in L.<br />

Iterations Macros<br />

forall polygons(p, P ) { “the boundary polygons of P are successively assigned to<br />

r circle polygon p” }

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

Saved successfully!

Ooh no, something went wrong!