EgtGraphics 1.6p1 :
- migliorie stilistiche.
This commit is contained in:
+15
-15
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user