EgtGeomKernel :

- aggiunto controllo validità coordinate di punti e vettori (isfinite).
This commit is contained in:
DarioS
2023-05-15 14:50:32 +02:00
parent 2d8c815032
commit 7c6ddf2a6f
6 changed files with 49 additions and 32 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ bool
CurveLine::Validate( void)
{
if ( m_nStatus == TO_VERIFY)
m_nStatus = ( ! AreSamePointApprox( m_PtStart, m_PtEnd) ? OK : ERR) ;
m_nStatus = ( m_PtStart.IsValid() && m_PtEnd.IsValid() && ! AreSamePointApprox( m_PtStart, m_PtEnd) ? OK : ERR) ;
return ( m_nStatus == OK) ;
}