EgtGeomKernel 1.8c3 :
- correzione a Invert di PolyArc.
This commit is contained in:
Binary file not shown.
+2
-2
@@ -479,10 +479,10 @@ PolyArc::Invert( bool bInvertU)
|
||||
return true ;
|
||||
// inverto la lista
|
||||
m_lUPointBs.reverse() ;
|
||||
// sposto il bulge all'estremo iniziale di ogni tratto (l'ultimo non conta)
|
||||
// sposto il bulge all'estremo iniziale di ogni tratto (l'ultimo non conta) e lo inverto
|
||||
for ( UPNTBLIST::iterator iter = m_lUPointBs.begin() ; iter != m_lUPointBs.end() ; ++ iter) {
|
||||
if ( next( iter) != m_lUPointBs.end())
|
||||
iter->dB = next( iter)->dB ;
|
||||
iter->dB = - next( iter)->dB ;
|
||||
else
|
||||
iter->dB = 0 ;
|
||||
}
|
||||
|
||||
+3
-3
@@ -43,7 +43,7 @@ GetSurfFlatRegionRectangle( double dWidth, double dLen)
|
||||
if ( IsNull( pCC) || ! pCC->FromPolyLine( PL))
|
||||
return nullptr ;
|
||||
// creo il rettangolo
|
||||
PtrOwner<ISurfFlatRegion> pSfr( CreateSurfFlatRegion()) ;
|
||||
PtrOwner<SurfFlatRegion> pSfr( CreateBasicSurfFlatRegion()) ;
|
||||
if ( IsNull( pSfr) || ! pSfr->AddExtLoop( Release( pCC)))
|
||||
return nullptr ;
|
||||
else
|
||||
@@ -82,7 +82,7 @@ GetSurfFlatRegionStadium( double dWidth, double dLen)
|
||||
if ( IsNull( pCC) || ! pCC->FromPolyArc( PA))
|
||||
return nullptr ;
|
||||
// creo il rettangolo
|
||||
PtrOwner<ISurfFlatRegion> pSfr( CreateSurfFlatRegion()) ;
|
||||
PtrOwner<SurfFlatRegion> pSfr( CreateBasicSurfFlatRegion()) ;
|
||||
if ( IsNull( pSfr) || ! pSfr->AddExtLoop( Release( pCC)))
|
||||
return nullptr ;
|
||||
else
|
||||
@@ -102,7 +102,7 @@ GetSurfFlatRegionDisk( double dRadius)
|
||||
return nullptr ;
|
||||
pArc->Set( ORIG, Z_AX, dRadius, X_AX, ANG_FULL, 0) ;
|
||||
// creo il disco
|
||||
PtrOwner<ISurfFlatRegion> pSfr( CreateSurfFlatRegion()) ;
|
||||
PtrOwner<SurfFlatRegion> pSfr( CreateBasicSurfFlatRegion()) ;
|
||||
if ( IsNull( pSfr) || ! pSfr->AddExtLoop( Release( pArc)))
|
||||
return nullptr ;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user