| 166 | } |
| 167 | |
| 168 | Expected<Mesh> fromOff( const std::filesystem::path& file, const MeshLoadSettings& settings /*= {}*/ ) |
| 169 | { |
| 170 | std::ifstream in( file, std::ifstream::binary ); |
| 171 | if ( !in ) |
| 172 | return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) ); |
| 173 | |
| 174 | return addFileNameInError( fromOff( in, settings ), file ); |
| 175 | } |
| 176 | |
| 177 | Expected<Mesh> fromOff( std::istream& in, const MeshLoadSettings& settings /*= {}*/ ) |
| 178 | { |