diff --git a/EXE_GeoInters.cpp b/EXE_GeoInters.cpp index 2ac6a3f..46778c3 100644 --- a/EXE_GeoInters.cpp +++ b/EXE_GeoInters.cpp @@ -454,7 +454,8 @@ MyPlaneSurfTmInters( const Point3d& ptOn, const Vector3d& vtN, int nId, int nDes Point3d ptStart = ( bAdded ? vBpt[nInd].first : ptNear) ; Point3d ptEnd = vBpt[nInd].second ; // provo ad accodarlo alla composita - bAdded = ( pLine->Set( ptStart, ptEnd) && + bAdded = ( Dist( ptStart, ptEnd) > dToler / 2 && + pLine->Set( ptStart, ptEnd) && pCrvCompo->AddCurve( Release( pLine), true, dToler)) ; ptNear = ( bAdded ? ptEnd : ptStart) ; } @@ -589,7 +590,8 @@ MyChainCurvesForSurfSurfInters( const BIPNTVECTOR& vBpt, IGeomDB* pGeomDB, int n Point3d ptStart = ( bAdded ? vBpt[nInd].first : ptNear) ; Point3d ptEnd = vBpt[nInd].second ; // provo ad accodarlo alla composita - bAdded = ( pLine->Set( ptStart, ptEnd) && + bAdded = ( Dist( ptStart, ptEnd) > dToler / 2 && + pLine->Set( ptStart, ptEnd) && pCrvCompo->AddCurve( Release( pLine), true, dToler)) ; ptNear = ( bAdded ? ptEnd : ptStart) ; }