diff --git a/Operation.cpp b/Operation.cpp index 802d27b..fbe724b 100644 --- a/Operation.cpp +++ b/Operation.cpp @@ -1147,7 +1147,7 @@ Operation::ApproxWithArcsIfUseful( ICurveComposite* pCompo, bool bCareTempProp) for ( int j = 0 ; j < pCC->GetCurveCount() ; ++ j) pCC->SetCurveTempProp( j, vInt[i].second) ; // reinserisco nel vettore di curve - vpCrvs.back().Set( Release( pCC)) ; + vpCrvs.back().Set( pCC) ; } } // riassemblo la curva e assegno le opportune proprietà diff --git a/Pocketing.cpp b/Pocketing.cpp index 0f0cfc2..9184b58 100644 --- a/Pocketing.cpp +++ b/Pocketing.cpp @@ -3885,7 +3885,7 @@ Pocketing::CalcSpiral( const ICurveComposite* pCompo, int nReg, bool bSplitArcs, // recupero la prossima curva di offset PtrOwner pNextOffs ; if ( ! vCrvStack.empty()) { - pNextOffs.Set( Release( vCrvStack.back())) ; + pNextOffs.Set( vCrvStack.back()) ; vCrvStack.pop_back() ; dCurrRad = vRadStack.back() ; vRadStack.pop_back() ; @@ -3902,7 +3902,7 @@ Pocketing::CalcSpiral( const ICurveComposite* pCompo, int nReg, bool bSplitArcs, if ( bNextOk) { // sistemo per prossimo step dCurrRad = dRad ; - pOffs.Set( Release( pNextOffs)) ; + pOffs.Set( pNextOffs) ; // nuovo valore pari allo step dOffs = GetSideStep() ; } @@ -3929,7 +3929,7 @@ Pocketing::CalcSpiral( const ICurveComposite* pCompo, int nReg, bool bSplitArcs, // calcolo il collegamento (garantendo che non esca dalla svuotatura) PtrOwner pCrvLink( CreateCurveComposite()) ; if ( CalcBoundedLink( ptStart, ptEnd, vOffs[0], pCrvLink)) - vLinks[i].Set( Release( pCrvLink)) ; + vLinks[i].Set( pCrvLink) ; else { m_pMchMgr->SetLastError( 2413, "Error in Pocketing : Toolpath not computable") ; return false ; @@ -4851,7 +4851,7 @@ Pocketing::ComputePolishingPath( ICurveComposite* pMCrv, ICurveComposite* pRCrv, // calcolo il collegamento con biarchi (garantendo che non esca dalla svuotatura) PtrOwner pCrvLink( CreateCurveComposite()) ; if ( CalcBoundedLinkWithBiArcs( ptStart, vtStart, ptEnd, vtEnd, pCrvBound, pCrvLink)) { - vLinks[i].Set( Release( pCrvLink)) ; + vLinks[i].Set( pCrvLink) ; } else { m_pMchMgr->SetLastError( 2413, "Error in Pocketing : Toolpath not computable") ; diff --git a/SawFinishing.cpp b/SawFinishing.cpp index 5ad4be3..f107165 100644 --- a/SawFinishing.cpp +++ b/SawFinishing.cpp @@ -987,7 +987,7 @@ SawFinishing::AdjustGeometry( int nAuxId) // verifiche sull'ampiezza dell'angolo al centro degli eventuali archi VerifyArcs( pCompo) ; // reinserisco nella curva originale - pGuide.Set( Release( pCompo)) ; + pGuide.Set( pCompo) ; } // deve iniziare in comune con la prima sezione ed essere ivi perpendicolare Vector3d vtGdDir ; diff --git a/SawRoughing.cpp b/SawRoughing.cpp index cd19a91..03ea200 100644 --- a/SawRoughing.cpp +++ b/SawRoughing.cpp @@ -945,7 +945,7 @@ SawRoughing::AdjustGeometry( int nAuxId) // verifiche sull'ampiezza dell'angolo al centro degli eventuali archi VerifyArcs( pCompo) ; // reinserisco nella curva originale - pGuide.Set( Release( pCompo)) ; + pGuide.Set( pCompo) ; } // deve iniziare in comune con la prima sezione ed essere ivi perpendicolare Vector3d vtGdDir ; diff --git a/SurfFinishing.cpp b/SurfFinishing.cpp index f63c289..f750af5 100644 --- a/SurfFinishing.cpp +++ b/SurfFinishing.cpp @@ -1379,7 +1379,7 @@ SurfFinishing::AddZigZag( ICAvToolSurfTm* pCAvTlStm, const Frame3d& frSurf, if ( IsNull( pCompo) || ! pCompo->FromPolyLine( PL)) return false ; // sostituisco la vecchia curva con la nuova - vpCrvs[k].Set( Release( pCompo )) ; + vpCrvs[k].Set( pCompo) ; } // ciclo sulle curve elementari int nMaxInd = vpCrvs[k]->GetCurveCount() - 1 ; @@ -1740,7 +1740,7 @@ SurfFinishing::AddSpiral( ICAvToolSurfTm* pCAvTlStm, const Frame3d& frSurf, if ( IsNull( pCompo) || ! pCompo->FromPolyLine( PL)) return false ; // sostituisco la vecchia curva con la nuova - pMCrv.Set( Release( pCompo )) ; + pMCrv.Set( pCompo) ; } // ciclo sulle curve elementari int nMaxInd = pMCrv->GetCurveCount() - 1 ; @@ -1903,7 +1903,7 @@ SurfFinishing::CalcSpiral( const ICurveComposite* pCompo, bool bSplitArcs, if ( bNextOk) { // sistemo per prossimo step dCurrRad = dRad ; - pOffs.Set( Release( pNextOffs)) ; + pOffs.Set( pNextOffs) ; pCurr = Get( pOffs) ; // nuovo valore pari allo step dOffs = GetSideStep() ; diff --git a/WaterJetting.cpp b/WaterJetting.cpp index 6263a9b..6cb4e90 100644 --- a/WaterJetting.cpp +++ b/WaterJetting.cpp @@ -1961,7 +1961,7 @@ WaterJetting::AddLeadInPreview( const ICurveComposite* pCompo, ISurfFlatRegion* { PtrOwner pLine( CreateCurveLine()) ; if ( IsNull( pLine) || ! pLine->Set( ptP1, ptStart)) return false ; - pCrv.Set( Release( pLine)) ; + pCrv.Set( pLine) ; } break ; case WJET_LI_TANGENT : pCrv.Set( GetArc2PVN( ptStart, ptP1, - vtStart, vtN)) ; @@ -2030,7 +2030,7 @@ WaterJetting::AddLeadOutPreview( const ICurveComposite* pCompo, ISurfFlatRegion* Point3d ptP1 = ptEnd + vtEnd * dTang + vtPerp * dPerp ; if ( IsNull( pLine) || ! pLine->Set( ptEnd, ptP1)) return false ; - pCrv.Set( Release( pLine)) ; + pCrv.Set( pLine) ; } break ; case WJET_LO_TANGENT : { // calcolo punto finale dell'uscita