Version: 8.3.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

StdMeshers_ProjectionUtils::TrsfFinder3D::TrsfFinder3D ( )

Member Function Documentation

bool StdMeshers_ProjectionUtils::TrsfFinder3D::Invert ( )

Inversion.

bool StdMeshers_ProjectionUtils::TrsfFinder3D::IsIdentity ( ) const

References _trsf.

Referenced by StdMeshers_Sweeper::projectIntPoints().

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

References _trsf.

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 StdMeshers_Sweeper::projectIntPoints().

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

Transforms a 3D point using a found transformation.

Referenced by StdMeshers_Sweeper::projectIntPoints().

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

Transforms a 3D vector using a found transformation.

Field Documentation

gp_XYZ StdMeshers_ProjectionUtils::TrsfFinder3D::_srcOrig
private
gp_GTrsf StdMeshers_ProjectionUtils::TrsfFinder3D::_trsf
private

Referenced by IsIdentity(), and Set().