Subject: CGAL users discussion list
List archive
[cgal-discuss] The Problem in calculate the intersection of two X_monotone_curve_2
Chronological Thread
- From: zickphy <>
- To:
- Subject: [cgal-discuss] The Problem in calculate the intersection of two X_monotone_curve_2
- Date: Wed, 7 Oct 2009 13:50:20 -0700 (PDT)
Hi all,
I get a problem in programming of compile. Here is my code, please help me
to resovle it, Thanks a lot!!
-------------------------------------------------------
typedef CGAL::CORE_algebraic_number_traits Nt_traits;
typedef Nt_traits::Rational Rational;
typedef Nt_traits::Algebraic Algebraic;typedef CGAL::Cartesian<Rational>
Rat_kernel;
typedef CGAL::Cartesian<Algebraic> Alg_kernel;
typedef CGAL::Arr_conic_traits_2<Rat_kernel, Alg_kernel,
Nt_traits>Conic_traits_2;
typedef Rat_kernel::Point_2 Point_2;
typedef CGAL::Polygon_2<Rat_kernel> Polygon_2;
typedef CGAL::Gps_traits_2<Conic_traits_2> Gps_traits_2;
typedef Gps_traits_2::Polygon_2 Offset_polygon_2;
typedef Gps_traits_2::Polygon_with_holes_2 Offset_polygon_with_holes_2;
typedef Gps_traits_2::X_monotone_curve_2 X_monotone_curve_2;
typedef Gps_traits_2::Point_2 Query_Point_2;
void main {
Query_Point_2 pt1(0, 0);
Query_Point_2 pt2(0, 10);
Query_Point_2 pt3(10, 0);
Query_Point_2 pt4(0, 10);
std::list<Query_Point_2> pts;
X_monotone_curve_2 is1(pt1, pt2);
X_monotone_curve_2 is2(pt3, pt4);
X_monotone_curve_2 iss[] = {is1, is2};
compute_intersection_points(iss, iss+1, std::back_inserter
(pts));
}
----------------------------------------------------------------
And I got the compil errors as those:
----------------------------------------------------------------
d:\cgal-3.5-beta1\include\cgal\sweep_line_2_algorithms.h(134) : error C2039:
“Traits”: is not a member of “CGAL::Default_arr_traits<Curve>”
.......
etc.....
----------------------------------------------------------------
Please help me on this problem, thanks!!
--
View this message in context:
http://www.nabble.com/The-Problem-in-calculate-the-intersection-of-two-X_monotone_curve_2-tp25740486p25740486.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] The Problem in calculate the intersection of two X_monotone_curve_2, zickphy, 10/07/2009
- Re: [cgal-discuss] The Problem in calculate the intersection of two X_monotone_curve_2, efif, 10/11/2009
- Re: [cgal-discuss] The Problem in calculate the intersection of two X_monotone_curve_2, zickphy, 10/11/2009
- Re: [cgal-discuss] The Problem in calculate the intersection of two X_monotone_curve_2, Efraim Fogel, 10/12/2009
- Re: [cgal-discuss] The Problem in calculate the intersection of two X_monotone_curve_2, zickphy, 10/11/2009
- Re: [cgal-discuss] The Problem in calculate the intersection of two X_monotone_curve_2, zickphy, 10/16/2009
- Re: [cgal-discuss] The Problem in calculate the intersection of two X_monotone_curve_2, efif, 10/11/2009
Archive powered by MHonArc 2.6.16.