| 52 | } |
| 53 | |
| 54 | void ExtTriangleMesh::SaveSerialized(const string &fileName) const { |
| 55 | SerializationOutputFile sof(fileName); |
| 56 | |
| 57 | const ExtTriangleMesh *mesh = this; |
| 58 | sof.GetArchive() << mesh; |
| 59 | |
| 60 | if (!sof.IsGood()) |
| 61 | throw runtime_error("Error while saving serialized mesh: " + fileName); |
| 62 | |
| 63 | sof.Flush(); |
| 64 | } |
| 65 | |
| 66 | //------------------------------------------------------------------------------ |
| 67 | // ExtTriangleMesh |