EgtGeomKernel 1.9l2 :

- aggiunta DistPointSurfTm
- corretta IntersLineSurfTm
- migliorato IdManager in UpdateMaxId.
This commit is contained in:
Dario Sassi
2018-12-11 09:24:42 +00:00
parent b3d868bcc9
commit 06b8c000fd
7 changed files with 126 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ DistPointTriangle::Calculate( const Point3d& ptP, const Triangle3d& Tria)
// Determino la minima distanza dai tre lati
for ( int i = 0 ; i < 3 ; ++ i) {
DistPointLine dstPL( ptQ, Tria.GetP( i), Tria.GetP( ( i + 1) % 3)) ;
DistPointLine dstPL( ptP, Tria.GetP( i), Tria.GetP( ( i + 1) % 3)) ;
double dSqDist ;
if ( dstPL.GetSqDist( dSqDist) && ( m_dSqDist < 0 || dSqDist < m_dSqDist)) {
m_dSqDist = dSqDist ;