MeshLib C# Docs
Loading...
Searching...
No Matches
MR.PointToPlaneAligningTransform Class Reference

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). Generated from class MR.PointToPlaneAligningTransform. This is the non-const half of the class. More...

+ Inheritance diagram for MR.PointToPlaneAligningTransform:

Public Member Functions

unsafe PointToPlaneAligningTransform ()
 Constructs an empty (default-constructed) instance.
 
unsafe PointToPlaneAligningTransform (MR.Const_PointToPlaneAligningTransform _other)
 Generated from constructor MR.PointToPlaneAligningTransform.PointToPlaneAligningTransform.
 
 PointToPlaneAligningTransform (PointToPlaneAligningTransform _other)
 Generated from constructor MR.PointToPlaneAligningTransform.PointToPlaneAligningTransform.
 
unsafe MR.PointToPlaneAligningTransform assign (MR.Const_PointToPlaneAligningTransform _other)
 Generated from method MR.PointToPlaneAligningTransform.operator=.
 
unsafe void add (in MR.Vector3d p1, in MR.Vector3d p2, in MR.Vector3d normal2, double? w=null)
 Add a pair of corresponding points and the normal of the tangent plane at the second point Generated from method MR.PointToPlaneAligningTransform.add. Parameter w defaults to 1.
 
unsafe void add (in MR.Vector3f p1, in MR.Vector3f p2, in MR.Vector3f normal2, float? w=null)
 Add a pair of corresponding points and the normal of the tangent plane at the second point Generated from method MR.PointToPlaneAligningTransform.add. Parameter w defaults to 1.
 
unsafe void prepare ()
 this method must be called after add() and before constant find...()/calculate...() to make the matrix symmetric Generated from method MR.PointToPlaneAligningTransform.prepare.
 
unsafe void clear ()
 Clear points and normals data Generated from method MR.PointToPlaneAligningTransform.clear.
 

Detailed Description

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). Generated from class MR.PointToPlaneAligningTransform. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ PointToPlaneAligningTransform() [1/3]

unsafe MR.PointToPlaneAligningTransform.PointToPlaneAligningTransform ( )
inline

Constructs an empty (default-constructed) instance.

◆ PointToPlaneAligningTransform() [2/3]

unsafe MR.PointToPlaneAligningTransform.PointToPlaneAligningTransform ( MR.Const_PointToPlaneAligningTransform _other)
inline

Generated from constructor MR.PointToPlaneAligningTransform.PointToPlaneAligningTransform.

◆ PointToPlaneAligningTransform() [3/3]

MR.PointToPlaneAligningTransform.PointToPlaneAligningTransform ( PointToPlaneAligningTransform _other)
inline

Generated from constructor MR.PointToPlaneAligningTransform.PointToPlaneAligningTransform.

Member Function Documentation

◆ add() [1/2]

unsafe void MR.PointToPlaneAligningTransform.add ( in MR.Vector3d p1,
in MR.Vector3d p2,
in MR.Vector3d normal2,
double? w = null )
inline

Add a pair of corresponding points and the normal of the tangent plane at the second point Generated from method MR.PointToPlaneAligningTransform.add. Parameter w defaults to 1.

◆ add() [2/2]

unsafe void MR.PointToPlaneAligningTransform.add ( in MR.Vector3f p1,
in MR.Vector3f p2,
in MR.Vector3f normal2,
float? w = null )
inline

Add a pair of corresponding points and the normal of the tangent plane at the second point Generated from method MR.PointToPlaneAligningTransform.add. Parameter w defaults to 1.

◆ assign()

unsafe MR.PointToPlaneAligningTransform MR.PointToPlaneAligningTransform.assign ( MR.Const_PointToPlaneAligningTransform _other)
inline

Generated from method MR.PointToPlaneAligningTransform.operator=.

◆ clear()

unsafe void MR.PointToPlaneAligningTransform.clear ( )
inline

Clear points and normals data Generated from method MR.PointToPlaneAligningTransform.clear.

◆ prepare()

unsafe void MR.PointToPlaneAligningTransform.prepare ( )
inline

this method must be called after add() and before constant find...()/calculate...() to make the matrix symmetric Generated from method MR.PointToPlaneAligningTransform.prepare.


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