Finds transformation between two sets of 3D points using a least square approximation. More...
#include <StdMeshers_ProjectionUtils.hxx>
Public Member Functions | |
bool | Invert () |
Inversion. More... | |
bool | IsIdentity () const |
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... | |
TrsfFinder3D () | |
Finds transformation between two sets of 3D points using a least square approximation.
StdMeshers_ProjectionUtils::TrsfFinder3D::TrsfFinder3D | ( | ) |
bool StdMeshers_ProjectionUtils::TrsfFinder3D::Invert | ( | ) |
Inversion.
bool StdMeshers_ProjectionUtils::TrsfFinder3D::IsIdentity | ( | ) | const |
void StdMeshers_ProjectionUtils::TrsfFinder3D::Set | ( | const gp_GTrsf & | t | ) |
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)
References draftgeoutils.general::vec().
gp_XYZ StdMeshers_ProjectionUtils::TrsfFinder3D::Transform | ( | const gp_Pnt & | srcP | ) | const |
Transforms a 3D point using a found transformation.
gp_XYZ StdMeshers_ProjectionUtils::TrsfFinder3D::TransformVec | ( | const gp_Vec & | v | ) | const |
Transforms a 3D vector using a found transformation.