+void BrepGeometry::writeShapeFile(const std::string& fileName)
+{
+ bool res = BRepTools::Write(m_shape, fileName.c_str());
+ if (!res)
+ throw XAO_Exception(MsgBuilder() << "Cannot write BRep file: " << fileName);
+}
+
+void BrepGeometry::readShapeFile(const std::string& fileName)
+ {
+ BRep_Builder builder;
+ bool res = BRepTools::Read(m_shape, fileName.c_str(), builder);
+ if (!res)
+ throw XAO_Exception(MsgBuilder() << "Cannot read BRep file: " << fileName);
+
+ initIds();
+}
+