MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / SaveSerialized

Method SaveSerialized

src/luxrays/core/exttrianglemesh.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void 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

Callers 1

SaveMethod · 0.45

Calls 2

IsGoodMethod · 0.80
FlushMethod · 0.80

Tested by

no test coverage detected