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

Method LoadSerialized

src/luxrays/core/exttrianglemesh.cpp:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40// file of BOOST_CLASS_EXPORT_IMPLEMENT()
41
42ExtTriangleMesh *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
54void ExtTriangleMesh::SaveSerialized(const string &fileName) const {
55 SerializationOutputFile sof(fileName);

Callers

nothing calls this directly

Calls 1

IsGoodMethod · 0.80

Tested by

no test coverage detected