MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstPointToPointAligningTransform Class Reference
Inheritance diagram for mrmeshpy.ConstPointToPointAligningTransform:

Public Member Functions

 __init__ (self, *args, **kwargs)
Vector3d centroid1 (self)
Vector3d centroid2 (self)
AffineXf3d findBestRigidScaleXf (self)
AffineXf3d findBestRigidXf (self)
AffineXf3d findBestRigidXfFixedRotationAxis (self, ConstVector3d axis)
AffineXf3d findBestRigidXfOrthogonalRotationAxis (self, ConstVector3d ort)
Vector3d findBestTranslation (self)
float totalWeight (self)

Detailed Description

Generated from:  MR::PointToPointAligningTransform

This class and its main method can be used to solve the problem well-known as the absolute orientation problem.
It means computing the transformation that aligns two sets of points for which correspondence is known.

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstPointToPointAligningTransform.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstPointToPointAligningTransform) -> None

2. __init__(self: meshlib.mrmeshpy.ConstPointToPointAligningTransform, arg0: meshlib.mrmeshpy.ConstPointToPointAligningTransform) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstPointToPointAligningTransform, : meshlib.mrmeshpy.ConstPointToPointAligningTransform) -> None

Member Function Documentation

◆ centroid1()

Vector3d mrmeshpy.ConstPointToPointAligningTransform.centroid1 ( self)
returns weighted centroid of points p1 accumulated so far

◆ centroid2()

Vector3d mrmeshpy.ConstPointToPointAligningTransform.centroid2 ( self)
returns weighted centroid of points p2 accumulated so far

◆ findBestRigidScaleXf()

AffineXf3d mrmeshpy.ConstPointToPointAligningTransform.findBestRigidScaleXf ( self)
this version searches for best rigid body transformation with uniform scaling

◆ findBestRigidXf()

AffineXf3d mrmeshpy.ConstPointToPointAligningTransform.findBestRigidXf ( self)
Compute transformation as the solution to a least squares formulation of the problem:
xf( p1_i ) = p2_i
this version searches for best rigid body transformation

◆ findBestRigidXfFixedRotationAxis()

AffineXf3d mrmeshpy.ConstPointToPointAligningTransform.findBestRigidXfFixedRotationAxis ( self,
ConstVector3d axis )
this version searches for best transformation where rotation is allowed only around given axis and with arbitrary translation

◆ findBestRigidXfOrthogonalRotationAxis()

AffineXf3d mrmeshpy.ConstPointToPointAligningTransform.findBestRigidXfOrthogonalRotationAxis ( self,
ConstVector3d ort )
this version searches for best transformation where rotation is allowed only around axes orthogonal to given one

◆ findBestTranslation()

Vector3d mrmeshpy.ConstPointToPointAligningTransform.findBestTranslation ( self)
Simplified solution for translational part only

◆ totalWeight()

float mrmeshpy.ConstPointToPointAligningTransform.totalWeight ( self)
returns summed weight of points accumulated so far

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