MeshLib Documentation
Loading...
Searching...
No Matches
MR::PointsLoad Namespace Reference

Classes

struct  E57LoadSettings
 
struct  NamedCloud
 loads scene from e57 file More...
 
struct  PointsLoader
 

Typedefs

using PointsFileLoader = Expected<PointCloud>( * )( const std::filesystem::path&, const PointsLoadSettings& )
 
using PointsStreamLoader = Expected<PointCloud>( * )( std::istream&, const PointsLoadSettings& )
 

Functions

MRIOEXTRAS_API Expected< PointCloudfromCtm (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from .ctm file
 
MRIOEXTRAS_API Expected< PointCloudfromCtm (std::istream &in, const PointsLoadSettings &settings={})
 
MRIOEXTRAS_API Expected< std::vector< NamedCloud > > fromSceneE57File (const std::filesystem::path &file, const E57LoadSettings &settings={})
 
MRIOEXTRAS_API Expected< PointCloudfromE57 (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from .e57 file
 
MRIOEXTRAS_API Expected< PointCloudfromE57 (std::istream &in, const PointsLoadSettings &settings={})
 
MRIOEXTRAS_API Expected< std::vector< std::shared_ptr< Object > > > loadObjectFromE57 (const std::filesystem::path &path, std::string *warnings=nullptr, ProgressCallback cb={})
 
MRIOEXTRAS_API Expected< PointCloudfromLas (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from .las file
 
MRIOEXTRAS_API Expected< PointCloudfromLas (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudfromText (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from .csv, .asc, .xyz, .txt file
 
MRMESH_API Expected< PointCloudfromText (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudfromPts (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from Laser scan plain data format (.pts) file
 
MRMESH_API Expected< PointCloudfromPts (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudfromPly (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from .ply file
 
MRMESH_API Expected< PointCloudfromPly (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudfromObj (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from .obj file
 
MRMESH_API Expected< PointCloudfromObj (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudfromDxf (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudfromDxf (std::istream &in, const PointsLoadSettings &settings={})
 
MRMESH_API Expected< PointCloudfromAnySupportedFormat (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 detects the format from file extension and loads points from it
 
MRMESH_API Expected< PointCloudfromAnySupportedFormat (std::istream &in, const std::string &extension, const PointsLoadSettings &settings={})
 extension in *.ext format
 

Typedef Documentation

◆ PointsFileLoader

using MR::PointsLoad::PointsFileLoader = Expected<PointCloud>( * )( const std::filesystem::path&, const PointsLoadSettings& )

◆ PointsStreamLoader

Function Documentation

◆ fromCtm() [1/2]

MRIOEXTRAS_API Expected< PointCloud > MR::PointsLoad::fromCtm ( const std::filesystem::path & file,
const PointsLoadSettings & settings = {} )

loads from .ctm file

◆ fromCtm() [2/2]

MRIOEXTRAS_API Expected< PointCloud > MR::PointsLoad::fromCtm ( std::istream & in,
const PointsLoadSettings & settings = {} )

◆ fromE57() [1/2]

MRIOEXTRAS_API Expected< PointCloud > MR::PointsLoad::fromE57 ( const std::filesystem::path & file,
const PointsLoadSettings & settings = {} )

loads from .e57 file

◆ fromE57() [2/2]

MRIOEXTRAS_API Expected< PointCloud > MR::PointsLoad::fromE57 ( std::istream & in,
const PointsLoadSettings & settings = {} )

◆ fromLas() [1/2]

MRIOEXTRAS_API Expected< PointCloud > MR::PointsLoad::fromLas ( const std::filesystem::path & file,
const PointsLoadSettings & settings = {} )

loads from .las file

◆ fromLas() [2/2]

MRIOEXTRAS_API Expected< PointCloud > MR::PointsLoad::fromLas ( std::istream & in,
const PointsLoadSettings & settings = {} )

◆ fromSceneE57File()

MRIOEXTRAS_API Expected< std::vector< NamedCloud > > MR::PointsLoad::fromSceneE57File ( const std::filesystem::path & file,
const E57LoadSettings & settings = {} )

◆ loadObjectFromE57()

MRIOEXTRAS_API Expected< std::vector< std::shared_ptr< Object > > > MR::PointsLoad::loadObjectFromE57 ( const std::filesystem::path & path,
std::string * warnings = nullptr,
ProgressCallback cb = {} )