Subject: CGAL users discussion list
List archive
- From: Mahmood NT <>
- To:
- Subject: Re: [cgal-discuss] error on using "CGAL::bounded_side_2()"
- Date: Sat, 1 Dec 2007 04:57:49 -0800 (PST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=iKgUUCypEeI3B9640NPINTWO+mVc16p1lqa1KOdlcyAydEsK0G/EZy8PPp5mVQIETIjv91U9bZTiJ+zSIUHBGAzI7j8WjQH1U/drFNpLFtPInRXfVsmC36QUcK8wWWhB1jJkzToDaETtdx3QZbIZD4yUB5wErUIjsS0hoxDyY64=;
>The fourth argument should be the kernel and not another point
>CGAL::bounded_side_2( vertices.begin(), vertices.end(), Rat_point_2 (1,
2), Rat_kernel() );
Thanks, it solved
Mahmood NT
----- Original Message ----
From: Andreas Fabri
<>
To:
Sent: Saturday, December 1, 2007 3:57:33 PM
Subject: Re: [cgal-discuss] error on using "CGAL::bounded_side_2()"
Mahmood NT wrote:
> Hi,
> I have the following definitions for a polygon.
> typedef Traits_ Traits_2;
>
> typedef typename Traits_2::Rat_kernel Rat_kernel;
>
> typedef typename Rat_kernel::Point_2 Rat_point_2;
> typedef Polygon_2<Rat_kernel> Rat_polygon_2;
> std::list<Rat_point_2> vertices;
>
> In a loop I will push back the points like this:
> vertices.push_back (Rat_point_2 (x, y));
>
> Then I define polygon:
> Rat_polygon_2 pgn (vertices.begin(), vertices.end());
>
> Now, when I want to use "CGAL::bounded_side_2" I get compilation
error:
> CGAL::bounded_side_2( vertices.begin(), vertices.end(), Rat_point_2
(1, 2), Rat_point_2() );
The fourth argument should be the kernel and not another point
CGAL::bounded_side_2( vertices.begin(), vertices.end(), Rat_point_2 (1,
2), Rat_kernel() );
andreas
>
> Why? I have to say, I use CGAL 3.2. Does it matter?
> I am looking for something like: "CGAL::bounded_side_2( pgn,
Rat_point_2 (1, 2) );" Is it possible?
>
> the error message is:
> include/CGAL/Polygon_2_algorithms.C: In function `CGAL::Bounded_side
> CGAL::bounded_side_2(ForwardIterator, ForwardIterator, const
Point&, const Traits&) [with ForwardIterator =
> std::_List_iterator<CGAL::Point_2<CGAL::Simple_cartesian<Rational>
>,
> CGAL::Point_2<CGAL::Simple_cartesian<Rational> >&,
CGAL::Point_2<CGAL::Simple_cartesian<Rational>
> >*>, Point = Rat_point_2, Traits = Rat_point_2]':
>
> VVc_demo.cpp:607: instantiated from here
> .../CGAL-3.2/include/CGAL/Polygon_2_algorithms.C:300: error: no type
> named `Compare_x_2' in `class Rat_point_2'
> .../CGAL-3.2/include/CGAL/Polygon_2_algorithms.C:301: error: no type
> named `Compare_y_2' in `class Rat_point_2'
> .../CGAL-3.2/include/CGAL/Polygon_2_algorithms.C:302: error: no type
> named `Orientation_2' in `class Rat_point_2'
> VVc_demo.cpp:607: instantiated from here
> .../CGAL-3.2/include/CGAL/Polygon_2_algorithms.C:304: error: `
> compare_y_2' undeclared (first use this function)
> .../CGAL-3.2/include/CGAL/Polygon_2_algorithms.C:304: error: (Each
> undeclared identifier is reported only once for each function it
appears
> in.)
> .../CGAL-3.2/include/CGAL/Polygon_2_algorithms.C:317: error: `
> compare_x_2' undeclared (first use this function)
>
>
> Thanks,
>
> Mahmood NT
>
>
>
>
>
>
>
____________________________________________________________________________________
> Be a better pen pal.
> Text or chat with friends inside Yahoo! Mail. See how.
http://overview.mail.yahoo.com/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
____________________________________________________________________________________
Get easy, one-click access to your favorites.
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs
- Re: [cgal-discuss] error on using "CGAL::bounded_side_2()", Mahmood NT, 12/01/2007
Archive powered by MHonArc 2.6.16.