Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: How to calculate area of difference of two polygons?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: How to calculate area of difference of two polygons?


Chronological Thread 
  • From: Zohar <>
  • To:
  • Subject: [cgal-discuss] Re: How to calculate area of difference of two polygons?
  • Date: Sun, 18 Mar 2012 00:58:09 -0700 (PDT)


You should have for each curve a begin() and end() to iterate the points.
These points you can insert to a new polygon and call the area function.
Post a full test program for further help.

Alternatively you can intersect the two polygons with arrangement_2, and for
each cell in the arrangement check if it is inside or outside each poly, and
do you bool operation accordingly.

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/How-to-calculate-area-of-difference-of-two-polygons-tp4466197p4481788.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page