how can i use a OCAF servives for a mesh (without OMF)?

Hi ;

I have created a mesh from a BREP file, then I made some operation on this mesh. Now I want undo/Redo some operations and then save mesh data in a file.

how can i use a OCAF servives for a mesh (without OMF)?

Thanks

soaroc's picture

Hi:
You said that you had created a mesh from a BREP file , Can you tell me how you do it ?
Thanks!

Bearloga's picture

To Jean Vistra:
To use OCAF for operate mesh data you have two possibilities:
- use standard attributes (like TDataStd_Real, RealArray etc.) and organize data to place them on labels of the tree (map the mesh data on the tree). This is not performant, but simple enough.
- create your own single attribute for the whole mesh (derive from TDF_Attribute). This way is more complex but performance will be much better.

To soaroc:
Use BRepMesh services to create a mesh from a shape.