Saving My Project

Hi, I want to save my current scene to a file. Is there a file format that occ supports or should I export geometry using IGES file format? I have also some extra informations (for vertices, edges etc.) to be saved. How can I handle this information? OCC supports extended attributes to be saved?
Thanks for any suggestions

Bearloga's picture

Take a look at BRepTools::Write.

Denis Teissandier's picture

BRepTools::Write is a good solution to save geometrical data in a native occ format.

If you want to save geometrical data with visualisation attributes (color, material textures ...) you can use an OCAF document. The save and open procedures are very easy to use.