Subject: CGAL users discussion list
List archive
[cgal-discuss] Surface reconstruction from point cloud - example code does not compile
Chronological Thread
- From: Engin Kurutepe <>
- To:
- Subject: [cgal-discuss] Surface reconstruction from point cloud - example code does not compile
- Date: Thu, 19 Nov 2009 17:50:03 +0100
Hi all,
I am linking against CGAL3.5 and trying to compile the example code from this
page:
http://www.cgal.org/Manual/last/doc_html/cgal_manual/Surface_reconstruction_points_3/Chapter_main.html#Subsection_45.3.2
However gcc4.2.1 spits out the following errors:
/Users/ekurutepe/Dropbox/Development/depthRender/depthRender/../../lib/include/CGAL/Meshes/Triangulation_mesher_level_traits_3.h:76:0
/Users/ekurutepe/Dropbox/Development/depthRender/depthRender/../../lib/include/CGAL/Meshes/Triangulation_mesher_level_traits_3.h:76:
error: no type named 'Locate_type' in 'class
CGAL::Surface_mesh_complex_2_in_triangulation_3<CGAL::Delaunay_triangulation_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
CGAL::Triangulation_data_structure_3<CGAL::Surface_mesh_vertex_base_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
CGAL::Triangulation_vertex_base_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >, CGAL::Triangulation_ds_vertex_base_3<void> > >,
CGAL::Triangulation_cell_base_with_circumcenter_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
CGAL::Surface_mesh_cell_base_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
CGAL::Triangulation_cell_base_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >, CGAL::Triangulation_ds_cell_base_3<void> > > > > > >'
/Users/ekurutepe/Dropbox/Development/depthRender/depthRender/../../lib/include/CGAL/Meshes/Triangulation_mesher_level_traits_3.h:54:0
/Users/ekurutepe/Dropbox/Development/depthRender/depthRender/../../lib/include/CGAL/Meshes/Triangulation_mesher_level_traits_3.h:54:
error: no type named 'Weighted_tag' in 'class
CGAL::Surface_mesh_complex_2_in_triangulation_3<CGAL::Delaunay_triangulation_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
CGAL::Triangulation_data_structure_3<CGAL::Surface_mesh_vertex_base_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
CGAL::Triangulation_vertex_base_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >, CGAL::Triangulation_ds_vertex_base_3<void> > >,
CGAL::Triangulation_cell_base_with_circumcenter_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
CGAL::Surface_mesh_cell_base_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >,
CGAL::Triangulation_cell_base_3<CGAL::Robust_circumcenter_traits_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
> >, CGAL::Triangulation_ds_cell_base_3<void> > > > > > >'
The call causing this error is:
STr tr; // 3D Delaunay triangulation for surface mesh generation
C2t3 c2t3(tr); // 2D complex in 3D Delaunay triangulation
CGAL::make_surface_mesh(c2t3, //
reconstructed mesh
surface, // implicit
surface
criteria, // meshing
criteria
CGAL::Manifold_with_boundary_tag()); // require
manifold mesh
When I dug a little deeper into the source code I found out that C2t3 is a
typedef for Complex_2_in_triangulation_3 and that
Complex_2_in_triangulation_3 indeed does not have the Locate_type and
Weighted_tag types. On the other hand Locate_type and Weighted_tag are types
in Triangulation_3 which is NOT a parent class of
Complex_2_in_triangulation_3.
Is this an error on my side or did maybe a recent commit break the example
code?
Thanks a lot in advance.
Cheers,
Engin Kurutepe.
--------------------------------------------------------------------
Engin Kurutepe TU Berlin
FG Nachrichtenübertragung
Tel: +49 30 314 28507 Sekr. EN-1, Einsteinufer 17
Fax: +49 30 314 22514 10587 Berlin Germany
====================================================================
- [cgal-discuss] Surface reconstruction from point cloud - example code does not compile, Engin Kurutepe, 11/19/2009
- Re: [cgal-discuss] Surface reconstruction from point cloud - example code does not compile, Laurent Saboret, 11/20/2009
- Re: [cgal-discuss] Surface reconstruction from point cloud - example code does not compile, Engin Kurutepe, 11/20/2009
- Re: [cgal-discuss] Surface reconstruction from point cloud - example code does not compile, Laurent Saboret, 11/20/2009
Archive powered by MHonArc 2.6.16.