Save OCAF to Stream

Hi,

I'd like to know if there's a way to write the "OCAF File" to a stream. As same as BRepTools::Write(shape,stream).

Thank You in Advance,
Regards

tmacedo29's picture

Hi,

nobody knows or is impossible?

Roman Lygin's picture

There is no high-level API enabling use of streams (though, I agree which is always helpful as a more general case than file name).
What you could possibly do is to dump contents into some temporary file and then feed into your stream.
Hope this helps,
Roman
---
opencascade.blogspot.com - the Open CASCADE blog
www.cadexchanger.com - CAD Exchanger, your 3D data translator

tmacedo29's picture

Hi Roman,

thank you very much for your answer.
It's exactly I'm doing, I just thought could be a better way, as you explained! :)

Thank you again!
Regards