MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.PointToPointAligningTransform Class Reference
Inheritance diagram for meshlib.PointToPointAligningTransform:

Public Member Functions

 PointToPointAligningTransform (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 PointToPointAligningTransform ()
 PointToPointAligningTransform (meshlib.PointToPointAligningTransform _other)
meshlib.PointToPointAligningTransform assignFromAnother (meshlib.PointToPointAligningTransform _other)
void add (meshlib.Vector3d p1, meshlib.Vector3d p2, java.lang.Double w)
void add (meshlib.Vector3f p1, meshlib.Vector3f p2, java.lang.Float w)
void add (meshlib.PointToPointAligningTransform other)
void clear ()
meshlib.Vector3d centroid1 ()
meshlib.Vector3d centroid2 ()
double totalWeight ()
meshlib.AffineXf3d findBestRigidXf ()
meshlib.AffineXf3d findBestRigidScaleXf ()
meshlib.AffineXf3d findBestRigidXfFixedRotationAxis (meshlib.Vector3d axis)
meshlib.AffineXf3d findBestRigidXfOrthogonalRotationAxis (meshlib.Vector3d ort)
meshlib.Vector3d findBestTranslation ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

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. Generated from class MR::PointToPointAligningTransform.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ PointToPointAligningTransform() [1/3]

meshlib.PointToPointAligningTransform.PointToPointAligningTransform ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ PointToPointAligningTransform() [2/3]

meshlib.PointToPointAligningTransform.PointToPointAligningTransform ( )

Constructs an empty (default-constructed) instance.

Calls MR_PointToPointAligningTransform_DefaultConstruct().

◆ PointToPointAligningTransform() [3/3]

meshlib.PointToPointAligningTransform.PointToPointAligningTransform ( meshlib.PointToPointAligningTransform _other)

Generated from constructor MR::PointToPointAligningTransform::PointToPointAligningTransform. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_PointToPointAligningTransform_ConstructFromAnother().

Member Function Documentation

◆ add() [1/3]

void meshlib.PointToPointAligningTransform.add ( meshlib.PointToPointAligningTransform other)

Add another two sets of points. Generated from method MR::PointToPointAligningTransform::add.

Calls MR_PointToPointAligningTransform_add_1().

◆ add() [2/3]

void meshlib.PointToPointAligningTransform.add ( meshlib.Vector3d p1,
meshlib.Vector3d p2,
java.lang.Double w )

Add one pair of points in the set Generated from method MR::PointToPointAligningTransform::add.

Calls MR_PointToPointAligningTransform_add_3_MR_Vector3d().

◆ add() [3/3]

void meshlib.PointToPointAligningTransform.add ( meshlib.Vector3f p1,
meshlib.Vector3f p2,
java.lang.Float w )

Add one pair of points in the set Generated from method MR::PointToPointAligningTransform::add.

Calls MR_PointToPointAligningTransform_add_3_MR_Vector3f().

◆ assignFromAnother()

meshlib.PointToPointAligningTransform meshlib.PointToPointAligningTransform.assignFromAnother ( meshlib.PointToPointAligningTransform _other)

Generated from method MR::PointToPointAligningTransform::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_PointToPointAligningTransform_AssignFromAnother().

◆ centroid1()

meshlib.Vector3d meshlib.PointToPointAligningTransform.centroid1 ( )

returns weighted centroid of points p1 accumulated so far Generated from method MR::PointToPointAligningTransform::centroid1.

Calls MR_PointToPointAligningTransform_centroid1().

◆ centroid2()

meshlib.Vector3d meshlib.PointToPointAligningTransform.centroid2 ( )

returns weighted centroid of points p2 accumulated so far Generated from method MR::PointToPointAligningTransform::centroid2.

Calls MR_PointToPointAligningTransform_centroid2().

◆ clear()

void meshlib.PointToPointAligningTransform.clear ( )

Clear sets. Generated from method MR::PointToPointAligningTransform::clear.

Calls MR_PointToPointAligningTransform_clear().

◆ findBestRigidScaleXf()

meshlib.AffineXf3d meshlib.PointToPointAligningTransform.findBestRigidScaleXf ( )

this version searches for best rigid body transformation with uniform scaling Generated from method MR::PointToPointAligningTransform::findBestRigidScaleXf.

Calls MR_PointToPointAligningTransform_findBestRigidScaleXf().

◆ findBestRigidXf()

meshlib.AffineXf3d meshlib.PointToPointAligningTransform.findBestRigidXf ( )

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 Generated from method MR::PointToPointAligningTransform::findBestRigidXf.

Calls MR_PointToPointAligningTransform_findBestRigidXf().

◆ findBestRigidXfFixedRotationAxis()

meshlib.AffineXf3d meshlib.PointToPointAligningTransform.findBestRigidXfFixedRotationAxis ( meshlib.Vector3d axis)

this version searches for best transformation where rotation is allowed only around given axis and with arbitrary translation Generated from method MR::PointToPointAligningTransform::findBestRigidXfFixedRotationAxis.

Calls MR_PointToPointAligningTransform_findBestRigidXfFixedRotationAxis().

◆ findBestRigidXfOrthogonalRotationAxis()

meshlib.AffineXf3d meshlib.PointToPointAligningTransform.findBestRigidXfOrthogonalRotationAxis ( meshlib.Vector3d ort)

this version searches for best transformation where rotation is allowed only around axes orthogonal to given one Generated from method MR::PointToPointAligningTransform::findBestRigidXfOrthogonalRotationAxis.

Calls MR_PointToPointAligningTransform_findBestRigidXfOrthogonalRotationAxis().

◆ findBestTranslation()

meshlib.Vector3d meshlib.PointToPointAligningTransform.findBestTranslation ( )

Simplified solution for translational part only Generated from method MR::PointToPointAligningTransform::findBestTranslation.

Calls MR_PointToPointAligningTransform_findBestTranslation().

◆ totalWeight()

double meshlib.PointToPointAligningTransform.totalWeight ( )

returns summed weight of points accumulated so far Generated from method MR::PointToPointAligningTransform::totalWeight.

Calls MR_PointToPointAligningTransform_totalWeight().


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