34#if defined(MongeJetFittingNormalVectorEstimator_RECURSES)
35#error Recursive header files inclusion detected in MongeJetFittingNormalVectorEstimator.h
38#define MongeJetFittingNormalVectorEstimator_RECURSES
40#if !defined MongeJetFittingNormalVectorEstimator_h
42#define MongeJetFittingNormalVectorEstimator_h
47#include <DGtal/base/Common.h>
48#include <DGtal/topology/SCellsFunctors.h>
51#include <CGAL/Cartesian.h>
52#include <CGAL/Monge_via_jet_fitting.h>
80 template <
typename TSurfel,
typename TEmbedder>
87 typedef typename SCellEmbedder::RealPoint
RealPoint;
104 const double h,
unsigned int d = 4):
107 FATAL_ERROR_MSG(d>=2,
"Polynomial surface degree must be greater than 2");
117 const double aDistance)
119 BOOST_VERIFY(aDistance == aDistance);
138 CGALVector v= monge_form.normal_direction ( );
177#undef MongeJetFittingNormalVectorEstimator_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Estimates normal vector using CGAL Jet Fitting and Monge Form.
void pushSurfel(const Surfel &aSurf, const double aDistance)
MongeJetFittingNormalVectorEstimator(ConstAlias< SCellEmbedder > anEmbedder, const double h, unsigned int d=4)
const SCellEmbedder * myEmbedder
Alias of the geometrical embedder.
SCellEmbedder::RealPoint RealPoint
unsigned int myD
Degree of the polynomial surface to fit.
CGAL::Monge_via_jet_fitting< CGALKernel > CGALMongeViaJet
CGAL::Cartesian< double > CGALKernel
CGALMongeViaJet::Monge_form CGALMongeForm
std::vector< CGALPoint > myPoints
Array of CGAL points.
CGALKernel::Vector_3 CGALVector
CGALKernel::Point_3 CGALPoint
DGtal is the top-level namespace which contains all DGtal functions and types.