From 2fc16f39cf4e96d8cc7a65568dc461d1cc1aed25 Mon Sep 17 00:00:00 2001 From: gka Date: Mon, 26 Feb 2018 16:27:46 +0300 Subject: [PATCH] Bug#209: Some IGES Files do not import correctly to OCCT 7.1 To read only visible roots from IGES file in the XCAF document Test Harness command "ReadIges" was modified to take into account value of the Test Harness parameter "read.iges.onlyvisible". --- src/XDEDRAW/XDEDRAW_Common.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/XDEDRAW/XDEDRAW_Common.cxx b/src/XDEDRAW/XDEDRAW_Common.cxx index 9b347cc8cc..613a2780ac 100644 --- a/src/XDEDRAW/XDEDRAW_Common.cxx +++ b/src/XDEDRAW/XDEDRAW_Common.cxx @@ -47,6 +47,7 @@ #include #include #include +#include #include //============================================================ @@ -191,9 +192,10 @@ static Standard_Integer ReadIges (Draw_Interpretor& di, Standard_Integer argc, c DeclareAndCast(IGESControl_Controller,ctl,XSDRAW::Controller()); if (ctl.IsNull()) XSDRAW::SetNorm("IGES"); - + 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