EgtGeomKernel :

- correzione di un errore numerico nel tracking delle curve di trim.
This commit is contained in:
Daniele Bariletti
2023-11-07 12:39:49 +01:00
parent c0c01573ca
commit a6e3c42340
+2 -2
View File
@@ -1638,8 +1638,8 @@ Tree::FindCell( const Point3d& ptToAssign, const CurveLine& clTrim) const
int nId = -1 ;
// se fallisce ritorna un vettore vuoto
// verifico che il punto sia all'interno dello spazio parametrico
if ( ptToAssign.x < m_mTree.at( -1).GetBottomLeft().x || ptToAssign.x > m_mTree.at( -1).GetTopRight().x ||
ptToAssign.y < m_mTree.at( -1).GetBottomLeft().y || ptToAssign.y > m_mTree.at( -1).GetTopRight().y ) {
if ( ptToAssign.x < m_mTree.at( -1).GetBottomLeft().x - EPS_SMALL || ptToAssign.x > m_mTree.at( -1).GetTopRight().x + EPS_SMALL||
ptToAssign.y < m_mTree.at( -1).GetBottomLeft().y - EPS_SMALL || ptToAssign.y > m_mTree.at( -1).GetTopRight().y + EPS_SMALL) {
//nCells.push_back( - 2) ;
return nCells ;
}