EgtGeomKernel :
- correzione in GetSurfFlatRegionFromFatCurve.
This commit is contained in:
+5
-4
@@ -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<ICurve> pClose( GetBiArc( ptEnd, dAngEnd, ptStart, dAngStart, 0.5)) ;
|
||||
// porto il biarco in globale
|
||||
pClose->ToGlob( frLoc) ;
|
||||
PtrOwner<ICurve> 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() ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user