Ponca  aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
Loading...
Searching...
No Matches
curvature.hpp
1
2namespace Ponca {
3 template<class DataPoint, class _WFunctor, int DiffType, typename T>
4 void
6 Base::init(_evalPos);
7 m_kmin = 0;
8 m_kmax = 0;
9 m_vmin = VectorType::Zero();
10 m_vmax = VectorType::Zero();
11 m_isValid = false;
12 }
13
14
15 template<class DataPoint, class _WFunctor, int DiffType, typename T>
16 void
18 Scalar kmin, Scalar kmax, const VectorType &vmin, const VectorType &vmax) {
19 if(kmin <= kmax) {
20 m_kmin = kmin;
21 m_kmax = kmax;
22 m_vmin = vmin;
23 m_vmax = vmax;
24 } else {
25 m_kmin = kmax;
26 m_kmax = kmin;
27 m_vmin = vmax;
28 m_vmax = vmin;
29 }
30 m_isValid = true;
31 }
32}
typename DataPoint::Scalar Scalar
Alias to scalar type.
Definition: curvature.h:24
void init(const VectorType &_evalPos)
Set the evaluation position and reset the internal states.
Definition: curvature.hpp:5
void setCurvatureValues(Scalar kmin, Scalar kmax, const VectorType &vmin, const VectorType &vmax)
Set curvature values. To be called in finalize() by child classes.
Definition: curvature.hpp:17
typename Base::VectorType VectorType
Alias to vector type.
Definition: curvature.h:24
This Source Code Form is subject to the terms of the Mozilla Public License, v.