EgtExecutor 2.2j3 :
- modifiche a ExeSurfTmCut per nuova funzione GeomKernel.
This commit is contained in:
+2
-24
@@ -755,30 +755,8 @@ MySurfTmCut( int nId, int nSplitterId, bool bInVsOut, bool bSaveOnEq)
|
||||
const ISurfTriMesh* pStmCLoc = GetSurfTriMesh( SurfCLoc) ;
|
||||
if ( pStmCLoc == nullptr)
|
||||
return false ;
|
||||
// eseguo la classificazione
|
||||
INTVECTOR vTriaIn, vTriaOut, vTriaOnP, vTriaOnM, vTriaIndef ;
|
||||
if ( ! pStm->GetSurfClassification( *pStmCLoc, vTriaIn, vTriaOut, vTriaOnP, vTriaOnM, vTriaIndef))
|
||||
return false ;
|
||||
// costruisco la nuova superficie
|
||||
PtrOwner<ISurfTriMesh> pStmNew ;
|
||||
if ( bInVsOut) {
|
||||
if ( bSaveOnEq)
|
||||
pStmNew.Set( MyCreateSubSurfTm( pStm, vTriaIn, vTriaOnP)) ;
|
||||
else
|
||||
pStmNew.Set( MyCreateSubSurfTm( pStm, vTriaIn)) ;
|
||||
}
|
||||
else {
|
||||
if ( bSaveOnEq)
|
||||
pStmNew.Set( MyCreateSubSurfTm( pStm, vTriaOut, vTriaOnM)) ;
|
||||
else
|
||||
pStmNew.Set( MyCreateSubSurfTm( pStm, vTriaOut)) ;
|
||||
}
|
||||
if ( IsNull( pStmNew))
|
||||
return false ;
|
||||
// la sostituisco alla superficie originale
|
||||
if ( ! pGeomDB->ReplaceGeoObj( nId, Release( pStmNew)))
|
||||
return false ;
|
||||
return true ;
|
||||
// eseguo il taglio
|
||||
return pStm->CutWithOtherSurf( *pStmCLoc, bInVsOut, bSaveOnEq) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user