diff --git a/EgtGraphics.rc b/EgtGraphics.rc index dee72de..f23ca22 100644 Binary files a/EgtGraphics.rc and b/EgtGraphics.rc differ diff --git a/SceneGeom.cpp b/SceneGeom.cpp index b5aeb12..f5df0ba 100644 --- a/SceneGeom.cpp +++ b/SceneGeom.cpp @@ -972,18 +972,18 @@ static bool CalcCurveConnectingLines( const PolyLine& plCrv, const Vector3d& vtTh, bool bDense, PNTVECTOR& vPnt) { // assegno coefficiente - double dDelta = ( bDense ? 0.25 : 1) ; + double dDelta = ( bDense ? 0.25 : 0.5) ; // ciclo per creare i segmenti di raccordo double dU, dUprev = - dDelta ; vPnt.reserve( 5) ; for ( bool bFound = plCrv.GetFirstU( dU) ; bFound ; bFound = plCrv.GetNextU( dU)) { - if ( ( dU - dUprev) > dDelta - EPS_PARAM) { + if ( ( dU - dUprev) > dDelta - EPS_PARAM || fmod( dU, 1.) < EPS_PARAM) { Point3d ptP ; plCrv.GetCurrPoint( ptP) ; vPnt.push_back( ptP) ; ptP += vtTh ; vPnt.push_back( ptP) ; - dUprev += dDelta ; + dUprev = dU ; } } return true ;