Subject: CGAL users discussion list
List archive
- From: hardik kabaria <>
- To:
- Subject: [cgal-discuss] Example Compiling Issue
- Date: Tue, 18 Nov 2014 11:18:54 -0800
Hello,
--
I am having some issues compiling an example from Surface reconstruction
part. It'd be great if someone can point out what could be the issue.
I am using Mac OS 10.8 and cgal 4.4
dn525jo5:poisson_rec hardik$ port list cgal
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
cgal @4.4 gis/cgal
Compiling error:
/usr/local/soft/UM++/hardik/3Dexamples/FromTrianles/brain/cowBrainModel/poisson_rec/poisson_reconstruction_withUMesh.cpp:64:21: error: no matching member function for call
to 'compute_implicit_function'
if ( ! function.compute_implicit_function() )
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/CGAL/Poisson_reconstruction_function.h:375:8: note: candidate function template not viable: requires at least 2 arguments, but 0 were provided
bool compute_implicit_function(
^
/opt/local/include/CGAL/Poisson_reconstruction_function.h:528:8: note: candidate function template not viable: requires at least argument 'solver', but no arguments were
provided
bool compute_implicit_function(SparseLinearAlgebraTraits_d solver, bool smoother_hole_filling = false)
^
Excerpt from the .cpp
PointList points;
std::ifstream stream("data/kitten.xyz");
if (!stream ||
!CGAL::read_xyz_points_and_normals(
stream,
std::back_inserter(points),
CGAL::make_normal_of_point_with_normal_pmap(PointList::value_type())))
{
std::cerr << "Error: cannot read file data/kitten.xyz" << std::endl;
return EXIT_FAILURE;
}
// Creates implicit function from the read points using the default solver.
// Note: this method requires an iterator over points
// + property maps to access each point's position and normal.
// The position property map can be omitted here as we use iterators over Point_3 elements.
Poisson_reconstruction_function function(points.begin(), points.end(),
CGAL::make_normal_of_point_with_normal_pmap(PointList::value_type()) );
// Computes the Poisson indicator function f()
// at each vertex of the triangulation.
if ( ! function.compute_implicit_function() )
return EXIT_FAILURE;
Thanks!
Hardik Kabaria
Hardik Kabaria
Ph.D. Candidate
Department of Mechanical Engineering
Stanford University
Ph.D. Candidate
Department of Mechanical Engineering
Stanford University
- [cgal-discuss] Example Compiling Issue, hardik kabaria, 11/18/2014
- Re: [cgal-discuss] <DKIM> Example Compiling Issue, Laurent Saboret, 11/19/2014
- Re: [cgal-discuss] <DKIM> Example Compiling Issue, hardik kabaria, 11/19/2014
- Re: [cgal-discuss] <DKIM> Example Compiling Issue, Laurent Saboret, 11/21/2014
- Re: [cgal-discuss] <DKIM> Example Compiling Issue, hardik kabaria, 11/30/2014
- Re: [cgal-discuss] <DKIM> Example Compiling Issue, Laurent Saboret, 11/21/2014
- Re: [cgal-discuss] <DKIM> Example Compiling Issue, hardik kabaria, 11/19/2014
- Re: [cgal-discuss] Example Compiling Issue, Sebastien Loriot (GeometryFactory), 11/20/2014
- Re: [cgal-discuss] <DKIM> Example Compiling Issue, Laurent Saboret, 11/19/2014
Archive powered by MHonArc 2.6.18.