Refactoring
This commit is contained in:
parent
50045330ae
commit
2c462d9ebf
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef POLYMESH_HPP
|
#ifndef POLYMESH_HPP
|
||||||
#define POLYMESH_HPP
|
#define POLYMESH_HPP
|
||||||
#include "mesh.hpp"
|
#include "mesh.hpp"
|
||||||
|
#include "utilities.hpp"
|
||||||
#include "vcg/complex/complex.h"
|
#include "vcg/complex/complex.h"
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <wrap/io_trimesh/export_obj.h>
|
#include <wrap/io_trimesh/export_obj.h>
|
||||||
|
|
@ -137,7 +138,7 @@ public:
|
||||||
// return true;
|
// 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") {
|
if (meshFilePath.extension() == ".obj") {
|
||||||
return saveOBJ(meshFilePath);
|
return saveOBJ(meshFilePath);
|
||||||
|
|
@ -211,7 +212,7 @@ public:
|
||||||
const glm::vec3 desiredColor_glm(desiredColor.value()[0],
|
const glm::vec3 desiredColor_glm(desiredColor.value()[0],
|
||||||
desiredColor.value()[1],
|
desiredColor.value()[1],
|
||||||
desiredColor.value()[2]);
|
desiredColor.value()[2]);
|
||||||
polyscopeHandle_mesh->setSurfaceColor(glm::normalize(desiredColor_glm));
|
polyscopeHandle_mesh->setSurfaceColor(desiredColor_glm);
|
||||||
}
|
}
|
||||||
|
|
||||||
return polyscopeHandle_mesh;
|
return polyscopeHandle_mesh;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue