Subject: CGAL users discussion list
List archive
- From: hardik kabaria <>
- To: Laurent Saboret <>
- Cc:
- Subject: Re: [cgal-discuss] <DKIM> Example Compiling Issue
- Date: Wed, 19 Nov 2014 09:55:29 -0800
Hi Laurent,
Yes that's true. It is same as
poisson_reconstruction_example.cpp example.
I am able to compile the example in the directory
examples/Surface_reconstruction_points_3/ however
I am interested in using these function in my own code and
when I try to compile there it gives the following error.
Any suggestions towards diagnosing the issue ?
Thanks,
Hardik Kabaria
On Wed, Nov 19, 2014 at 5:00 AM, Laurent Saboret <> wrote:
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 reconstructionpart. It'd be great if someone can point out what could be the issue.
I am using Mac OS 10.8 and cgal 4.4dn525jo5:poisson_rec hardik$ port list cgalWarning: 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 callto '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 providedbool 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 wereprovidedbool 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
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.