How to send a TopoDS_Face to another computer?


I'm writing a network program, and I want to send a TopoDS_Face to another computer,
how can I find out all the necessary information underlying the TopoDS_Face structure,
needed by another computer for reconstrution?

Any help is much appreciated.

Francois Lauzon's picture

You could just use BRepTools::Write to write your face to a stream (a strstream for example), pass the string over your network and read it back using BRepTools::Read. You could also look at the source code of these two methods, you will get what is needed to store and rebuild a shape (including a face).

Good Luck,

w-zhang's picture

Thanks a lot, it works, it's really a help.