| 40 | // file of BOOST_CLASS_EXPORT_IMPLEMENT() |
| 41 | |
| 42 | ExtTriangleMesh *ExtTriangleMesh::LoadSerialized(const string &fileName) { |
| 43 | SerializationInputFile sif(fileName); |
| 44 | |
| 45 | ExtTriangleMesh *mesh; |
| 46 | sif.GetArchive() >> mesh; |
| 47 | |
| 48 | if (!sif.IsGood()) |
| 49 | throw runtime_error("Error while loading serialized scene: " + fileName); |
| 50 | |
| 51 | return mesh; |
| 52 | } |
| 53 | |
| 54 | void ExtTriangleMesh::SaveSerialized(const string &fileName) const { |
| 55 | SerializationOutputFile sof(fileName); |