| 32 | #include <BRepBuilderAPI_Transform.hxx> |
| 33 | |
| 34 | bool OpenCascadeBasedSerializer::ready() { |
| 35 | std::ofstream test_file(IfcUtil::path::from_utf8(out_filename).c_str(), std::ios_base::binary); |
| 36 | bool succeeded = test_file.is_open(); |
| 37 | test_file.close(); |
| 38 | IfcUtil::path::delete_file(out_filename); |
| 39 | return succeeded; |
| 40 | } |
| 41 | |
| 42 | void OpenCascadeBasedSerializer::write(const IfcGeom::BRepElement* o) { |
| 43 | auto itm = o->geometry().as_compound(); |