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

Function fromMrmesh

source/MRMesh/MRMeshLoad.cpp:130–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128{
129
130Expected<Mesh> fromMrmesh( const std::filesystem::path& file, const MeshLoadSettings& settings /*= {}*/ )
131{
132 std::ifstream in( file, std::ifstream::binary );
133 if ( !in )
134 return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) );
135
136 return addFileNameInError( fromMrmesh( in, settings ), file );
137}
138
139Expected<Mesh> fromMrmesh( std::istream& in, const MeshLoadSettings& settings /*= {}*/ )
140{

Callers 3

TESTFunction · 0.85
loadFromFile_Method · 0.85
loadMrmeshFunction · 0.85

Calls 11

utf8stringFunction · 0.85
addFileNameInErrorFunction · 0.85
subprogressFunction · 0.85
readByBlocksFunction · 0.85
errorMethod · 0.80
unexpectedFunction · 0.70
readMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68