Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Polygon operations

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Polygon operations


Chronological Thread 
  • From: Efi Fogel <>
  • To:
  • Subject: Re: [cgal-discuss] Polygon operations
  • Date: Mon, 18 Jun 2007 02:03:07 +0200

Robert Bryce wrote:

Hi all,

I’m looking at the polygon set operations (union, intersection, difference).

How does CGAL handle self-intersecting polygons in these operations?

Thanks,

--Rob

An input polygon must be strictly simple and its vertices must be oriented counterclockwise.

An input polygon with holes is represented by at most one simple polygon oriented counterclockwise that defines the outer boundary of the polygon, and for each hole a strictly simple polygon, whose vertices are oriented clockwise around the interior of the hole.

A finite number of vertices on the outer boundary of a polygon with holes may appear more than once, but self intersections or overlapping are not allowed.

The General_polygon_set_2 class has an un-documented experimental member function that simplifies an input polygon and converts it into a valid polygon with holes.

--
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/






Archive powered by MHonArc 2.6.16.

Top of Page