34 #if defined(MongeJetFittingMeanCurvatureEstimator_RECURSES) 35 #error Recursive header files inclusion detected in MongeJetFittingMeanCurvatureEstimator.h 36 #else // defined(MongeJetFittingMeanCurvatureEstimator_RECURSES) 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>
97 typedef typename SCellEmbedder::RealPoint
RealPoint;
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);
130 CGALPoint pp(p[0]*
myH,p[1]*myH,p[2]*myH);
141 CGALMongeForm monge_form;
142 CGALMongeViaJet monge_fit;
146 double k1 = monge_form.principal_curvatures ( 0 );
147 double k2 = monge_form.principal_curvatures ( 1 );
183 #endif // !defined MongeJetFittingMeanCurvatureEstimator_h 185 #undef MongeJetFittingMeanCurvatureEstimator_RECURSES 186 #endif // else defined(MongeJetFittingMeanCurvatureEstimator_RECURSES) std::vector< CGALPoint > myPoints
Array of CGAL points.
void pushSurfel(const Surfel &aSurf, const double aDistance)
SCellEmbedder::RealPoint RealPoint
CGALMongeViaJet::Monge_form CGALMongeForm
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
unsigned int myD
Degree of the polynomial surface to fit.
CGAL::Monge_via_jet_fitting< CGALKernel > CGALMongeViaJet
CGAL::Cartesian< double > CGALKernel
const SCellEmbedder * myEmbedder
Alias of the geometrical embedder.
Aim: Estimates Mean curvature using CGAL Jet Fitting and Monge Form.
CGALKernel::Point_3 CGALPoint
DGtal is the top-level namespace which contains all DGtal functions and types.
MongeJetFittingMeanCurvatureEstimator(ConstAlias< SCellEmbedder > anEmbedder, const double h, unsigned int d=4)