IGESFile_Read

I would like to use the IGESFile_Read function, but I don't quite know how to build the second and third parameters to it. I tried creating an object of type IGESData_IGESModel and IGESData_Protocol, respectively, and pass them by reference, but it doesn't seem to want to work. I also get errors in the header files themselves: readIGES.cpp: In method `Interface_InterfaceModel::Interface_InterfaceModel (const Interface_InterfaceModel &)': /usr/openCascade/include/TColStd_IndexedMapOfTransient.hxx:109: `TColStd_IndexedMapOfTransient::TColStd_IndexedMapOfTransient (const TColStd_IndexedMapOfTransient &)' is private readIGES.cpp:8: within this context /usr/openCascade/include/Interface_DataMapOfIntegerTransient.hxx:114: `Interface_DataMapOfIntegerTransient::Interface_DataMapOfIntegerTransient (const Interface_DataMapOfIntegerTransient &)' is private readIGES.cpp:8: within this context /usr/openCascade/include/Interface_DataMapOfIntegerTransient.hxx:114: `Interface_DataMapOfIntegerTransient::Interface_DataMapOfIntegerTransient (const Interface_DataMapOfIntegerTransient &)' is private readIGES.cpp:8: within this context

Any support would be greatly appreciated.

Thanks,

Gabriel

Francois Lauzon's picture

Hi Gabriel, I suggest you use the IGESControlStd_Reader or the IGESControl_Reader if you want to read an IGES file. But if you really want to use the function IGESFile_Read, you should look in the source code of Open Cascade to see how it is used as a starting point (just search the source code for IGESFile_Read).

Good Luck, Francois.