]> OCCT Git - occt-copy.git/commitdiff
0029526: Test Harness command "ReadIges" does not support "read.iges.onlyvisible...
authorgka <gka@opencascade.com>
Mon, 26 Feb 2018 13:27:46 +0000 (16:27 +0300)
committergka <gka@opencascade.com>
Mon, 26 Feb 2018 14:53:07 +0000 (17:53 +0300)
In the Test Harness command "ReadIges" there is added taking into account value of the parameter "read.only.visible"

src/XDEDRAW/XDEDRAW_Common.cxx

index 613a2780ac48647148b117054036b1373a192218..0e0961e2c0a3cb32d72a28282b246a2b6493cb86 100644 (file)
@@ -192,10 +192,12 @@ static Standard_Integer ReadIges (Draw_Interpretor& di, Standard_Integer argc, c
   
   DeclareAndCast(IGESControl_Controller,ctl,XSDRAW::Controller());
   if (ctl.IsNull()) XSDRAW::SetNorm("IGES");
+  //get value of the Test Harness parameter "read.only.visible"
   Standard_Integer readOnlyVisible = Interface_Static::IVal("read.iges.onlyvisible");
  
   IGESCAFControl_Reader reader ( XSDRAW::Session(),Standard_True);
   reader.SetReadVisible(readOnlyVisible);
+
   if (argc == 4) {
     Standard_Boolean mode = Standard_True;
     for ( Standard_Integer i = 0; argv[3][i] ; i++ )