EgtGeomKernel 1.6l1 :

- versione preliminare di VolZmap
- piccola correzione a calcolo Box locale di curve.
This commit is contained in:
Dario Sassi
2015-12-08 10:15:53 +00:00
parent 3b9b905351
commit 84bf96b243
9 changed files with 300 additions and 11 deletions
+8
View File
@@ -210,6 +210,14 @@ CurveLine::GetLocalBBox( BBox3d& b3Loc, int nFlag) const
return false ;
// assegno il box in locale
b3Loc.Set( m_PtStart, m_PtEnd) ;
// se c'è estrusione, devo tenerne conto
if ( ! m_VtExtr.IsSmall() && fabs( m_dThick) > EPS_SMALL) {
Point3d ptMinExtr = b3Loc.GetMin() + m_VtExtr * m_dThick ;
Point3d ptMaxExtr = b3Loc.GetMax() + m_VtExtr * m_dThick ;
b3Loc.Add( ptMinExtr) ;
b3Loc.Add( ptMaxExtr) ;
}
return true ;
}