Finds transformation between two sets of 2D points using a least square approximation. More...
#include <StdMeshers_ProjectionUtils.hxx>
Public Member Functions | |
| TrsfFinder2D () | |
| void | Set (const gp_GTrsf2d &t) |
| bool | Solve (const std::vector< gp_XY > &srcPnts, const std::vector< gp_XY > &tgtPnts) |
| Computes transformation between two sets of 2D points using a least square approximation. More... | |
| gp_XY | Transform (const gp_Pnt2d &srcUV) const |
| Transforms a 2D points using a found transformation. More... | |
| bool | IsIdentity () const |
Private Attributes | |
| gp_GTrsf2d | _trsf |
| gp_XY | _srcOrig |
Finds transformation between two sets of 2D points using a least square approximation.
| StdMeshers_ProjectionUtils::TrsfFinder2D::TrsfFinder2D | ( | ) |
| void StdMeshers_ProjectionUtils::TrsfFinder2D::Set | ( | const gp_GTrsf2d & | t | ) |
References _trsf.
| bool StdMeshers_ProjectionUtils::TrsfFinder2D::Solve | ( | const std::vector< gp_XY > & | srcPnts, |
| const std::vector< gp_XY > & | tgtPnts | ||
| ) |
| gp_XY StdMeshers_ProjectionUtils::TrsfFinder2D::Transform | ( | const gp_Pnt2d & | srcUV | ) | const |
|
private |
Referenced by Solve(), and Transform().
|
private |
Referenced by IsIdentity(), Set(), Solve(), and Transform().