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

Public Member Functions

 __init__ (self, *args, **kwargs)
RigidScaleXf3d calculateAmendment (self)
RigidScaleXf3d calculateAmendmentWithScale (self)
RigidScaleXf3d calculateFixedAxisAmendment (self, ConstVector3d axis)
RigidScaleXf3d calculateOrthogonalAxisAmendment (self, ConstVector3d ort)
AffineXf3d findBestRigidScaleXf (self)
AffineXf3d findBestRigidXf (self)
AffineXf3d findBestRigidXfFixedRotationAxis (self, ConstVector3d axis)
AffineXf3d findBestRigidXfOrthogonalRotationAxis (self, ConstVector3d ort)
Vector3d findBestTranslation (self, ConstVector3d rotAngles=..., float scale=1)
float getStabilizer (self)

Detailed Description

Generated from:  MR::PointToPlaneAligningTransform

This class and its main method can be used to solve the problem of 3D shape alignment.
This algorithm uses a point-to-plane error metric in which the object of minimization is the sum of
the squared distance between a point and the tangent plane at its correspondence point.
To use this technique it's need to have small rotation angles. So there is an approximate solution.
The result of this algorithm is the transformation of first points (p1) which aligns it to the second ones (p2).

Constructor & Destructor Documentation

◆ __init__()

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ calculateAmendment()

RigidScaleXf3d mrmeshpy.ConstPointToPlaneAligningTransform.calculateAmendment ( self)
Compute transformation relative to given approximation and return it as angles and shift (scale = 1)

◆ calculateAmendmentWithScale()

RigidScaleXf3d mrmeshpy.ConstPointToPlaneAligningTransform.calculateAmendmentWithScale ( self)
Compute transformation relative to given approximation and return it as scale, angles and shift

◆ calculateFixedAxisAmendment()

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

◆ calculateOrthogonalAxisAmendment()

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

◆ findBestRigidScaleXf()

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

◆ findBestRigidXf()

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

◆ findBestRigidXfFixedRotationAxis()

AffineXf3d mrmeshpy.ConstPointToPlaneAligningTransform.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.ConstPointToPlaneAligningTransform.findBestRigidXfOrthogonalRotationAxis ( self,
ConstVector3d ort )
this version searches for best transformation where rotation is allowed only around axes orthogonal to given one

◆ findBestTranslation()

Vector3d mrmeshpy.ConstPointToPlaneAligningTransform.findBestTranslation ( self,
ConstVector3d rotAngles = ...,
float scale = 1 )
this version searches for best translational part of affine transformation with given linear part

◆ getStabilizer()

float mrmeshpy.ConstPointToPlaneAligningTransform.getStabilizer ( self)

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