Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] compute difference of a polygon and a polygon

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] compute difference of a polygon and a polygon


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [cgal-discuss] compute difference of a polygon and a polygon
  • Date: Mon, 20 Apr 2009 20:44:48 +0300


Hi Yang,

A polygon_2 or PolyonWithHoles_2 outer boundary has to be ordered counter-clockwise. However, the boundary for holes of a PWH must be ordered clockwise.
When you create the points vectors you violate these conditions.
best,

Guy




Quoting "Yang Qu"
<>:

Hi,

I use the attached code to compute difference of a polygon and a polygon with holes,
I got the code compiled, but when I run it, it gives me the error: the polygon has a wrong orientation

Anyone know why this happened?

Regards,
Yang



--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss







Archive powered by MHonArc 2.6.16.

Top of Page