EgtGeomKernel 1.5e8 :
- aggiunta iterazione anche con Id - correzione a creazione arco per normalizzazione N - agg. funzioni per sapere se esiste un INFO - possibilità di fare inserimenti nel DBG prima/dopo un oggetto indicato.
This commit is contained in:
+3
-2
@@ -22,7 +22,8 @@ using namespace std ;
|
||||
bool
|
||||
PointGrid3d::Init( int nBuckets, double dCellDim)
|
||||
{
|
||||
m_dCellDim = dCellDim ;
|
||||
m_dCellDim = max( dCellDim, EPS_SMALL) ;
|
||||
m_dInvCellDim = 1 / m_dCellDim ;
|
||||
try { m_MMap.rehash( nBuckets) ;}
|
||||
catch(...) { return false ;}
|
||||
return true ;
|
||||
@@ -101,7 +102,7 @@ PointGrid3d::Find( const Point3d& ptTest, double dTol, int& nId)
|
||||
int
|
||||
PointGrid3d::Get1dCellNbr( double dCoord)
|
||||
{
|
||||
return static_cast<int>( floor( dCoord / m_dCellDim)) ;
|
||||
return static_cast<int>( floor( dCoord * m_dInvCellDim)) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user