EgtGeomKernel :
- piccole sistemazioni post Vroni (per usarlo in Offset _VRONI, altrimenti NVRONI).
This commit is contained in:
@@ -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 ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user