mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0029526: Test Harness command "ReadIges" does not support "read.iges.onlyvisible" mode
Modification Test Harness command "ReadIges" to take into account value of the parameter "read.iges.onlyvisible" was made.
This commit is contained in:
parent
41ea50ac6f
commit
0575de6d7e
@ -60,7 +60,8 @@ IGESControl_Reader::IGESControl_Reader ()
|
||||
IGESControl_Controller::Init();
|
||||
SetWS (new XSControl_WorkSession);
|
||||
SetNorm("IGES");
|
||||
theReadOnlyVisible = Standard_False;
|
||||
Standard_Integer onlyvisible = Interface_Static::IVal("read.iges.onlyvisible");
|
||||
theReadOnlyVisible = (onlyvisible == 1);
|
||||
}
|
||||
|
||||
|
||||
@ -75,8 +76,9 @@ IGESControl_Reader::IGESControl_Reader
|
||||
IGESControl_Controller::Init();
|
||||
SetWS (WS,scratch);
|
||||
SetNorm ("IGES");
|
||||
theReadOnlyVisible = Standard_False;
|
||||
}
|
||||
Standard_Integer onlyvisible = Interface_Static::IVal("read.iges.onlyvisible");
|
||||
theReadOnlyVisible = (onlyvisible == 1);
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@ -47,6 +47,7 @@
|
||||
#include <XCAFDoc_Editor.hxx>
|
||||
#include <TDF_Tool.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
//============================================================
|
||||
@ -191,8 +192,11 @@ static Standard_Integer ReadIges (Draw_Interpretor& di, Standard_Integer argc, c
|
||||
|
||||
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;
|
||||
|
6
tests/bugs/iges/bug29526
Normal file
6
tests/bugs/iges/bug29526
Normal file
@ -0,0 +1,6 @@
|
||||
param read.iges.onlyvisible 1
|
||||
newmodel
|
||||
ReadIges D1 [locate_data_file bug29526.igs]
|
||||
XGetOneShape a1 D1
|
||||
checknbshapes a1 -face 154
|
||||
|
Loading…
x
Reference in New Issue
Block a user