EgtMachKernel :

- piccola correzione in VerifyGeometry per finiture e sgrossature per superfici di Bezier.
This commit is contained in:
Riccardo Elitropi
2025-08-29 11:32:39 +02:00
parent e773b5b4f7
commit b66db767a0
2 changed files with 11 additions and 1 deletions
+5
View File
@@ -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 ;
+6 -1
View File
@@ -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