From ff8da3d6dea8397ec38b11ca27f5aad8d1902e41 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 22 Mar 2017 10:17:09 +0000 Subject: [PATCH] EgtGeomKernel 1.8c3 : - correzione a Invert di PolyArc. --- EgtGeomKernel.rc | Bin 11710 -> 11710 bytes PolyArc.cpp | 4 ++-- SfrCreate.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/EgtGeomKernel.rc b/EgtGeomKernel.rc index 0bf55eb667e39b8abe2a4ed68408bd84bae8745f..3b3448e1bb3fb85fe3e522b2657d1a37a7b9da76 100644 GIT binary patch delta 94 zcmdlNy)SyhFE&Qw&A-_cnHh~ID{|{@_Trkr0u;H;XNwSVW8B;$>;>dw2zN+>g;Df- LFmBFL4&ed-W11TR delta 94 zcmdlNy)SyhFE&P_&A-_cnHh~HD{|{@_Trkr0u;H;XNwSVW8B;$>;>dw2zN+>g;Df- LFmBFL4&ed-Vf-5U diff --git a/PolyArc.cpp b/PolyArc.cpp index 17cee6c..30a0e5b 100644 --- a/PolyArc.cpp +++ b/PolyArc.cpp @@ -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 ; } diff --git a/SfrCreate.cpp b/SfrCreate.cpp index b71e176..de8a92c 100644 --- a/SfrCreate.cpp +++ b/SfrCreate.cpp @@ -43,7 +43,7 @@ GetSurfFlatRegionRectangle( double dWidth, double dLen) if ( IsNull( pCC) || ! pCC->FromPolyLine( PL)) return nullptr ; // creo il rettangolo - PtrOwner pSfr( CreateSurfFlatRegion()) ; + PtrOwner 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 pSfr( CreateSurfFlatRegion()) ; + PtrOwner 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 pSfr( CreateSurfFlatRegion()) ; + PtrOwner pSfr( CreateBasicSurfFlatRegion()) ; if ( IsNull( pSfr) || ! pSfr->AddExtLoop( Release( pArc))) return nullptr ; else