From 962dbe0c3be805efb429dca36a18d73cc6bf5d34 Mon Sep 17 00:00:00 2001 From: gka Date: Mon, 26 Feb 2018 16:27:46 +0300 Subject: [PATCH] 0029526: Test Harness command "ReadIges" does not support "read.iges.onlyvisible" mode In the Test Harness command "ReadIges" there is added taking into account value of the parameter "read.only.visible" --- src/XDEDRAW/XDEDRAW_Common.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XDEDRAW/XDEDRAW_Common.cxx b/src/XDEDRAW/XDEDRAW_Common.cxx index 613a2780ac..0e0961e2c0 100644 --- a/src/XDEDRAW/XDEDRAW_Common.cxx +++ b/src/XDEDRAW/XDEDRAW_Common.cxx @@ -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++ ) -- 2.39.5