27template < 
class DataPo
int, 
class _NFilter, 
typename T >
 
   30PONCA_FITTING_DECLARE_DEFAULT_TYPES
 
   31PONCA_FITTING_DECLARE_MATRIX_TYPE
 
   34    enum { Check = Base::PROVIDES_MEAN_POSITION && Base::PROVIDES_MEAN_NORMAL && Base::PROVIDES_PLANE };
 
   39    PONCA_FITTING_APIDOC_FINALIZE
 
   43        if(Base::finalize() == 
STABLE)
 
   46            Base::setPlane(Base::m_sumN / Base::getWeightSum(), Base::barycenterLocal());
 
   48        return Base::m_eCurrentState;
 
 
   50    PONCA_FITTING_IS_SIGNED(
true)
 
 
   55    template < 
class DataPo
int, 
class _NFilter, 
typename T>
 
Compute the barycenter of the input points + their normals.
Plane fitting procedure computing the mean position and orientation from oriented points.
FIT_RESULT finalize()
Finalize the procedure.
MeanPlaneFitImpl< DataPoint, _NFilter, T > & meanPlaneFit()
Explicit conversion to MeanPlaneFitImpl , to access methods potentially hidden by heritage.
Compute the barycenter of the input points.
Implicit hyperplane defined by an homogeneous vector .
This Source Code Form is subject to the terms of the Mozilla Public License, v.
FIT_RESULT
Enum corresponding to the state of a fitting method (and what the finalize function returns)
@ CONFLICT_ERROR_FOUND
Multiple classes of the fitting procedure initialize the primitive.
@ STABLE
The fitting is stable and ready to use.