4#ifndef MRIOEXTRAS_NO_DRACO
Expected< void > toDrc(const PointCloud &points, const std::filesystem::path &file, const DracoSaveOptions &options)
saves in Google Draco .drc file
Expected< PointCloud > 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 ...
tl::expected< T, E > Expected
Definition MRExpected.h:31
Expected< void > toDrc(const Mesh &mesh, const std::filesystem::path &file, const DracoSaveOptions &options)
saves in Google Draco .drc file
int positionQuantizationBits
Definition MRDraco.h:27
int compressionLevel
0 - fastest encoding and decoding but the worst compression, 10 - the best compression
Definition MRDraco.h:24
Expected< Mesh > fromDrc(const std::filesystem::path &file, const MeshLoadSettings &settings={})
compatibility names
Definition MRCtm.h:21
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
options for saving in Google Draco format
Definition MRDraco.h:22
setting for mesh loading from external format, and locations of optional output data
Definition MRMeshLoadSettings.h:14
Definition MRPointCloud.h:17
structure with settings and side output parameters for loading point cloud
Definition MRPointsLoadSettings.h:13
determines how to save points/lines/mesh
Definition MRSaveSettings.h:20