EgtGraphics 1.6p1 :

- migliorie stilistiche.
This commit is contained in:
Dario Sassi
2016-04-13 06:32:59 +00:00
parent f739072ac6
commit 2e168a21e2
2 changed files with 15 additions and 15 deletions
+15 -15
View File
@@ -173,13 +173,13 @@ Scene::FindSelectedIntersectionPoint( const Point3d& ptWin, int nW, int nH)
// recupero il riferimento di griglia
Frame3d frGrid = GetGridFrame() ;
// se il riferimento della curva è diverso da quello della griglia, devo trasformarla
PtrOwner<ICurve> crvTrans0( nullptr) ;
PtrOwner<ICurve> pcrvTrans0 ;
if ( ! AreSameFrame( frEnt[0], frGrid)) {
crvTrans0.Set( pCrv[0]->Clone()) ;
if ( IsNull( crvTrans0))
pcrvTrans0.Set( pCrv[0]->Clone()) ;
if ( IsNull( pcrvTrans0))
return false ;
crvTrans0->LocToLoc( frEnt[0], frGrid) ;
pCrv[0] = ::Get( crvTrans0) ;
pcrvTrans0->LocToLoc( frEnt[0], frGrid) ;
pCrv[0] = pcrvTrans0 ;
}
// uso il punto sketch come punto vicino e lo porto nel riferimento della griglia
Point3d ptWinZ( ptWin.x, ptWin.y, dWinZ) ;
@@ -198,22 +198,22 @@ Scene::FindSelectedIntersectionPoint( const Point3d& ptWin, int nW, int nH)
// recupero il riferimento di griglia
Frame3d frGrid = GetGridFrame() ;
// se il riferimento della prima curva è diverso da quello della griglia, devo trasformarla
PtrOwner<ICurve> crvTrans0( nullptr) ;
PtrOwner<ICurve> pcrvTrans0 ;
if ( ! AreSameFrame( frEnt[0], frGrid)) {
crvTrans0.Set( pCrv[0]->Clone()) ;
if ( IsNull( crvTrans0))
pcrvTrans0.Set( pCrv[0]->Clone()) ;
if ( IsNull( pcrvTrans0))
return false ;
crvTrans0->LocToLoc( frEnt[0], frGrid) ;
pCrv[0] = ::Get( crvTrans0) ;
pcrvTrans0->LocToLoc( frEnt[0], frGrid) ;
pCrv[0] = pcrvTrans0 ;
}
// se il riferimento della seconda curva è diverso da quello della griglia, devo trasformarla
PtrOwner<ICurve> crvTrans1( nullptr) ;
PtrOwner<ICurve> pcrvTrans1 ;
if ( ! AreSameFrame( frEnt[1], frGrid)) {
crvTrans1.Set( pCrv[1]->Clone()) ;
if ( IsNull( crvTrans1))
pcrvTrans1.Set( pCrv[1]->Clone()) ;
if ( IsNull( pcrvTrans1))
return false ;
crvTrans1->LocToLoc( frEnt[1], frGrid) ;
pCrv[1] = ::Get( crvTrans1) ;
pcrvTrans1->LocToLoc( frEnt[1], frGrid) ;
pCrv[1] = pcrvTrans1 ;
}
// uso il punto sketch come punto vicino e lo porto nel riferimento della griglia
Point3d ptWinZ( ptWin.x, ptWin.y, dWinZ) ;