MeshLib C++ Docs
Loading...
Searching...
No Matches
IO Formats Registry

Classes

struct  MR::MeshLoad::MeshLoader

Macros

#define MR_ADD_MESH_LOADER(filter, loader)
 Register filter with loader function.
#define MR_ADD_MESH_LOADER_WITH_PRIORITY(filter, loader, priority)

Typedefs

using MR::MeshLoad::MeshFileLoader = Expected<MR::Mesh>( * )( const std::filesystem::path&, const MeshLoadSettings& )
using MR::MeshLoad::MeshStreamLoader = Expected<MR::Mesh>( * )( std::istream&, const MeshLoadSettings& )

Detailed Description

Macro Definition Documentation

◆ MR_ADD_MESH_LOADER

#define MR_ADD_MESH_LOADER ( filter,
loader )

#include <MRMesh/MRIOFormatsRegistry.h>

Value:
MR_ON_INIT { using namespace MR::MeshLoad; setMeshLoader( filter, { static_cast<MeshFileLoader>( loader ), static_cast<MeshStreamLoader>( loader ) } ); };
#define MR_ON_INIT
Definition MROnInit.h:5
Expected< MR::Mesh >(*)(std::istream &, const MeshLoadSettings &) MeshStreamLoader
Definition MRIOFormatsRegistry.h:139
Expected< MR::Mesh >(*)(const std::filesystem::path &, const MeshLoadSettings &) MeshFileLoader
Definition MRIOFormatsRegistry.h:138
compatibility names
Definition MRCtm.h:21

Register filter with loader function.

loader function signature: Expected<Mesh> fromFormat( const std::filesystem::path& path, const MeshLoadSettings& settings ); example: MR_ADD_MESH_LOADER( IOFilter("Name of filter (.ext)","*.ext"), fromFormat)

◆ MR_ADD_MESH_LOADER_WITH_PRIORITY

#define MR_ADD_MESH_LOADER_WITH_PRIORITY ( filter,
loader,
priority )

#include <MRMesh/MRIOFormatsRegistry.h>

Value:
MR_ON_INIT { using namespace MR::MeshLoad; setMeshLoader( filter, { static_cast<MeshFileLoader>( loader ), static_cast<MeshStreamLoader>( loader ) }, priority ); };

Typedef Documentation

◆ MeshFileLoader

using MR::MeshLoad::MeshFileLoader = Expected<MR::Mesh>( * )( const std::filesystem::path&, const MeshLoadSettings& )

◆ MeshStreamLoader