diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index b3bf092..7f6a56f 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/Pocketing.cpp b/Pocketing.cpp index 107d454..d38f1f7 100644 --- a/Pocketing.cpp +++ b/Pocketing.cpp @@ -1386,11 +1386,20 @@ Pocketing::ProcessPath( int nPathId, int nPvId, int nClId) return false ; ICurveComposite* pCompo = GetCurveComposite( m_pGeomDB->GetGeoObj( nCopyId)) ; - // aggiorno flag per lati aperti + // annullo i flag di tratto aperto + for ( int i = 0 ; i < int( pCompo->GetCurveCount()) ; ++ i) + pCompo->SetCurveTempProp( i, 0) ; + + // verifico se vanno gestiti i lati aperti bool bSomeOpen = m_pGeomDB->ExistsInfo( nCrvId, KEY_OPEN) ; if ( bSomeOpen) { - for ( int i = 0 ; i < int( pCompo->GetCurveCount()) ; ++ i) - pCompo->SetCurveTempProp( i, 0) ; + int nOpen ; + if ( FromString( ExtractInfo( m_Params.m_sUserNotes, "Open="), nOpen) && nOpen == 0) + bSomeOpen = false ; + } + + // aggiorno flag per lati aperti + if ( bSomeOpen) { INTVECTOR vOpen ; m_pGeomDB->GetInfo( nCrvId, KEY_OPEN, vOpen) ; for ( int j : vOpen) diff --git a/Simulator.cpp b/Simulator.cpp index 2bebe21..b761b60 100644 --- a/Simulator.cpp +++ b/Simulator.cpp @@ -974,7 +974,7 @@ Simulator::ManageSingleMove( int& nStatus, double& dMove) // se attivo CollisionCheck approssimo movimento con pił step int nStep = 1 ; if ( NeedCollisionCheck()) { - const double LEN_STEP = 10. ; + const double LEN_STEP = 20. ; nStep = max( int( dDist / LEN_STEP), 1) ; } for ( int i = 1 ; i <= nStep ; ++ i) {