From b66db767a0396d58f538fce1020a9661cbf007bd Mon Sep 17 00:00:00 2001 From: Riccardo Elitropi Date: Fri, 29 Aug 2025 11:32:39 +0200 Subject: [PATCH] EgtMachKernel : - piccola correzione in VerifyGeometry per finiture e sgrossature per superfici di Bezier. --- SurfFinishing.cpp | 5 +++++ SurfRoughing.cpp | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/SurfFinishing.cpp b/SurfFinishing.cpp index bacc21c..ffbea27 100644 --- a/SurfFinishing.cpp +++ b/SurfFinishing.cpp @@ -1023,6 +1023,11 @@ SurfFinishing::VerifyGeometry( SelData Id, int& nSubs) const ISurfTriMesh* pSurf = ::GetSurfTriMesh( pGObj) ; return ( pSurf != nullptr && pSurf->GetFacetCount() >= 1) ; } + // se altrimenti è superficie Bezier + else if ( pGObj->GetType() == SRF_BEZIER) { + const ISurfBezier* pSurf = ::GetSurfBezier( pGObj) ; + return ( pSurf != nullptr && pSurf->IsValid()) ; + } // altrimenti errore else return false ; diff --git a/SurfRoughing.cpp b/SurfRoughing.cpp index 3cbe857..9f269f7 100644 --- a/SurfRoughing.cpp +++ b/SurfRoughing.cpp @@ -999,6 +999,11 @@ SurfRoughing::VerifyGeometry( SelData Id, int& nSubs) const ISurfTriMesh* pSurf = ::GetSurfTriMesh( pGObj) ; return ( pSurf != nullptr && pSurf->GetFacetCount() >= 1) ; } + // se altrimenti è superficie Bezier + else if ( pGObj->GetType() == SRF_BEZIER) { + const ISurfBezier* pSurf = ::GetSurfBezier( pGObj) ; + return ( pSurf != nullptr && pSurf->IsValid()) ; + } // altrimenti errore else return false ; @@ -1998,7 +2003,7 @@ SurfRoughing::ProcessPath( int nPathId, int nPvId, int nClId) m_pGeomDB->SetMaterial( nNew_SfrPock_Id, GREEN) ; m_pGeomDB->SetName( nNew_SfrPock_Id, KEY_SURF_POCK + ToString( nPocket)) ; - // nel gruppo temporaneo salvo anche la superficie Limite) + // nel gruppo temporaneo salvo anche la superficie Limite int nNew_SfrLimit_Id = GDB_ID_NULL ; if ( ! IsNull( pSfrLimit) && pSfrLimit->IsValid()) { #if ENABLE_DEBUG_SFR