Public Member Functions | |
None | __init__ (self) |
None | __init__ (self, PointAccumulator arg0) |
None | addPoint (self, Vector3d pt) |
None | addPoint (self, Vector3d pt, float weight) |
None | addPoint (self, Vector3f pt) |
None | addPoint (self, Vector3f pt, float weight) |
std_array_AffineXf_Vector3_double_4 | get4BasicXfs (self) |
std_array_AffineXf_Vector3_float_4 | get4BasicXfs3f (self) |
AffineXf3d | getBasicXf (self) |
AffineXf3f | getBasicXf3f (self) |
Line3d | getBestLine (self) |
Line3f | getBestLinef (self) |
Plane3d | getBestPlane (self) |
Plane3f | getBestPlanef (self) |
bool | getCenteredCovarianceEigen (self, Vector3d centroid, Matrix3d eigenvectors, Vector3d eigenvalues) |
bool | getCenteredCovarianceEigen (self, Vector3f centroid, Matrix3f eigenvectors, Vector3f eigenvalues) |
bool | valid (self) |
Generated from: MR::PointAccumulator Class to accumulate points and make best line / plane approximation
None meshlib.mrmeshpy.PointAccumulator.__init__ | ( | self | ) |
Implicit default constructor.
None meshlib.mrmeshpy.PointAccumulator.__init__ | ( | self, | |
PointAccumulator | arg0 ) |
Implicit copy constructor.
None meshlib.mrmeshpy.PointAccumulator.addPoint | ( | self, | |
Vector3d | pt ) |
None meshlib.mrmeshpy.PointAccumulator.addPoint | ( | self, | |
Vector3d | pt, | ||
float | weight ) |
None meshlib.mrmeshpy.PointAccumulator.addPoint | ( | self, | |
Vector3f | pt ) |
None meshlib.mrmeshpy.PointAccumulator.addPoint | ( | self, | |
Vector3f | pt, | ||
float | weight ) |
std_array_AffineXf_Vector3_double_4 meshlib.mrmeshpy.PointAccumulator.get4BasicXfs | ( | self | ) |
returns 4 transformations, each maps (0,0,0) into point centroid, and maps vectors (1,0,0), (0,1,0), (0,0,1) into +/- first, +/- second, +/- third eigenvectors (forming positive reference frame) corresponding to ascending eigenvalues
std_array_AffineXf_Vector3_float_4 meshlib.mrmeshpy.PointAccumulator.get4BasicXfs3f | ( | self | ) |
AffineXf3d meshlib.mrmeshpy.PointAccumulator.getBasicXf | ( | self | ) |
returns the transformation that maps (0,0,0) into point centroid, and maps vectors (1,0,0), (0,1,0), (0,0,1) into first, second, third eigenvectors corresponding to ascending eigenvalues
AffineXf3f meshlib.mrmeshpy.PointAccumulator.getBasicXf3f | ( | self | ) |
Line3d meshlib.mrmeshpy.PointAccumulator.getBestLine | ( | self | ) |
computes the best approximating line from the accumulated points
Line3f meshlib.mrmeshpy.PointAccumulator.getBestLinef | ( | self | ) |
Plane3d meshlib.mrmeshpy.PointAccumulator.getBestPlane | ( | self | ) |
computes the best approximating plane from the accumulated points
Plane3f meshlib.mrmeshpy.PointAccumulator.getBestPlanef | ( | self | ) |
bool meshlib.mrmeshpy.PointAccumulator.getCenteredCovarianceEigen | ( | self, | |
Vector3d | centroid, | ||
Matrix3d | eigenvectors, | ||
Vector3d | eigenvalues ) |
computes centroid and eigenvectors/eigenvalues of the covariance matrix of the accumulated points
bool meshlib.mrmeshpy.PointAccumulator.getCenteredCovarianceEigen | ( | self, | |
Vector3f | centroid, | ||
Matrix3f | eigenvectors, | ||
Vector3f | eigenvalues ) |
bool meshlib.mrmeshpy.PointAccumulator.valid | ( | self | ) |