EgtGeomKernel :

- migliorata GetDepth di VolZmap, con flag per scelta algoritmo.
This commit is contained in:
Dario Sassi
2017-10-23 06:47:22 +00:00
parent 9770d57793
commit 2ecd82c61f
13 changed files with 1306 additions and 440 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class HashGrid2d
: m_Objs( nullptr), m_neighborOffset( nullptr), m_occupiedCellsId( 0) {}
} ;
typedef std::vector<Cell*> CellVector ;
typedef vector<Cell*> CellVector ;
public :
explicit HashGrid2d( double dCellSpan) ;
@@ -695,7 +695,7 @@ HashGrids2d::addGrid( ObjData& obj)
// If no hash grid yet exists in the hierarchy, an initial hash grid is created
// based on the body's size.
pGrid = new HashGrid2d( size * std::sqrt( hierarchyFactor)) ;
pGrid = new HashGrid2d( size * sqrt( hierarchyFactor)) ;
}
else {
// Check the hierarchy for a hash grid with suitably sized cells - if such a grid does not