This commit is contained in:
iasonmanolas 2021-06-12 15:04:06 +03:00
commit e5ba83c0c8
3 changed files with 8 additions and 4 deletions

View File

@ -6,6 +6,12 @@
#include <vcg/complex/complex.h> #include <vcg/complex/complex.h>
#include <vector> #include <vector>
#include <wrap/io_trimesh/import.h> #include <wrap/io_trimesh/import.h>
#include <optional>
#include <array>
#ifdef POLYSCOPE_DEFINED
#include <polyscope/curve_network.h>
#endif
using EdgeIndex = size_t; using EdgeIndex = size_t;

View File

@ -308,10 +308,7 @@ public:
.string(); .string();
returnValue = pMesh->save(meshFilename); returnValue = pMesh->save(meshFilename);
nlohmann::json json; nlohmann::json json;
json[jsonLabels.meshFilename] json[jsonLabels.meshFilename]= std::filesystem::relative(std::filesystem::path(meshFilename),std::filesystem::path(jsonFilename).parent_path()).string();
= std::filesystem::relative(std::filesystem::path(meshFilename),
std::filesystem::path(
std::filesystem::path(jsonFilename).parent_path()));
json[jsonLabels.meshLabel] json[jsonLabels.meshLabel]
= pMesh->getLabel(); // FIXME: This should be exported using nanoply but = pMesh->getLabel(); // FIXME: This should be exported using nanoply but
// nanoply might not be able to write a string(??) // nanoply might not be able to write a string(??)

View File

@ -2,6 +2,7 @@
#define VCGTRIMESH_HPP #define VCGTRIMESH_HPP
#include "mesh.hpp" #include "mesh.hpp"
#include <vcg/complex/complex.h> #include <vcg/complex/complex.h>
#include <optional>
#ifdef POLYSCOPE_DEFINED #ifdef POLYSCOPE_DEFINED
#include <polyscope/surface_mesh.h> #include <polyscope/surface_mesh.h>