| 20 | { |
| 21 | |
| 22 | Expected<PointCloud> fromText( const std::filesystem::path& file, const PointsLoadSettings& settings ) |
| 23 | { |
| 24 | std::ifstream in( file, std::ifstream::binary ); |
| 25 | if ( !in ) |
| 26 | return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) ); |
| 27 | |
| 28 | return addFileNameInError( fromText( in, settings ), file ); |
| 29 | } |
| 30 | |
| 31 | Expected<PointCloud> fromText( std::istream& in, const PointsLoadSettings& settings ) |
| 32 | { |
no test coverage detected