For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Is it possible an example for saving an object ?

Omar Msaaf's picture
Forums: 

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

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.