MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / serializeMesh

Function serializeMesh

source/MRMesh/MRSerializer.cpp:580–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580Expected<void> serializeMesh( const Mesh& mesh, const std::filesystem::path& path, const FaceBitSet* selection, const char * serializeFormat )
581{
582 ObjectMesh obj;
583 obj.setSerializeFormat( serializeFormat );
584 obj.setMesh( std::make_shared<Mesh>( mesh ) );
585 if ( selection )
586 obj.selectFaces( *selection );
587 obj.setName( utf8string( path.stem() ) );
588 return serializeObjectTree( obj, path );
589}
590
591} // namespace MR

Callers 1

debugSaveMesh_Function · 0.85

Calls 5

utf8stringFunction · 0.85
serializeObjectTreeFunction · 0.85
setMeshMethod · 0.80
selectFacesMethod · 0.80
setSerializeFormatMethod · 0.45

Tested by

no test coverage detected