Closed GoogleCodeExporter closed 9 years ago
This is probably a bug in CGAL.
Can you try replacing locate by this->locate.
If it's a bug, I'll fix it in CGAL directly.
Original comment by sloriot...@gmail.com
on 2 Oct 2012 at 9:50
Is the replacement locate to this->locate be done in the installed
Triangulation_2.h file? Or do I re-build cgal? Modifying just the installed
Triangulation_2.h, the result is:
[ 56%] Building CXX object
SWIG_CGAL/Triangulation_2/CMakeFiles/_CGAL_Triangulation_2.dir/CGAL_Triangulatio
n_2PYTHON_wrap.cxx.o
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Triangulation_2/CGAL_Triangulation_2PY
THON_wrap.cxx:3222:
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Triangulation_2/all_includes.h:11:
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Triangulation_2/typedefs.h:13:
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Triangulation_2.h:410:3: error:
expected member name or ';' after declaration specifiers
this->locate(const Point & p,
^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Triangulation_2.h:422:3: error:
expected member name or ';' after declaration specifiers
this->locate(const Point & p, Face_handle start = Face_handle()) const
^
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Triangulation_2/CGAL_Triangulation_2PY
THON_wrap.cxx:3222:
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Triangulation_2/all_includes.h:11:
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Triangulation_2/typedefs.h:16:
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Regular_triangulation_2.h:105:15:
error: no member named 'locate' in
'CGAL::Triangulation_2<CGAL::Weighted_point_mapper_2<CGAL::Regular_triangulation
_euclidean_traits_2<CGAL::Epick, double>>,
CGAL::Triangulation_data_structure_2<CGAL::Regular_triangulation_vertex_base_2<CGAL::Regular_triangulation_euclidean_traits_2<CGAL::Epick, double>, CGAL::Triangulation_ds_vertex_base_2<void>>,
CGAL::Regular_triangulation_face_base_2<CGAL::Regular_triangulation_euclidean_traits_2<CGAL::Epick, double>, CGAL::Triangulation_face_base_2<CGAL::Regular_triangulation_euclidean_traits_2<CGAL::Epick, double>,
CGAL::Triangulation_ds_face_base_2<void>>>>>'
using Base::locate;
~~~~~~^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Triangulation_2/CGAL_Triangulation_2PY
THON_wrap.cxx:4089:29: note: in instantiation of template class
'CGAL::Regular_triangulation_2<CGAL::Regular_triangulation_euclidean_traits_2<CG
AL::Epick, double>,
CGAL::Triangulation_data_structure_2<CGAL::Regular_triangulation_vertex_base_2<CGAL::Regular_triangulation_euclidean_traits_2<CGAL::Epick, double>, CGAL::Triangulation_ds_vertex_base_2<void>>,
CGAL::Regular_triangulation_face_base_2<CGAL::Regular_triangulation_euclidean_traits_2<CGAL::Epick, double>, CGAL::Triangulation_face_base_2<CGAL::Regular_triangulation_euclidean_traits_2<CGAL::Epick, double>,
CGAL::Triangulation_ds_face_base_2<void>>>>>' requested here
typedef SWIG_CGAL_Iterator<CGAL_RT2::All_vertices_iterator,SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL_RT2,Weighted_point_2> > Regular_triangulation_2_All_vertices_iterator_SWIG_wrapper;
and so on.
The fragment of Triangulation_2.h looks like:
Face_handle
this->locate(const Point & p,
Locate_type & lt, int & li,
Face_handle start = Face_handle()) const
{
typedef Triangulation_structural_filtering_traits<Geom_traits> TSFT;
typedef typename internal::Structural_filtering_selector_2<
TSFT::Use_structural_filtering_tag::value >::Tag Should_filter_tag;
return generic_locate(p, lt, li, start, Should_filter_tag());
}
Face_handle
this->locate(const Point & p, Face_handle start = Face_handle()) const
{
Locate_type lt;
int li;
return locate(p, lt, li, start);
}
Original comment by jon.s...@gmail.com
on 3 Oct 2012 at 12:03
No, in the file Alpha_shape_2.h line 594.
replace:
Face_handle pFace = locate(p, type, i);
by
Face_handle pFace = this->locate(p, type, i);
Original comment by sloriot...@gmail.com
on 3 Oct 2012 at 7:47
Original comment by sloriot...@gmail.com
on 3 Oct 2012 at 10:25
I hit the same problem on Linux, and fixing Alpha_shape_2.h line 594 fixed it.
Original comment by dfGooden...@googlemail.com
on 9 Feb 2013 at 4:23
Original issue reported on code.google.com by
jon.s...@gmail.com
on 2 Oct 2012 at 9:43