
Thu, 04/20/2023 - 16:29
Hello,
Reading an IGES from file works as expected:
IGESCAFControl_Reader reader;
reader.ReadFile("some_file.iges");
But is not working when reading from stream (IFSelect_RetFail is returned):
IGESCAFControl_Reader reader;
std::ifstream stream("same_file.iges", std::ifstream::in | std::ifstream::binary);
reader.ReadStream("", stream);
Please note that that there's no issue with the STEPCAFControl_Reader.
Thu, 04/20/2023 - 16:48
Hello, thank you for your resource.
Can you share an IGES files? This problem reproduce only on one file or it is for a lot of files?
Best regards, Dmitrii.
Thu, 04/20/2023 - 17:01
The issue appears on all files that I have so far. Here's attached a simple cube.
I just tested on 7.7.1, same issue.
Thu, 04/20/2023 - 17:22
Apparently,
IGESSelect_WorkLibrary
doesn't implementReadStream()
interface, and I don't see any inIGESFile_Read
/igesread.c
that would be able to handle C++ streams.Thu, 04/20/2023 - 20:42
Thank you for your research.
We will plan this for integration. It will be a part of DE wrapper pathing or that should be better develop as a child of. (0033301: Data Exchange, DE Wrapper - Replacing own XDEDRAW transfer commands to DE - MantisBT (opencascade.org)
Best regards, Dmitrii.