]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0023055: EDF 10725 GEOM: In the shape recognition functionality, it is not possible...
authorvsr <vsr@opencascade.com>
Thu, 23 Apr 2015 11:09:47 +0000 (14:09 +0300)
committervsr <vsr@opencascade.com>
Thu, 23 Apr 2015 11:09:47 +0000 (14:09 +0300)
Fix pb that imported image is Y-mirrored in a viewer

src/EntityGUI/EntityGUI_PictureImportDlg.cxx

index 74eacd8f80f8416411f68ca0dc7ba8b026ad02eb..425980457585b2c014c3e46fe8d55f09eb9cc64b 100644 (file)
@@ -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);