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

Function fromBinaryStl

source/MRMesh/MRMeshLoad.cpp:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391Expected<Mesh> fromBinaryStl( const std::filesystem::path & file, const MeshLoadSettings& settings /*= {}*/ )
392{
393 std::ifstream in( file, std::ifstream::binary );
394 if ( !in )
395 return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) );
396
397 return addFileNameInError( fromBinaryStl( in, settings ), file );
398}
399
400Expected<Mesh> fromBinaryStl( std::istream& in, const MeshLoadSettings& settings /*= {}*/ )
401{

Callers 3

TESTFunction · 0.85
loadBinaryStlFunction · 0.85
fromAnyStlFunction · 0.85

Calls 15

utf8stringFunction · 0.85
addFileNameInErrorFunction · 0.85
getStreamSizeFunction · 0.85
minFunction · 0.85
reportProgressFunction · 0.85
telemetryStlHeadFunction · 0.85
vertexMethod · 0.80
addTrianglesMethod · 0.80
numTrisMethod · 0.80
takeTriangulationMethod · 0.80

Tested by 1

TESTFunction · 0.68