I can write and read a TopoDS_Shape to a file no problem. But I want to get a string representation ultimately to my C# parent app, here I will save to disk along with application specific data.
So I try to pass a stream of some sort to BRepTools::Dump (also tried BRepTools::Read) but no matter what I try it either crashing or is empty.
How do I pass to the Standard_OStream& S argument a stream that I can get a std::string out or similar?
My C++ is very basic and I am going round in circles!