EgtGeomKernel :

- corretta verifica collisione di cilindro con triangolo.
This commit is contained in:
Dario Sassi
2021-01-19 18:25:56 +00:00
parent 7771cd8324
commit cbd2c582ab
2 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ DistPointCurve::GetSideAtMinDistPoint( int nInd, const Vector3d& vtN, int& nSide
double dDeltaU = 1000 * EPS_PARAM ;
if ( ! m_pCurve->GetPointTang( m_Info[nInd].dPar - dDeltaU, ICurve::FROM_MINUS, ptQ, vtPreTg) ||
! m_pCurve->GetPointTang( m_Info[nInd].dPar + dDeltaU, ICurve::FROM_PLUS, ptQ, vtPostTg))
return false ;
return false ;
vtTg = 0.5 * ( vtPreTg + vtPostTg) ;
if ( ! vtTg.Normalize( EPS_ZERO))
return false ;