MySources/mesh.hpp

26 lines
537 B
C++
Executable File

#ifndef MESH_HPP
#define MESH_HPP
#include <Eigen/Core>
#include <string>
class Mesh
{
protected:
std::string label;
public:
virtual ~Mesh() = default;
virtual bool load(const std::string &filePath) { return false; }
virtual bool save(const std::string &filePath) { return false; }
std::string getLabel() const;
void setLabel(const std::string &newLabel);
};
inline std::string Mesh::getLabel() const { return label; }
inline void Mesh::setLabel(const std::string &newLabel) { label = newLabel; }
#endif // MESH_HPP