MeshLib C++ Docs
Loading...
Searching...
No Matches
MRDraco.h File Reference
#include "config.h"
#include "exports.h"
#include <MRMesh/MRExpected.h>
#include <MRMesh/MRMeshLoadSettings.h>
#include <MRMesh/MRPointsLoadSettings.h>
#include <MRMesh/MRSaveSettings.h>
#include <filesystem>

Go to the source code of this file.

Classes

struct  MR::DracoSaveOptions
 options for saving in Google Draco format More...

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
namespace  MR::MeshLoad
 compatibility names
namespace  MR::MeshSave
namespace  MR::PointsLoad
namespace  MR::PointsSave

Functions

Expected< Mesh > MR::MeshLoad::fromDrc (const std::filesystem::path &file, const MeshLoadSettings &settings={})
Expected< Mesh > MR::MeshLoad::fromDrc (std::istream &in, const MeshLoadSettings &settings={})
Expected< void > MR::MeshSave::toDrc (const Mesh &mesh, const std::filesystem::path &file, const DracoSaveOptions &options)
 saves in Google Draco .drc file
Expected< void > MR::MeshSave::toDrc (const Mesh &mesh, std::ostream &out, const DracoSaveOptions &options)
Expected< void > MR::MeshSave::toDrc (const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
Expected< void > MR::MeshSave::toDrc (const Mesh &mesh, std::ostream &out, const SaveSettings &settings={})
Expected< PointCloud > MR::PointsLoad::fromDrc (const std::filesystem::path &file, const PointsLoadSettings &settings={})
 loads from Google Draco .drc file; if the file contains a mesh, then its points are returned without triangles and without merging
Expected< PointCloud > MR::PointsLoad::fromDrc (std::istream &in, const PointsLoadSettings &settings={})
Expected< void > MR::PointsSave::toDrc (const PointCloud &points, const std::filesystem::path &file, const DracoSaveOptions &options)
 saves in Google Draco .drc file
Expected< void > MR::PointsSave::toDrc (const PointCloud &points, std::ostream &out, const DracoSaveOptions &options)
Expected< void > MR::PointsSave::toDrc (const PointCloud &points, const std::filesystem::path &file, const SaveSettings &settings={})
Expected< void > MR::PointsSave::toDrc (const PointCloud &points, std::ostream &out, const SaveSettings &settings={})