MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fromLas

Function fromLas

source/MRIOExtras/MRLas.cpp:398–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396{
397
398Expected<PointCloud> fromLas( const std::filesystem::path& file, const PointsLoadSettings& settings )
399{
400 try
401 {
402 lazperf::reader::named_file reader( utf8string( file ) );
403 return process( reader, settings );
404 }
405 catch ( const std::exception& exc )
406 {
407 return unexpected( fmt::format( "Failed to read file: {}", exc.what() ) );
408 }
409}
410
411Expected<PointCloud> fromLas( std::istream& in, const PointsLoadSettings& settings )
412{

Callers

nothing calls this directly

Calls 3

utf8stringFunction · 0.85
processFunction · 0.85
unexpectedFunction · 0.50

Tested by

no test coverage detected