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.

circle gen polygon P (const rat circle& circ, RESPECT TYPE respect orient =<br />

RESPECT ORIENTATION );<br />

creates a polygon P whose boundary is the circle circ.<br />

4. Operations<br />

KIND P.kind( ) returns the kind of P .<br />

bool P.is trivial( ) returns true iff P is trivial.<br />

bool P.is empty( ) returns true iff P is empty.<br />

bool P.is full( ) returns true iff P is full.<br />

void P.normalize( ) simplifies the representation by calling c.normalize( )<br />

for every polygonal chain c of P .<br />

bool P.is simple( ) tests whether P is simple or not.<br />

bool P.is weakly simple( ) tests whether P is weakly simple or not.<br />

bool<br />

r circle gen polygon :: check representation(const list& polys,<br />

CHECK TYPE check =<br />

WEAKLY SIMPLE )<br />

checks whether polys is a boundary representation.<br />

Currently the nesting order is not checked, we check<br />

only for (weak) simplicity.<br />

bool P.check representation( )<br />

checks the representation of P (see above).<br />

bool P.is convex( ) returns true iff P is convex.<br />

int P.size( ) returns the size of P , i.e. the number of segments in<br />

its boundary representation.<br />

const list& P.polygons( )<br />

returns the boundary representation of P .<br />

list P.edges( )<br />

returns a chain of segments that bound P . <strong>The</strong> orientation<br />

of the chain corresponds to the orientation of<br />

P .<br />

list P.vertices( ) returns the vertices of P .<br />

list P.intersection(const r circle segment& s)<br />

returns the list of all proper intersections between s<br />

and the boundary of P .

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

Saved successfully!

Ooh no, something went wrong!