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

Function fromASCIIStl

source/MRMesh/MRMeshLoad.cpp:514–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514Expected<Mesh> fromASCIIStl( const std::filesystem::path& file, const MeshLoadSettings& settings /*= {}*/ )
515{
516 std::ifstream in( file, std::ifstream::binary );
517 if ( !in )
518 return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) );
519
520 return addFileNameInError( fromASCIIStl( in, settings ), file );
521}
522
523Expected<Mesh> fromASCIIStl( std::istream& in, const MeshLoadSettings& settings /*= {}*/ )
524{

Callers 2

loadASCIIStlFunction · 0.85
fromAnyStlFunction · 0.85

Calls 15

utf8stringFunction · 0.85
addFileNameInErrorFunction · 0.85
readCharBufferFunction · 0.85
hasBomFunction · 0.85
splitByLinesFunction · 0.85
reportProgressFunction · 0.85
BitSetParallelForAllFunction · 0.85
trimLeftFunction · 0.85
subprogressFunction · 0.85
minFunction · 0.85
parseTextCoordinateFunction · 0.85

Tested by

no test coverage detected