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:
Dario Sassi
2014-05-23 09:29:38 +00:00
parent 0239607929
commit aef1d089aa
13 changed files with 260 additions and 33 deletions
+3 -2
View File
@@ -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)) ;
}
//----------------------------------------------------------------------------