Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] use do_intersect() & zone() with Arrangement_with_history_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] use do_intersect() & zone() with Arrangement_with_history_2


Chronological Thread 
  • From: Yajie Yan <>
  • To:
  • Subject: [cgal-discuss] use do_intersect() & zone() with Arrangement_with_history_2
  • Date: Thu, 10 Jul 2014 22:43:23 -0500

Hi All,

I wonder if one could use do_intersect() & zone(), these two free
functions with an Arrangement_with_history_2 object. When I tried to
test do_intersect() with arr_with_hist I get this compile error:

error C2039: 'traits' : is not a member of
'CGAL::Arrangement_on_surface_2<GeomTraits_,TopTraits_>'
D:\codes\libs\CGAL-4.4\include\CGAL\Arrangement_2\Arrangement_on_surface_2_global.h
1522 1 curve_history

I simply added 3 lines of code to the
Arrangement_on_surface_2_example/curve_history.cpp file:

typedef CGAL::Arr_walk_along_line_point_location<Arr_with_hist_2> Walk_pl;
Walk_pl pl1(arr);
std::cout << "intersect? " << do_intersect(arr, Segment_2(Point_2(3,
2), Point_2(5, 3)), pl1) << std::endl;

This addition works with the incremental_insertion example. So my
guess is maybe it's not possible to use this function with
arr_with_hist? If I'm wrong, what is the right way to do it?


Thanks a lot!
Yajie.



Archive powered by MHonArc 2.6.18.

Top of Page