diff --git a/polymesh.hpp b/polymesh.hpp index 6a673d1..6d65562 100755 --- a/polymesh.hpp +++ b/polymesh.hpp @@ -1,6 +1,7 @@ #ifndef POLYMESH_HPP #define POLYMESH_HPP #include "mesh.hpp" +#include "utilities.hpp" #include "vcg/complex/complex.h" #include #include @@ -137,7 +138,7 @@ public: // return true; // } - bool save(const std::filesystem::__cxx11::path &meshFilePath = std::filesystem::path()) + bool save(const std::filesystem::__cxx11::path &meshFilePath = std::filesystem::path()) override { if (meshFilePath.extension() == ".obj") { return saveOBJ(meshFilePath); @@ -211,7 +212,7 @@ public: const glm::vec3 desiredColor_glm(desiredColor.value()[0], desiredColor.value()[1], desiredColor.value()[2]); - polyscopeHandle_mesh->setSurfaceColor(glm::normalize(desiredColor_glm)); + polyscopeHandle_mesh->setSurfaceColor(desiredColor_glm); } return polyscopeHandle_mesh;