Subject: CGAL users discussion list
List archive
- From: Laurent Saboret <>
- To:
- Subject: Re: [cgal-discuss] <DKIM> Example Compiling Issue
- Date: Wed, 19 Nov 2014 14:00:01 +0100
Dear Hardik, The code below seems a cut and paste of CGAL's poisson_reconstruction_example.cpp example. Does poisson_reconstruction_example.cpp compile properly on your machine? Best regards, Laurent Saboret Le 18/11/2014 20:18, hardik kabaria a
écrit :
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
|
- [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.