EgtGeomKernel 1.9h1 :

- sistemazioni varie in CAvToolTriangle
- utilizzo di std::async in CAvToolSurfTm
- corretto GetAllTriaAroundVertex di SurfTm
- aggiunto ( nothrow) a tutti i new.
This commit is contained in:
Dario Sassi
2018-08-08 11:02:56 +00:00
parent d0fb939541
commit 866ed0b3d7
28 changed files with 618 additions and 475 deletions
+6 -6
View File
@@ -110,7 +110,7 @@ HashGrid3d::HashGrid3d( double dCellSpan)
m_enlargementThreshold = m_xyzCellCount / minimalGridDensity ;
// allocazione dell'array lineare che rappresenta lo hash grid.
m_cell = new Cell[ m_xyzCellCount] ;
m_cell = new( nothrow) Cell[ m_xyzCellCount] ;
// ogni cella è già inizializzata come vuota
// imposto gli offset ai vicini
@@ -294,7 +294,7 @@ HashGrid3d::InitNeighborOffsets( void)
y == 0 || y == (yc - 1) ||
z == 0 || z == (zc - 1)) {
c->m_neighborOffset = new int[27] ;
c->m_neighborOffset = new( nothrow) int[27] ;
i = 0 ;
for ( int zz = -xyc; zz <= xyc; zz += xyc ) {
@@ -485,7 +485,7 @@ HashGrid3d::Enlarge( void)
m_enlargementThreshold = m_xyzCellCount / minimalGridDensity ;
// ... a new linear array of cells representing this enlarged hash grid is allocated and ...
m_cell = new Cell[ m_xyzCellCount] ;
m_cell = new( nothrow) Cell[ m_xyzCellCount] ;
// ... initialized, and finally ...
InitNeighborOffsets() ;
@@ -738,7 +738,7 @@ HashGrids3d::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 HashGrid3d( size * sqrt( hierarchyFactor)) ;
pGrid = new( nothrow) HashGrid3d( size * sqrt( hierarchyFactor)) ;
}
else {
// Check the hierarchy for a hash grid with suitably sized cells - if such a grid does not
@@ -754,7 +754,7 @@ HashGrids3d::addGrid( ObjData& obj)
if ( size < cellSpan ) {
while ( size < cellSpan)
cellSpan /= hierarchyFactor ;
pGrid = new HashGrid3d( cellSpan * hierarchyFactor) ;
pGrid = new( nothrow) HashGrid3d( cellSpan * hierarchyFactor) ;
m_GridList.insert( g, pGrid) ;
}
@@ -767,7 +767,7 @@ HashGrids3d::addGrid( ObjData& obj)
while ( size >= cellSpan)
cellSpan *= hierarchyFactor ;
pGrid = new HashGrid3d( cellSpan) ;
pGrid = new( nothrow) HashGrid3d( cellSpan) ;
}
pGrid->Add( obj) ;