| 389 | } |
| 390 | |
| 391 | Expected<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 | |
| 400 | Expected<Mesh> fromBinaryStl( std::istream& in, const MeshLoadSettings& settings /*= {}*/ ) |
| 401 | { |