Is it possible an example for saving an object ?

I am trying to save a File, but i just don't understand the part with The schema used to read and write operations. I read the HTML documentation, but i don't have a clue on how to implement it. Could you please give an example for saving a Box for example ? Best Regards Thank you

Douglas McCarthy's picture

Hello,

If you're not using the services of OCAF, the simplest thing is to write your transient box to a file in the Open CASCADE .brep format using BRepTools::Write. Naturally, there is a corresponding Read method.

The doc for this is in the reference manual Modeling Data, Topology, Topological Data Structure. You want the package methods for BRepTools.

Hope this helps,

Douglas