| 161 | } |
| 162 | |
| 163 | Expected<PointCloud> fromPts( const std::filesystem::path& file, const PointsLoadSettings& settings ) |
| 164 | { |
| 165 | std::ifstream in( file, std::ifstream::binary ); |
| 166 | if ( !in ) |
| 167 | return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) ); |
| 168 | |
| 169 | return addFileNameInError( fromPts( in, settings ), file ); |
| 170 | } |
| 171 | |
| 172 | Expected<PointCloud> fromPts( std::istream& in, const PointsLoadSettings& settings ) |
| 173 | { |
nothing calls this directly
no test coverage detected