Subject: CGAL users discussion list
List archive
[cgal-discuss] Calculating area of polygon (Gps_traits_2::Polygon_with_holes_2)
Chronological Thread
- From: nenol10 <>
- To:
- Subject: [cgal-discuss] Calculating area of polygon (Gps_traits_2::Polygon_with_holes_2)
- Date: Fri, 21 May 2010 12:32:19 +0200 (CEST)
Hi all,
I have a problem with calculating area of a polygon list. I had 2 polygons on
which i used 2D Minkowski sum offset function, the result of that are 2
polygons of type Gps_traits_2::Polygon_with_holes_2 . Now, what I need to do
is
find the area of intersection between these two polygons. When I use intersect
function on those two, i get a list like this ->
std::list<Gps_traits_2::Polygon_with_holes_2>
Area that i need, would be sum of the all polygons in resulting list. Due to
the nature of the input polygons, i know that the resulting list will always
have exactly one polygon. Problem is that i don't see any function which could
calculate the area of the resulting list, or more precisely, first element of
the list.
Thanks for any suggestions!
- [cgal-discuss] Calculating area of polygon (Gps_traits_2::Polygon_with_holes_2), nenol10, 05/21/2010
Archive powered by MHonArc 2.6.16.