| 128 | { |
| 129 | |
| 130 | Expected<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 | |
| 139 | Expected<Mesh> fromMrmesh( std::istream& in, const MeshLoadSettings& settings /*= {}*/ ) |
| 140 | { |