#include <MRMesh/MRPointsLoad.h>
#include <MRMesh/MRPointCloud.h>
#include <MRMesh/MRMeshSave.h>
#include <MRMesh/MRColor.h>
#include <iostream>
{
MR::VertColors colors;
pls.colors = &colors;
if ( !loadRes.has_value() )
{
std::cerr << loadRes.error() << "\n";
return 1;
}
if ( !triangulationRes.has_value() )
{
std::cerr << triangulationRes.error() << "\n";
return 1;
}
if ( loadRes->points.vec_.size() == colors.size() )
ss.colors = &colors;
if ( !saveRes.has_value() )
{
std::cerr << saveRes.error() << "\n";
return 1;
}
return 0;
}
MRMESH_API Expected< PointCloud > fromAnySupportedFormat(const std::filesystem::path &file, const PointsLoadSettings &settings={})
MRMESH_API Expected< void > toAnySupportedFormat(const Mesh &mesh, const std::filesystem::path &file, const SaveSettings &settings={})
MRMESH_API Expected< Mesh > terrainTriangulation(std::vector< Vector3f > points, ProgressCallback cb={})