MeshLib Documentation
Loading...
Searching...
No Matches
MRBestFit.h File Reference
#include "MRSymMatrix3.h"
#include "MRPlane3.h"
#include "MRLine3.h"
#include "MRPolyline.h"
#include "MRAffineXf3.h"
#include <array>

Go to the source code of this file.

Classes

class  MR::PointAccumulator
 Class to accumulate points and make best line / plane approximation. More...
 
class  MR::PlaneAccumulator
 Class to accumulate planes to find then their crossing point. More...
 

Namespaces

namespace  MR
 

Functions

MRMESH_API void MR::accumulatePoints (PointAccumulator &accum, const std::vector< Vector3f > &points, const AffineXf3f *xf=nullptr)
 Adds in existing PointAccumulator all given points.
 
MRMESH_API void MR::accumulateWeighedPoints (PointAccumulator &accum, const std::vector< Vector3f > &points, const std::vector< float > &weights, const AffineXf3f *xf=nullptr)
 Adds in existing PointAccumulator all given weighed points.
 
MRMESH_API void MR::accumulateFaceCenters (PointAccumulator &accum, const MeshPart &mp, const AffineXf3f *xf=nullptr)
 Adds in existing PointAccumulator all mesh face centers with the weight equal to face area.
 
MRMESH_API void MR::accumulateLineCenters (PointAccumulator &accum, const Polyline3 &pl, const AffineXf3f *xf=nullptr)
 Adds in existing PointAccumulator all line centers with the weight equal to the length line.
 
MRMESH_API void MR::accumulatePoints (PointAccumulator &accum, const PointCloud &pc, const AffineXf3f *xf=nullptr)
 Adds in existing PointAccumulator all points from the cloud with weight 1.