MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getBestLine

Method getBestLine

source/MRMesh/MRBestFit.cpp:110–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110Line3d PointAccumulator::getBestLine() const
111{
112 Vector3d centroid;
113 Matrix3d eigenvectors;
114 Vector3d eigenvalues;
115 if ( !getCenteredCovarianceEigen( centroid, eigenvectors, eigenvalues ) )
116 return {};
117
118 return { centroid, eigenvectors.z };
119}
120
121void accumulatePoints( PointAccumulator& accum, const std::vector<Vector3f>& points, const AffineXf3f* xf )
122{

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64