From: gka Date: Mon, 26 Feb 2018 13:27:46 +0000 (+0300) Subject: Bug#209: Some IGES Files do not import correctly to OCCT 7.1 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2fc16f39cf4e96d8cc7a65568dc461d1cc1aed25;p=occt-copy.git 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". --- 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++ )