From: vsr Date: Thu, 23 Apr 2015 11:09:47 +0000 (+0300) Subject: 0023055: EDF 10725 GEOM: In the shape recognition functionality, it is not possible... X-Git-Tag: V7_6_0rc1~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=38f47f419dd05cdac7cf862bb3ab9b58b8fcf9b0;p=modules%2Fgeom.git 0023055: EDF 10725 GEOM: In the shape recognition functionality, it is not possible to select an area for the filtering sample Fix pb that imported image is Y-mirrored in a viewer --- diff --git a/src/EntityGUI/EntityGUI_PictureImportDlg.cxx b/src/EntityGUI/EntityGUI_PictureImportDlg.cxx index 74eacd8f8..425980457 100644 --- a/src/EntityGUI/EntityGUI_PictureImportDlg.cxx +++ b/src/EntityGUI/EntityGUI_PictureImportDlg.cxx @@ -188,9 +188,9 @@ bool EntityGUI_PictureImportDlg::execute( ObjectList& objects ) delete pixmap; GEOM::GEOM_Object_var P1 = aBasicOperations->MakePointXYZ( -0.5*width, -0.5*height, 0 ); - GEOM::GEOM_Object_var P2 = aBasicOperations->MakePointXYZ( -0.5*width, 0.5*height, 0 ); + GEOM::GEOM_Object_var P2 = aBasicOperations->MakePointXYZ( 0.5*width, -0.5*height, 0 ); GEOM::GEOM_Object_var P3 = aBasicOperations->MakePointXYZ( 0.5*width, 0.5*height, 0 ); - GEOM::GEOM_Object_var P4 = aBasicOperations->MakePointXYZ( 0.5*width, -0.5*height, 0 ); + GEOM::GEOM_Object_var P4 = aBasicOperations->MakePointXYZ( -0.5*width, 0.5*height, 0 ); GEOM::GEOM_Object_var aFace = aBlocksOperations->MakeQuad4Vertices(P1,P2,P3,P4); getDisplayer()->SetDisplayMode(3);