MeshLib C++ Docs
Loading...
Searching...
No Matches
MRBestFitQuadric.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshEigen.h"
3#include "MRAffineXf3.h"
4
5namespace MR
6{
9
10
15{
16public:
17 MRMESH_API QuadricApprox();
18
20 MRMESH_API void addPoint( const Vector3d& point, double weight = 1.0 );
21
24 MRMESH_API Eigen::Matrix<double, 6, 1> calcBestCoefficients() const;
25
28 MRMESH_API static Vector3d findZeroProjection( const Eigen::Matrix<double, 6, 1>& coefs );
29private:
30 Eigen::Matrix<double, 6, 6> accumA_;
31 Eigen::Matrix<double, 6, 1> accumB_;
32};
33
34}
Definition MRBestFitQuadric.h:15
MRMESH_API Eigen::Matrix< double, 6, 1 > calcBestCoefficients() const
MRMESH_API void addPoint(const Vector3d &point, double weight=1.0)
Adds point to accumulation with weight.
static MRMESH_API Vector3d findZeroProjection(const Eigen::Matrix< double, 6, 1 > &coefs)
MRMESH_API QuadricApprox()
only for bindings generation
Definition MRCameraOrientationPlugin.h:8