Wed, 08/26/2020 - 14:27
Forums:
Hello,
I am relatively new to OpenCASCADE and as one of my first steps I want to create a BRep file, save it and then read it again. For this I made the attached cpp file.
In my example I create a tetrahedron and save the TopoDS_Shape with BRepTools::Write as a BRep file. But when I try to read it with BRepTools::Read I get the message "File was not written with this version of the topology". Also I get no results when exploring the shape with TopExp_Explorer.
Does anybody know where my mistake is?
Attachments:
Thu, 08/27/2020 - 17:40
switch this:
to this:
Fri, 11/06/2020 - 17:43
// Read BRep
I think you should change
TopoDS_Face s;
TopoDS_Shape s;