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

Classes

class  ConstStabilizer
class  Stabilizer

Public Member Functions

None __init__ (self)
None __init__ (self, int numObjs)
None add (self, int objA, ConstVector3d pA, int objB, ConstVector3d pB, float w=1)
None add (self, int objA, ConstVector3f pA, int objB, ConstVector3f pB, float w=1)
None add (self, int objA, ConstVector3d pA, int objB, ConstVector3d pB, ConstVector3d n, float w=1)
None add (self, int objA, ConstVector3f pA, int objB, ConstVector3f pB, ConstVector3f n, float w=1)
None add (self, ConstMultiwayAligningTransform r)
None reset (self, int numObjs)
Public Member Functions inherited from mrmeshpy.ConstMultiwayAligningTransform
 __init__ (self, *args, **kwargs)
std_vector_RigidXf3_double solve (self, MultiwayAligningTransform.ConstStabilizer stab)
std_vector_RigidXf3_double solve (self)

Detailed Description

Generated from:  MR::MultiwayAligningTransform

This class can be used to solve the problem of multiple 3D objects alignment,
by first collecting weighted links between pairs of points from different objects,
and then solving for transformations minimizing weighted average of link penalties

Constructor & Destructor Documentation

◆ __init__() [1/2]

None mrmeshpy.MultiwayAligningTransform.__init__ ( self)

◆ __init__() [2/2]

None mrmeshpy.MultiwayAligningTransform.__init__ ( self,
int numObjs )
initializes internal data to start registering given number of objects

Member Function Documentation

◆ add() [1/5]

None mrmeshpy.MultiwayAligningTransform.add ( self,
ConstMultiwayAligningTransform r )
appends links accumulated in (r) into this

◆ add() [2/5]

None mrmeshpy.MultiwayAligningTransform.add ( self,
int objA,
ConstVector3d pA,
int objB,
ConstVector3d pB,
ConstVector3d n,
float w = 1 )
appends a 1D link into consideration: one point (pA) from (objA), and the other point (pB) from (objB)
with link penalty equal to weight (w) times squared distance between their projections on given direction (n);
for a point on last fixed object, it is equivalent to point-to-plane link with the plane through that fixed point with normal (n)

◆ add() [3/5]

None mrmeshpy.MultiwayAligningTransform.add ( self,
int objA,
ConstVector3d pA,
int objB,
ConstVector3d pB,
float w = 1 )
appends a 3D link into consideration: one point (pA) from (objA), and the other point (pB) from (objB)
with link penalty equal to weight (w) times squared distance between two points

◆ add() [4/5]

None mrmeshpy.MultiwayAligningTransform.add ( self,
int objA,
ConstVector3f pA,
int objB,
ConstVector3f pB,
ConstVector3f n,
float w = 1 )
appends a 1D link into consideration: one point (pA) from (objA), and the other point (pB) from (objB)
with link penalty equal to weight (w) times squared distance between their projections on given direction (n);
for a point on last fixed object, it is equivalent to point-to-plane link with the plane through that fixed point with normal (n)

◆ add() [5/5]

None mrmeshpy.MultiwayAligningTransform.add ( self,
int objA,
ConstVector3f pA,
int objB,
ConstVector3f pB,
float w = 1 )
appends a 3D link into consideration: one point (pA) from (objA), and the other point (pB) from (objB)
with link penalty equal to weight (w) times squared distance between two points

◆ reset()

None mrmeshpy.MultiwayAligningTransform.reset ( self,
int numObjs )
reinitializes internal data to start registering given number of objects

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