| 512 | } |
| 513 | |
| 514 | Expected<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 | |
| 523 | Expected<Mesh> fromASCIIStl( std::istream& in, const MeshLoadSettings& settings /*= {}*/ ) |
| 524 | { |
no test coverage detected