diff options
Diffstat (limited to 'src/graphics/shape.h')
-rw-r--r-- | src/graphics/shape.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/graphics/shape.h b/src/graphics/shape.h index 4a3632c..165fa96 100644 --- a/src/graphics/shape.h +++ b/src/graphics/shape.h @@ -30,6 +30,8 @@ public: void init(const std::vector<Eigen::Vector3f> &vertices, const std::vector<Eigen::Vector3i> &triangles); void setVertices(const std::vector<Eigen::Vector3f> &vertices); + void setVertices_and_Normals(const std::vector<Eigen::Vector3f> &vertices, const std::vector<Eigen::Vector3f> &normals); + void setModelMatrix(const Eigen::Affine3f &model); @@ -78,4 +80,10 @@ private: std::vector<Eigen::Vector3f>& verts, std::vector<Eigen::Vector3f>& normals, std::vector<Eigen::Vector3f>& colors); + void updateMesh_withNormals(const std::vector<Eigen::Vector3i> &faces, + const std::vector<Eigen::Vector3f> &vertices, + const std::vector<Eigen::Vector3f> &calculated_norms, + std::vector<Eigen::Vector3f>& verts, + std::vector<Eigen::Vector3f>& normals, + std::vector<Eigen::Vector3f>& colors); }; |