Modification Test Harness command "ReadIges" to take into account value of the parameter "read.iges.onlyvisible" was made.
IGESControl_Controller::Init();
SetWS (new XSControl_WorkSession);
SetNorm("IGES");
- theReadOnlyVisible = Standard_False;
+ Standard_Integer onlyvisible = Interface_Static::IVal("read.iges.onlyvisible");
+ theReadOnlyVisible = (onlyvisible == 1);
}
IGESControl_Controller::Init();
SetWS (WS,scratch);
SetNorm ("IGES");
- theReadOnlyVisible = Standard_False;
-}
+ Standard_Integer onlyvisible = Interface_Static::IVal("read.iges.onlyvisible");
+ theReadOnlyVisible = (onlyvisible == 1);
+ }
//=======================================================================
#include <XCAFDoc_Editor.hxx>
#include <TDF_Tool.hxx>
#include <TopoDS_Shape.hxx>
+#include <Interface_Static.hxx>
#include <stdio.h>
//============================================================
DeclareAndCast(IGESControl_Controller,ctl,XSDRAW::Controller());
if (ctl.IsNull()) XSDRAW::SetNorm("IGES");
+
IGESCAFControl_Reader reader ( XSDRAW::Session(),Standard_True);
+ Standard_Integer onlyvisible = Interface_Static::IVal("read.iges.onlyvisible");
+ reader.SetReadVisible(onlyvisible == 1);
if (argc == 4) {
Standard_Boolean mode = Standard_True;
--- /dev/null
+ param read.iges.onlyvisible 1
+ newmodel
+ ReadIges D1 [locate_data_file bug29526.igs]
+ XGetOneShape a1 D1
+ checknbshapes a1 -face 154
+
\ No newline at end of file