Class to accumulate planes to find then their crossing point.
More...
#include <MRBestFit.h>
Class to accumulate planes to find then their crossing point.
◆ addPlane() [1/2]
MRMESH_API void MR::PlaneAccumulator::addPlane |
( |
const Plane3d & | pl | ) |
|
◆ addPlane() [2/2]
void MR::PlaneAccumulator::addPlane |
( |
const Plane3f & | pl | ) |
|
|
inline |
◆ findBestCrossPoint() [1/2]
MRMESH_API Vector3d MR::PlaneAccumulator::findBestCrossPoint |
( |
const Vector3d & | p0, |
|
|
double | tol, |
|
|
int * | rank = nullptr, |
|
|
Vector3d * | space = nullptr ) const |
computes the point that minimizes the sum of squared distances to accumulated planes; if such point is not unique then returns the one closest to p0
- Parameters
-
tol | relative epsilon-tolerance for too small number detection |
rank | optional output for solution matrix rank according to given tolerance |
space | rank=1: unit normal to solution plane, rank=2: unit direction of solution line, rank=3: zero vector |
◆ findBestCrossPoint() [2/2]
MRMESH_API Vector3f MR::PlaneAccumulator::findBestCrossPoint |
( |
const Vector3f & | p0, |
|
|
float | tol, |
|
|
int * | rank = nullptr, |
|
|
Vector3f * | space = nullptr ) const |
The documentation for this class was generated from the following file: