EgtGeomKernel :

- piccole sistemazioni post Vroni (per usarlo in Offset _VRONI, altrimenti NVRONI).
This commit is contained in:
Dario Sassi
2023-11-24 12:52:27 +01:00
parent 5bd5efafb1
commit fce40ffc38
15 changed files with 52 additions and 64 deletions
+10 -7
View File
@@ -23,11 +23,17 @@
using namespace std ;
//----------------------------------------------------------------------------
ISurfFlatRegion*
SurfFlatRegion::CreateOffsetSurf( double dDist, int nType, bool bUseVoronoi) const
SurfFlatRegion*
SurfFlatRegion::CreateOffsetSurf( double dDist, int nType) const
{
// restituisce la superficie offsettata senza modificare la superficie corrente. In caso di errore restituisce nullptr
// imposto metodo di calcolo
bool bUseVoronoi = false ;
#ifdef _VRONI
bUseVoronoi = true ;
#endif // _VRONI
// recupero il numero dei chunk
int nChunk = GetChunkCount() ;
if ( nChunk == 0)
@@ -195,7 +201,7 @@ SurfFlatRegion::CreateOffsetSurf( double dDist, int nType, bool bUseVoronoi) con
//----------------------------------------------------------------------------
bool
SurfFlatRegion::Offset( double dDist, int nType, bool bUseVoronoi)
SurfFlatRegion::Offset( double dDist, int nType)
{
// recupero il numero dei chunk
int nChunk = GetChunkCount() ;
@@ -207,10 +213,7 @@ SurfFlatRegion::Offset( double dDist, int nType, bool bUseVoronoi)
return this->Clone() ;
// calcolo la superficie di offset
ISurfFlatRegion* pSfrOrig = CreateOffsetSurf( dDist, nType, bUseVoronoi) ;
if ( pSfrOrig == nullptr)
return false ;
PtrOwner<SurfFlatRegion> pSfr( GetBasicSurfFlatRegion( pSfrOrig)) ;
PtrOwner<SurfFlatRegion> pSfr( CreateOffsetSurf( dDist, nType)) ;
if ( IsNull( pSfr))
return false ;