Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?
Chronological Thread
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?
- Date: Tue, 18 Jul 2017 15:14:47 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:GcmdFxa3mgPwd7+f2c+ccsf/LSx+4OfEezUN459isYplN5qZr8i7bnLW6fgltlLVR4KTs6sC0LuJ9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6/bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAk7m/XhMx+jKVYrhyvqRNwzIzbb52aOvdlYqPQf8kXSXZdUstfVyFMBJ63YYsVD+oGOOZVt5Xwp10TohukGwajHvjvwSJIiHDsxqI6yeUhGhzB0QM6GdIBrW7Uo8vvO6cJS+y1wrPHwi7Zb/NXwjr955bHchckof6SQbJwa8rQyUc1GAzZklWQrpblPjOP2usRtGib6vNtWOSygGAprAFxpyKgxsYqioTRiYIVy0zE9SVkwIkuP9G3VEl7YduiHZBNtC+aL5N7T8wjTm1ypSo21r0LtYS0cSQX0pgr2h/SZ+SIfoWJ+B7vSeWcLDliiH9qfL+znQu+/Eavx+D6S8K6ykxFrjBfndnJrn0N1wLc6syASvZl40us2yyD1wXU6uxLO0w0kLDUK58lwrIpkZoTrFjDEjXxmEXojK+abEMk9fa06+j/Y7XmoIGTN5NshwzxM6kigNGzDfg4PwQUUGWX5P6w2KDi8EHhRbVFlPw2kq3XsJDAIsQbo7a0DBVT0ok+8RawES2p0M8CkXkJNl1KYwiHj4nyNlHBPv/4CvK/jEqwkDdxx/HGMKfuDYnRLnjEirfgfaxx5FJbyAo21dxf/Y5bCqkdIPLvXU/8rMDXDhAjPAyw2uroFdR91pgCVmKSGa+ZK7jfsUSI5+IqO+mDfpUZuDf7K/g/5v7hl2U1mVEHffrh4ZxCY3+xGrFqIl6SfGH3qtYHC2YD+AQkH8Lwj1jXeDhffXu7ROoS7zshCcryBIHPXI2km/qP1S2hH7VZa2dDB0yWAHnhfJmDQeZKYyWXdJwy2gcYXKSsHtdynSqlsxX3nuJq
- Organization: GeometryFactory
Hello,
Have a look at
https://gist.github.com/afabri/17a675d3bbffaf351611921d8276d142
It compiles and runs on my machine (VC++).
On 18/07/2017 14:38, Oliver Arend wrote:
Hello,
CGAL::jet_estimate_normals<Concurrency_tag>(
points.begin(), points.end(),
CGAL::Identity_property_map<Point>(),
CGAL::make_normal_of_point_with_normal_pmap(PointList::value_type()),
nb_neighbors);
jet (missing parameters) or pca? Do I still have to do normal orientation?
jet gives better normals than pca
you still have to orient the normals. See in the gist.
Note that I pass the iterator returned by the orient function
to poisson.
Poisson_reconstruction_function function(
points.begin(), points.end(),
CGAL::make_normal_of_point_with_normal_pmap(PointList::value_type()));
if ( ! function.compute_implicit_function() )
return EXIT_FAILURE;
which worked fine before (i.e. in another program replicating the Poisson
surface reconstruction, without point normal estimation), now gives me a
compiler error:
no matching function for call to
'CGAL::Poisson_reconstruction_function<CGAL::Epick>::compute_implicit_functi
on()'
if ( ! function.compute_implicit_function() )
It asks for parameters (SparseLinearAlgebraTraits_d solver, bool
smoother_hole_filling = false)
Poisson needs Eigen. Have a look at examples/Poisson_surface_reconstruction/CMakeList.txt
# Find Eigen3 (requires 3.1.0 or greater)
find_package(Eigen3 3.1.0)
if (EIGEN3_FOUND)
include( ${EIGEN3_USE_FILE} )
endif()
Best,
Andreas
Thanks in advance
Oliver
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
- [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?, Oliver Arend, 07/14/2017
- Re: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?, Andreas Fabri, 07/16/2017
- RE: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?, Oliver Arend, 07/18/2017
- Re: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?, Andreas Fabri, 07/18/2017
- RE: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?, Oliver Arend, 07/20/2017
- Re: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?, Andreas Fabri, 07/18/2017
- RE: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?, Oliver Arend, 07/18/2017
- <Possible follow-up(s)>
- RE: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?, Brian Rupasinghe, 07/20/2017
- Re: [cgal-discuss] Determining normals and Poisson surface reconstruction or: convert <Point, Vector> pair to Point_with_normal_3?, Andreas Fabri, 07/16/2017
Archive powered by MHonArc 2.6.18.