diff --git a/SfrCreate.cpp b/SfrCreate.cpp index c3daeb9..6e4fb9d 100644 --- a/SfrCreate.cpp +++ b/SfrCreate.cpp @@ -154,12 +154,13 @@ GetSurfFlatRegionFromFatCurve( ICurve* pCrv, double dRadius, bool bSquareEnds, b Vector3d vtSLoc( vtStart) ; vtSLoc.ToLoc( frLoc) ; double dAngEnd ; vtELoc.ToSpherical( nullptr, nullptr, &dAngEnd) ; double dAngStart ; vtSLoc.ToSpherical( nullptr, nullptr, &dAngStart) ; - PtrOwner pClose( GetBiArc( ptEnd, dAngEnd, ptStart, dAngStart, 0.5)) ; - // porto il biarco in globale - pClose->ToGlob( frLoc) ; + PtrOwner pClose( GetBiArc( ptEnd, dAngEnd, ptStart, dAngStart, 0.5)) ; // aggiungo il biarco - if ( ! IsNull( pClose)) + if ( ! IsNull( pClose)) { + // porto il biarco in globale + pClose->ToGlob( frLoc) ; pCompo1->AddCurve( Release( pClose)) ; + } else pCompo1->Close() ; }