Saving mechanism in oc

I'm creating a prism using the API BRepPrimAPI_MakePrism() which returns me the resulting shape of type TopoDS_Shape.
Can any body suggest me the relevant APIs or sample codepiece to save it on disk ?

T.R.Shashwath's picture

Hi,
Take a look at BRepTools::Write.

BRepTools::Write(myShape, "myFile.brep");