diff --git a/EgtGeomKernel.rc b/EgtGeomKernel.rc index 5ca631e..d6496a9 100644 Binary files a/EgtGeomKernel.rc and b/EgtGeomKernel.rc differ diff --git a/SfrCreate.cpp b/SfrCreate.cpp index f5952df..d121263 100644 --- a/SfrCreate.cpp +++ b/SfrCreate.cpp @@ -120,11 +120,13 @@ GetSurfFlatRegionFromFatCurve( ICurve* pCrv, double dRadius, bool bSquareEnds, b PtrOwner pCompo1( CreateBasicCurveComposite()) ; if ( IsNull( pCompo1) || ! pCompo1->AddCurve( Release( pCurve))) return nullptr ; - // se distanza tra gli estremi minore di due volte il raggio la chiudo + // se distanza tra gli estremi minore di due volte il raggio la chiudo, purchè curva abbastanza lunga + double dLen ; Point3d ptStart, ptEnd ; pCompo1->GetStartPoint( ptStart) ; pCompo1->GetEndPoint( ptEnd) ; - if ( Dist( ptStart, ptEnd) <= 2 * dRadius) + pCompo1->GetLength( dLen) ; + if ( dLen > 2 * dRadius && Dist( ptStart, ptEnd) <= 2 * dRadius) pCompo1->Close() ; // tipo di offset int nOffsType = ( bSquareMids ? ICurve::OFF_EXTEND : ICurve::OFF_FILLET) ;