Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Help with understanding boolops on Bezier polygons

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Help with understanding boolops on Bezier polygons


Chronological Thread 
  • From: Shriramana Sharma <>
  • To:
  • Subject: Re: [cgal-discuss] Help with understanding boolops on Bezier polygons
  • Date: Wed, 7 Nov 2012 15:59:00 +0530

Hi thanks all for your kind and informative replies. It would be great
to have at least some of the features headers-only (since CGAL uses
templates heavily anyway).

On Tue, Nov 6, 2012 at 4:49 PM, Efi Fogel
<>
wrote:
> The Bezier traits handles self intersections. This implies that an
> arrangement can be constructed given Bezier curves some of which are self
> intersecting.
> A (general) polygons which is the input to a Boolean operation is a
> different story. It must be simple. The exact definition appears in the
> manual, but I can tell you that it cannot self intersect.

OK.

>> /home/samjnaa/bn/cpp-cgal/boolean-test.cpp: In function ‘int main(int,
>> char**)’:
>> /home/samjnaa/bn/cpp-cgal/boolean-test.cpp:168:37: error: no matching
>> function for call to ‘print_polygon_with_holes(const
CGAL::General_polygon_with_holes_2<CGAL::General_polygon_2<CGAL::Arr_Bezier_curve_traits_2<CGAL::Cartesian<CORE::BigRat>,
>> CGAL::Cartesian<CORE::Expr>, CGAL::CORE_algebraic_number_traits> >
>> >&)’
>> /home/samjnaa/bn/cpp-cgal/boolean-test.cpp:168:37: note: candidate is:
>> /home/samjnaa/bn/cpp-cgal/print_utils.h:27:6: note: template<class
>> Kernel, class Container> void print_polygon_with_holes(const
>> CGAL::Polygon_with_holes_2<Kernel_, Container_>&)

Oh only now I observe that the types are entirely different. I'll see
what I can do.

BTW it would be good if the polygons could use operator << and not
just push_back to add points -- it would make programming so much
easier, no?

polygon << Point_2(10,10) << Point_2(20,30) ... ;

--
Shriramana Sharma



Archive powered by MHonArc 2.6.18.

Top of Page