compatibility names More...
Classes | |
| struct | MeshLoader |
| struct | NamedMesh |
| struct | ObjLoadSettings |
| struct | StepLoadSettings |
| STEP-specific mesh load parameters. More... | |
Typedefs | |
| using | MeshFileLoader = Expected<MR::Mesh>( * )( const std::filesystem::path&, const MeshLoadSettings& ) |
| using | MeshStreamLoader = Expected<MR::Mesh>( * )( std::istream&, const MeshLoadSettings& ) |
Functions | |
| Expected< Mesh > | fromCtm (const std::filesystem::path &file, const MeshLoadSettings &settings={}) |
| loads from .ctm file | |
| Expected< Mesh > | fromCtm (std::istream &in, const MeshLoadSettings &settings={}) |
| Expected< Mesh > | fromStep (const std::filesystem::path &path, const MeshLoadSettings &settings={}, const StepLoadSettings &stepSettings={}) |
| load mesh data from STEP file using OpenCASCADE | |
| Expected< Mesh > | fromStep (std::istream &in, const MeshLoadSettings &settings={}, const StepLoadSettings &stepSettings={}) |
| Expected< std::shared_ptr< Object > > | fromSceneStepFile (const std::filesystem::path &path, const MeshLoadSettings &settings={}, const StepLoadSettings &stepSettings={}) |
| load scene from STEP file using OpenCASCADE | |
| Expected< std::shared_ptr< Object > > | fromSceneStepFile (std::istream &in, const MeshLoadSettings &settings={}, const StepLoadSettings &stepSettings={}) |
| Expected< Mesh > | fromMrmesh (const std::filesystem::path &file, const MeshLoadSettings &settings={}) |
| loads mesh from file in internal MeshLib format | |
| Expected< Mesh > | fromMrmesh (std::istream &in, const MeshLoadSettings &settings={}) |
| Expected< Mesh > | fromOff (const std::filesystem::path &file, const MeshLoadSettings &settings={}) |
| loads mesh from file in .OFF format | |
| Expected< Mesh > | fromOff (std::istream &in, const MeshLoadSettings &settings={}) |
| loads mesh from stream in .OFF format | |
| Expected< Mesh > | fromObj (const std::filesystem::path &file, const MeshLoadSettings &settings={}) |
| loads mesh from file in .OBJ format | |
| Expected< Mesh > | fromObj (std::istream &in, const MeshLoadSettings &settings={}) |
| Expected< Mesh > | fromAnyStl (const std::filesystem::path &file, const MeshLoadSettings &settings={}) |
| loads mesh from file in any .STL format: both binary and ASCII | |
| Expected< Mesh > | fromAnyStl (std::istream &in, const MeshLoadSettings &settings={}) |
| Expected< Mesh > | fromBinaryStl (const std::filesystem::path &file, const MeshLoadSettings &settings={}) |
| loads mesh from file in binary .STL format | |
| Expected< Mesh > | fromBinaryStl (std::istream &in, const MeshLoadSettings &settings={}) |
| Expected< Mesh > | fromASCIIStl (const std::filesystem::path &file, const MeshLoadSettings &settings={}) |
| loads mesh from file in textual .STL format | |
| Expected< Mesh > | fromASCIIStl (std::istream &in, const MeshLoadSettings &settings={}) |
| loads mesh from stream in textual .STL format | |
| Expected< Mesh > | fromPly (const std::filesystem::path &file, const MeshLoadSettings &settings={}) |
| loads mesh from file in .PLY format; | |
| Expected< Mesh > | fromPly (std::istream &in, const MeshLoadSettings &settings={}) |
| Expected< Mesh > | fromDxf (const std::filesystem::path &path, const MeshLoadSettings &settings={}) |
| loads mesh from file in .DXF format; | |
| Expected< Mesh > | fromDxf (std::istream &in, const MeshLoadSettings &settings={}) |
| loads mesh from stream in .DXF format; | |
| Expected< Mesh > | fromAnySupportedFormat (const std::filesystem::path &file, const MeshLoadSettings &settings={}) |
| loads mesh from file in the format detected from file extension | |
| Expected< Mesh > | fromAnySupportedFormat (std::istream &in, const std::string &extension, const MeshLoadSettings &settings={}) |
| MR_BIND_IGNORE void | telemetryLogSize (const Mesh &mesh) |
| emits telemetry signal with the integer logarithm of mesh size | |
| Expected< std::vector< NamedMesh > > | fromSceneObjFile (const std::filesystem::path &file, bool combineAllObjects, const ObjLoadSettings &settings={}) |
| loads meshes from .obj file | |
| Expected< std::vector< NamedMesh > > | fromSceneObjFile (std::istream &in, bool combineAllObjects, const std::filesystem::path &dir, const ObjLoadSettings &settings={}) |
| Expected< std::vector< NamedMesh > > | fromSceneObjFile (const char *data, size_t size, bool combineAllObjects, const std::filesystem::path &dir, const ObjLoadSettings &settings={}) |
| Expected< LoadedObjects > | loadObjectFromObj (const std::filesystem::path &file, const ProgressCallback &cb={}) |
| reads all objects from .OBJ file | |
compatibility names
| Expected< Mesh > MR::MeshLoad::fromAnyStl | ( | const std::filesystem::path & | file, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from file in any .STL format: both binary and ASCII
| Expected< Mesh > MR::MeshLoad::fromAnyStl | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from stream in any .STL format: both binary and ASCII; important on Windows: in stream must be open in binary mode
| Expected< Mesh > MR::MeshLoad::fromAnySupportedFormat | ( | const std::filesystem::path & | file, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from file in the format detected from file extension
| Expected< Mesh > MR::MeshLoad::fromAnySupportedFormat | ( | std::istream & | in, |
| const std::string & | extension, | ||
| const MeshLoadSettings & | settings = {} ) |
loads mesh from stream in the format detected from given extension-string (*.ext); important on Windows: in stream must be open in binary mode
| Expected< Mesh > MR::MeshLoad::fromASCIIStl | ( | const std::filesystem::path & | file, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from file in textual .STL format
| Expected< Mesh > MR::MeshLoad::fromASCIIStl | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from stream in textual .STL format
| Expected< Mesh > MR::MeshLoad::fromBinaryStl | ( | const std::filesystem::path & | file, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from file in binary .STL format
| Expected< Mesh > MR::MeshLoad::fromBinaryStl | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from stream in binary .STL format; important on Windows: in stream must be open in binary mode
| Expected< Mesh > MR::MeshLoad::fromDxf | ( | const std::filesystem::path & | path, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from file in .DXF format;
| Expected< Mesh > MR::MeshLoad::fromDxf | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from stream in .DXF format;
| Expected< Mesh > MR::MeshLoad::fromMrmesh | ( | const std::filesystem::path & | file, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from file in internal MeshLib format
| Expected< Mesh > MR::MeshLoad::fromMrmesh | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from stream in internal MeshLib format; important on Windows: in stream must be open in binary mode
| Expected< Mesh > MR::MeshLoad::fromObj | ( | const std::filesystem::path & | file, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from file in .OBJ format
| Expected< Mesh > MR::MeshLoad::fromObj | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from stream in .OBJ format; important on Windows: in stream must be open in binary mode
| Expected< Mesh > MR::MeshLoad::fromOff | ( | const std::filesystem::path & | file, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from file in .OFF format
| Expected< Mesh > MR::MeshLoad::fromOff | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from stream in .OFF format
| Expected< Mesh > MR::MeshLoad::fromPly | ( | const std::filesystem::path & | file, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from file in .PLY format;
| Expected< Mesh > MR::MeshLoad::fromPly | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {} ) |
loads mesh from stream in .PLY format; important on Windows: in stream must be open in binary mode
| Expected< std::shared_ptr< Object > > MR::MeshLoad::fromSceneStepFile | ( | const std::filesystem::path & | path, |
| const MeshLoadSettings & | settings = {}, | ||
| const StepLoadSettings & | stepSettings = {} ) |
load scene from STEP file using OpenCASCADE
| Expected< std::shared_ptr< Object > > MR::MeshLoad::fromSceneStepFile | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {}, | ||
| const StepLoadSettings & | stepSettings = {} ) |
| Expected< Mesh > MR::MeshLoad::fromStep | ( | const std::filesystem::path & | path, |
| const MeshLoadSettings & | settings = {}, | ||
| const StepLoadSettings & | stepSettings = {} ) |
load mesh data from STEP file using OpenCASCADE
| Expected< Mesh > MR::MeshLoad::fromStep | ( | std::istream & | in, |
| const MeshLoadSettings & | settings = {}, | ||
| const StepLoadSettings & | stepSettings = {} ) |
| MR_BIND_IGNORE void MR::MeshLoad::telemetryLogSize | ( | const Mesh & | mesh | ) |
emits telemetry signal with the integer logarithm of mesh size