diff --git a/SurfRoughing.cpp b/SurfRoughing.cpp index 2c89a1a..615278a 100644 --- a/SurfRoughing.cpp +++ b/SurfRoughing.cpp @@ -1401,12 +1401,12 @@ SurfRoughing::ProcessPath( int nPathId, int nTempId, int nPvId, int nClId) m_pMchMgr->SetLastError( 3024, "Error in SurfRoughing : region not computable") ; return false ; } - pSfr->Translate( it->dDepth * vtTool) ; + pSfr->Translate( ( it->dDepth - GetOffsL()) * vtTool) ; /* ******************** Regione adattata al grezzo ******************** */ // questa regione bisogna ridurla basandosi sulla geometria del grezzo, in modo da non lavorare // parti in eccesso ; taglio il grezzo sul piano corrente e interseco con questa regione - PtrOwner pSfrRaw( GetSfrByStmIntersection( IPPStm, it->dDepth, 0)) ; + PtrOwner pSfrRaw( GetSfrByStmIntersection( IPPStm, it->dDepth - GetOffsL(), 0)) ; if ( IsNull( pSfrRaw)) { m_pMchMgr->SetLastError( 3027, "Error in SurfRoughing : Slicing Raw failed") ; return false ;