EgtExecutor :

- modifiche per CAvTool.
This commit is contained in:
Dario Sassi
2019-01-02 18:45:41 +00:00
parent 562048fc9a
commit 985ab07916
+2 -4
View File
@@ -121,9 +121,8 @@ ExeCAvToolPosStm( const Point3d& ptP, const Vector3d& vtAx, int nSurfTmId, const
Vector3d vtMoveL = GetVectorLocal( pGeomDB, vtMove, nRefType, frSurf) ;
// imposto dati
s_pCAvTlStm->SetSurfTm( *pStm) ;
s_pCAvTlStm->SetMoveDir( vtMoveL) ;
double dMove ;
if ( ! s_pCAvTlStm->TestPosition( ptPL, vtAxL, dMove))
if ( ! s_pCAvTlStm->TestPosition( ptPL, vtAxL, vtMoveL, dMove))
return -1 ;
return dMove ;
}
@@ -170,9 +169,8 @@ ExeCAvToolPathStm( int nCrvId, const Vector3d& vtAx, int nSurfTmId, const Vector
Vector3d vtMoveL = GetVectorLocal( pGeomDB, vtMove, nRefType, frSurf) ;
// imposto dati
s_pCAvTlStm->SetSurfTm( *pStm) ;
s_pCAvTlStm->SetMoveDir( vtMoveL) ;
// eseguo CAv
if ( ! s_pCAvTlStm->TestPath( PL.GetUPointList(), vtAxL, dLinTol))
if ( ! s_pCAvTlStm->TestPath( PL.GetUPointList(), vtAxL, vtMoveL, dLinTol))
return false ;
// riporto la polilinea nel riferimento della curva
PL.LocToLoc( frSurf, frCrv) ;