diff --git a/CalcPocketing.cpp b/CalcPocketing.cpp index dffed81..986f17b 100644 --- a/CalcPocketing.cpp +++ b/CalcPocketing.cpp @@ -759,7 +759,7 @@ GetUnclearedRegion( ICRVCOMPOPOVECTOR& vFirstOffs, ICRVCOMPOPOVECTOR& vCrvs, ICU PtrOwner pSrfToolRegLinki( GetSurfFlatRegionFromFatCurve( Release( pCrvLink_i), s_dRad + 5 * EPS_SMALL, false, false)) ; if ( ! IsNull( pSrfToolRegLinki)) { if ( ! pSrfTool_Links->IsValid() || pSrfTool_Links->GetChunkCount() == 0) - pSrfTool_Links.Set( GetBasicSurfFlatRegion( pSrfToolRegLinki)) ; + pSrfTool_Links.Set( GetBasicSurfFlatRegion( Release( pSrfToolRegLinki))) ; else pSrfTool_Links->Add( *pSrfToolRegLinki) ; } @@ -2536,7 +2536,7 @@ CalcZigZag( const ISurfFlatRegion* pSrfZigZag, ICRVCOMPOPOVECTOR& vpCrvs, double vAddedLinks.emplace_back( pCrvLink->Clone()) ; // pSeg2 ora diventa pSeg1 e il procedimento si itera per tutto il percorso - pLastSeg.Set( Release( pSeg2)) ; + pLastSeg.Set( pSeg2) ; } // cerco nella stessa fila o in quella successiva sezione successiva raccordabile tramite il contorno double dUstart = Sec.dOe ; @@ -3164,7 +3164,7 @@ AdjustLinkDifferentY( const ICurve* pCrvSegPrec, const ICurve* pCrvSegSucc, cons if ( IsNull( pSfrTrap_c)) return false ; if ( ! pSfrTrap->Offset( - s_dRad / 5, ICurve::OFF_CHAMFER)) - pSfrTrap.Set( Release( pSfrTrap_c)) ; + pSfrTrap.Set( pSfrTrap_c) ; // se il Link interseca questa regione, allora va eliminato CRVCVECTOR ccClass ; diff --git a/EgtGeomKernel.rc b/EgtGeomKernel.rc index 8e19baa..159c2b9 100644 Binary files a/EgtGeomKernel.rc and b/EgtGeomKernel.rc differ