DiscussionsIssue archiveOther usage issues

Archived discussion

Is it possible an example for saving an object ?

Other usage issuesTue, 04/04/2000 - 17:171 reply

Browse this forum
QuestionAuthor

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

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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,

Commenter-1