+ 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

@@ -83,6 +83,10 @@ int Part::ImportIgesParts(App::Document *pcDoc, const char* FileName)
if (aReader.ReadFile((const Standard_CString)FileName) != IFSelect_RetDone)
throw Base::Exception("Error in reading IGES");
// Ignore construction elements
// http://www.opencascade.org/org/forum/thread_20603/?forum=3
aReader.SetReadVisible(Standard_True);
// check file conformity and output stats
aReader.PrintCheckLoad(Standard_True,IFSelect_GeneralInfo);