MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.PointAccumulator Class Reference

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)
 

Detailed Description

Generated from:  MR::PointAccumulator

Class to accumulate points and make best line / plane approximation

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.PointAccumulator.__init__ ( self)
Implicit default constructor.

◆ __init__() [2/2]

None meshlib.mrmeshpy.PointAccumulator.__init__ ( self,
PointAccumulator arg0 )
Implicit copy constructor.

Member Function Documentation

◆ addPoint() [1/4]

None meshlib.mrmeshpy.PointAccumulator.addPoint ( self,
Vector3d pt )

◆ addPoint() [2/4]

None meshlib.mrmeshpy.PointAccumulator.addPoint ( self,
Vector3d pt,
float weight )

◆ addPoint() [3/4]

None meshlib.mrmeshpy.PointAccumulator.addPoint ( self,
Vector3f pt )

◆ addPoint() [4/4]

None meshlib.mrmeshpy.PointAccumulator.addPoint ( self,
Vector3f pt,
float weight )

◆ get4BasicXfs()

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

◆ get4BasicXfs3f()

std_array_AffineXf_Vector3_float_4 meshlib.mrmeshpy.PointAccumulator.get4BasicXfs3f ( self)

◆ getBasicXf()

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

◆ getBasicXf3f()

AffineXf3f meshlib.mrmeshpy.PointAccumulator.getBasicXf3f ( self)

◆ getBestLine()

Line3d meshlib.mrmeshpy.PointAccumulator.getBestLine ( self)
computes the best approximating line from the accumulated points

◆ getBestLinef()

Line3f meshlib.mrmeshpy.PointAccumulator.getBestLinef ( self)

◆ getBestPlane()

Plane3d meshlib.mrmeshpy.PointAccumulator.getBestPlane ( self)
computes the best approximating plane from the accumulated points

◆ getBestPlanef()

Plane3f meshlib.mrmeshpy.PointAccumulator.getBestPlanef ( self)

◆ getCenteredCovarianceEigen() [1/2]

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

◆ getCenteredCovarianceEigen() [2/2]

bool meshlib.mrmeshpy.PointAccumulator.getCenteredCovarianceEigen ( self,
Vector3f centroid,
Matrix3f eigenvectors,
Vector3f eigenvalues )

◆ valid()

bool meshlib.mrmeshpy.PointAccumulator.valid ( self)

The documentation for this class was generated from the following file: