Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] [gdal-dev] how do I get the traits for Polygon_with_holes_2

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] [gdal-dev] how do I get the traits for Polygon_with_holes_2


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] [gdal-dev] how do I get the traits for Polygon_with_holes_2
  • Date: Fri, 07 Nov 2014 09:48:56 +0100
  • Organization: GeometryFactory

On 11/07/2014 09:33 AM, Vincent Mora wrote:
Hi,

I need to call are_holes_and_boundary_pairwise_disjoint(pwh, traits) to
check an instance pwh of CGAL::Polygon_with_holes_2<Kernel>.

I can't figure out how to obtain the traits parameter. Can someone tell
me ?
The following should work:

CGAL::Polygon_with_holes_2<Kernel> poly;
Kernel k;
are_holes_and_boundary_pairwise_disjoint(poly, k);

Sebastien.


Thanks,

V.


template <class Traits_2>
bool are_holes_and_boundary_pairwise_disjoint
(const typename Traits_2::Polygon_with_holes_2& pwh, Traits_2& traits)
{
...
}





Archive powered by MHonArc 2.6.18.

Top of Page