diff --git a/edgemesh.hpp b/edgemesh.hpp index c373add..33ec3e7 100755 --- a/edgemesh.hpp +++ b/edgemesh.hpp @@ -6,6 +6,12 @@ #include #include #include +#include +#include + +#ifdef POLYSCOPE_DEFINED +#include +#endif using EdgeIndex = size_t; diff --git a/simulation_structs.hpp b/simulation_structs.hpp index 4141aa4..35bb693 100755 --- a/simulation_structs.hpp +++ b/simulation_structs.hpp @@ -297,10 +297,7 @@ public: .string(); returnValue = pMesh->save(meshFilename); nlohmann::json json; - json[jsonLabels.meshFilename] - = std::filesystem::relative(std::filesystem::path(meshFilename), - std::filesystem::path( - std::filesystem::path(jsonFilename).parent_path())); +json[jsonLabels.meshFilename]= std::filesystem::relative(std::filesystem::path(meshFilename),std::filesystem::path(jsonFilename).parent_path()).string(); json[jsonLabels.meshLabel] = pMesh->getLabel(); // FIXME: This should be exported using nanoply but // nanoply might not be able to write a string(??) diff --git a/vcgtrimesh.hpp b/vcgtrimesh.hpp index 02a180e..60d8f9e 100755 --- a/vcgtrimesh.hpp +++ b/vcgtrimesh.hpp @@ -2,6 +2,7 @@ #define VCGTRIMESH_HPP #include "mesh.hpp" #include +#include #ifdef POLYSCOPE_DEFINED #include