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:
@@ -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) ;
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user