EgtGeomKernel 1.8c3 :

- correzione a Invert di PolyArc.
This commit is contained in:
Dario Sassi
2017-03-22 10:17:09 +00:00
parent a1da4ef2d9
commit ff8da3d6de
3 changed files with 5 additions and 5 deletions
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -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
View File
@@ -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