Version: 9.12.0
StdMeshers_ProjectionUtils::TrsfFinder3D Class Reference

Finds transformation between two sets of 3D points using a least square approximation. More...

#include <StdMeshers_ProjectionUtils.hxx>

Public Member Functions

 TrsfFinder3D ()
 
void Set (const gp_GTrsf &t)
 
bool Solve (const std::vector< gp_XYZ > &srcPnts, const std::vector< gp_XYZ > &tgtPnts)
 Computes transformation between two sets of 3D points using a least square approximation. More...
 
gp_XYZ Transform (const gp_Pnt &srcP) const
 Transforms a 3D point using a found transformation. More...
 
gp_XYZ TransformVec (const gp_Vec &v) const
 Transforms a 3D vector using a found transformation. More...
 
bool IsIdentity () const
 
bool Invert ()
 Inversion. More...
 

Private Attributes

gp_GTrsf _trsf
 
gp_XYZ _srcOrig
 

Detailed Description

Finds transformation between two sets of 3D points using a least square approximation.

Constructor & Destructor Documentation

◆ TrsfFinder3D()

StdMeshers_ProjectionUtils::TrsfFinder3D::TrsfFinder3D ( )

Member Function Documentation

◆ Invert()

bool StdMeshers_ProjectionUtils::TrsfFinder3D::Invert ( )

Inversion.

◆ IsIdentity()

bool StdMeshers_ProjectionUtils::TrsfFinder3D::IsIdentity ( ) const

References _trsf.

Referenced by StdMeshers_Sweeper::projectIntPoints().

◆ Set()

void StdMeshers_ProjectionUtils::TrsfFinder3D::Set ( const gp_GTrsf &  t)

References _trsf.

◆ Solve()

bool StdMeshers_ProjectionUtils::TrsfFinder3D::Solve ( const std::vector< gp_XYZ > &  srcPnts,
const std::vector< gp_XYZ > &  tgtPnts 
)

Computes transformation between two sets of 3D points using a least square approximation.

See "Surface Mesh Projection For Hexahedral Mesh Generation By Sweeping" by X.Roca, J.Sarrate, A.Huerta. (2.4)

Referenced by VISCOUS_3D::ShrinkFace::IsPeriodic(), and StdMeshers_Sweeper::projectIntPoints().

◆ Transform()

gp_XYZ StdMeshers_ProjectionUtils::TrsfFinder3D::Transform ( const gp_Pnt &  srcP) const

Transforms a 3D point using a found transformation.

Referenced by VISCOUS_3D::ShrinkFace::IsPeriodic(), VISCOUS_3D::PeriodicFaces::MoveNodes(), and StdMeshers_Sweeper::projectIntPoints().

◆ TransformVec()

gp_XYZ StdMeshers_ProjectionUtils::TrsfFinder3D::TransformVec ( const gp_Vec &  v) const

Transforms a 3D vector using a found transformation.

Field Documentation

◆ _srcOrig

gp_XYZ StdMeshers_ProjectionUtils::TrsfFinder3D::_srcOrig
private

◆ _trsf

gp_GTrsf StdMeshers_ProjectionUtils::TrsfFinder3D::_trsf
private

Referenced by IsIdentity(), and Set().