+ fixes #0000763: Bad IGS import

This commit is contained in:
wmayer
2015-01-05 16:28:40 +01:00
parent ab24e9df6a
commit ee86871bed
6 changed files with 51 additions and 4 deletions

View File

@@ -116,10 +116,16 @@ static PyObject * importer(PyObject *self, PyObject *args)
}
}
else if (file.hasExtension("igs") || file.hasExtension("iges")) {
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/Part")->GetGroup("IGES");
try {
IGESControl_Controller::Init();
Interface_Static::SetIVal("read.surfacecurve.mode",3);
IGESCAFControl_Reader aReader;
// http://www.opencascade.org/org/forum/thread_20603/?forum=3
aReader.SetReadVisible(hGrp->GetBool("SkipBlankEntities", true)
? Standard_True : Standard_False);
aReader.SetColorMode(true);
aReader.SetNameMode(true);
aReader.SetLayerMode(true);