diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index bce23c5..2743a0a 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/MachineLua.cpp b/MachineLua.cpp index d9dee90..6c2351f 100644 --- a/MachineLua.cpp +++ b/MachineLua.cpp @@ -589,7 +589,7 @@ Machine::LuaEmtStdHead( lua_State* L) double dRot1W = 1 ; LuaGetTabFieldParam( L, 1, FLD_ROT1W, dRot1W) ; // lettura eventuale campo 'Rot2Stroke' dalla tabella - STROKE Rot2Stroke = { -INFINITO, INFINITO} ; + STROKE Rot2Stroke{ -INFINITO, INFINITO} ; LuaGetTabFieldParam( L, 1, FLD_ROT2STROKE, Rot2Stroke.v) ; // lettura eventuale campo 'SolCh' dalla tabella int nSolCh = MCH_SCC_NONE ; @@ -667,7 +667,7 @@ Machine::LuaEmtMultiHead( lua_State* L) double dRot1W = 1 ; LuaGetTabFieldParam( L, 1, FLD_ROT1W, dRot1W) ; // lettura eventuale campo 'Rot2Stroke' dalla tabella - STROKE Rot2Stroke = { -INFINITO, INFINITO} ; + STROKE Rot2Stroke{ -INFINITO, INFINITO} ; LuaGetTabFieldParam( L, 1, FLD_ROT2STROKE, Rot2Stroke.v) ; // lettura eventuale campo 'SolCh' dalla tabella int nSolCh = MCH_SCC_NONE ; @@ -734,7 +734,7 @@ Machine::LuaEmtSpecialHead( lua_State* L) double dRot1W = 1 ; LuaGetTabFieldParam( L, 1, FLD_ROT1W, dRot1W) ; // lettura eventuale campo 'Rot2Stroke' dalla tabella - STROKE Rot2Stroke = { -INFINITO, INFINITO} ; + STROKE Rot2Stroke{ -INFINITO, INFINITO} ; LuaGetTabFieldParam( L, 1, FLD_ROT2STROKE, Rot2Stroke.v) ; // lettura eventuale campo 'SolCh' dalla tabella int nSolCh = MCH_SCC_NONE ; diff --git a/Operation.cpp b/Operation.cpp index 6909b38..aa0f140 100644 --- a/Operation.cpp +++ b/Operation.cpp @@ -754,11 +754,11 @@ Operation::AdjustCurveFromSurf( ICurveComposite* pCrvCompo, int nToolDir, int nF else break ; } - // elimino le curve estreme molto corte ( 0.1 mm) + // elimino le curve estreme molto corte ( 0.5 mm) const double REF_LEN = 10.0 ; double dLen ; if ( pCrvCompo->GetLength( dLen) && dLen > REF_LEN) { - const double MIN_LEN = 0.1 ; + const double MIN_LEN = 0.5 ; double dCrvLen ; pCrv = pCrvCompo->GetFirstCurve() ; if ( pCrv != nullptr && pCrv->GetLength( dCrvLen) && dCrvLen < MIN_LEN) diff --git a/SawRoughing.cpp b/SawRoughing.cpp index a3f5d3c..8f16025 100644 --- a/SawRoughing.cpp +++ b/SawRoughing.cpp @@ -805,7 +805,7 @@ SawRoughing::VerifyGeometry( SelData Id, int& nSubs) const IGeoObj* pGObj = m_pGeomDB->GetGeoObj( Id.nId) ; // se direttamente la curva if ( Id.nSub == SEL_SUB_ALL) { - pCurve = ::GetCurve( m_pGeomDB->GetGeoObj( Id.nId)) ; + pCurve = ::GetCurve( pGObj) ; if ( pCurve != nullptr) { if ( pCurve->GetType() == CRV_COMPO) nSubs = ::GetCurveComposite( pCurve)->GetCurveCount() ; @@ -815,7 +815,7 @@ SawRoughing::VerifyGeometry( SelData Id, int& nSubs) } // altrimenti sottocurva di composita else { - const ICurveComposite* pCompo = GetCurveComposite( m_pGeomDB->GetGeoObj( Id.nId)) ; + const ICurveComposite* pCompo = GetCurveComposite( pGObj) ; if ( pCompo != nullptr) pCurve = pCompo->GetCurve( Id.nSub) ; nSubs = 0 ;