1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0025671: V3d_View::Convert doesn't work as expected in GRID active mode.

Removed code of converting coordinates to grid in V3d_View::Convert, ::ConvertWithProj methods.
Added test case verifying MoveTo with activated grid and testing V3d_View::Convert, ::ConvertWithProj methods.
Added new test command "vconvert" for testing the conversion methods.

gcc compilation warnings
This commit is contained in:
apl
2015-04-16 11:45:10 +03:00
committed by bugmaster
parent 8ba678133b
commit f25b82d624
3 changed files with 284 additions and 13 deletions

View File

@@ -1792,14 +1792,6 @@ void V3d_View::Convert(const Standard_Integer Xp,
X = aResult.X();
Y = aResult.Y();
Z = aResult.Z();
Graphic3d_Vertex aVrp;
aVrp.SetCoord (X, Y, Z);
if( MyViewer->Grid()->IsActive() ) {
Graphic3d_Vertex aNewVrp = Compute (aVrp) ;
aNewVrp.Coord (X, Y, Z) ;
}
}
//=======================================================================
@@ -1843,11 +1835,6 @@ void V3d_View::ConvertWithProj(const Standard_Integer Xp,
Dx = aNormDir.x();
Dy = aNormDir.y();
Dz = aNormDir.z();
if( MyViewer->Grid()->IsActive() ) {
Graphic3d_Vertex aNewVrp = Compute (aVrp) ;
aNewVrp.Coord (X, Y, Z) ;
}
}
//=======================================================================