34 #if defined(MongeJetFittingMeanCurvatureEstimator_RECURSES)
35 #error Recursive header files inclusion detected in MongeJetFittingMeanCurvatureEstimator.h
38 #define MongeJetFittingMeanCurvatureEstimator_RECURSES
40 #if !defined MongeJetFittingMeanCurvatureEstimator_h
42 #define MongeJetFittingMeanCurvatureEstimator_h
47 #include <DGtal/base/Common.h>
48 #include <DGtal/topology/SCellsFunctors.h>
51 #error You need to have activated CGAL (WITH_CGAL) to include this file.
55 #include <CGAL/Cartesian.h>
56 #include <CGAL/Monge_via_jet_fitting.h>
89 template <
typename TSurfel,
typename TEmbedder>
112 const double h,
unsigned int d = 4):
115 FATAL_ERROR_MSG(d>=2,
"Polynomial surface degree must be greater than 2");
125 const double aDistance)
127 BOOST_VERIFY(aDistance==aDistance);
146 double k1 = monge_form.principal_curvatures ( 0 );
147 double k2 = monge_form.principal_curvatures ( 1 );
185 #undef MongeJetFittingMeanCurvatureEstimator_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: Estimates Mean curvature using CGAL Jet Fitting and Monge Form.
MongeJetFittingMeanCurvatureEstimator(ConstAlias< SCellEmbedder > anEmbedder, const double h, unsigned int d=4)
void pushSurfel(const Surfel &aSurf, const double aDistance)
CGALMongeViaJet::Monge_form CGALMongeForm
const SCellEmbedder * myEmbedder
Alias of the geometrical embedder.
CGAL::Monge_via_jet_fitting< CGALKernel > CGALMongeViaJet
std::vector< CGALPoint > myPoints
Array of CGAL points.
unsigned int myD
Degree of the polynomial surface to fit.
CGALKernel::Point_3 CGALPoint
SCellEmbedder::RealPoint RealPoint
CGAL::Cartesian< double > CGALKernel
DGtal is the top-level namespace which contains all DGtal functions and types.
PointVector< 3, double > RealPoint