You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
904 B

#ifndef OFFMESH_H
#define OFFMESH_H
#include "Mesh.h"
#include "Facet.h"
#include "Vertex.h"
#include "ExternalLib/glm/vec3.hpp"
#include <string>
/************************************************************************
* OFFMesh is inheriting from Mesh, it's a Mesh loaded from a .off file *
************************************************************************/
class OFFMesh : public Mesh
{
public:
/***** Members *****/
std::string offFilePath; //
std::vector<Facet> facets; // composed of 3 Vec3& from vertices
glm::vec3 barycenter; // mesh's barycenter (used to normalize it, method ditched for now as it's not important)
/***** Methods *****/
void saveToOffFile(std::string); // Save current mesh to an external file
/***** Constructors *****/
OFFMesh(const std::string& offFilePath_);
OFFMesh(){}
};
#endif /* OFFMESH_H */