summaryrefslogtreecommitdiff
path: root/src/graphics/shape.h
diff options
context:
space:
mode:
authorSebastian Park <SebPark03@gmail.com>2024-04-23 18:03:00 -0400
committerSebastian Park <SebPark03@gmail.com>2024-04-23 18:03:00 -0400
commit5c8c2f86376050787f2960656ca5865fcf87c020 (patch)
tree19fa985f81099256e67184496179ebb2200964b5 /src/graphics/shape.h
parentc1e29bb93fcc24bbbdadcefede3fc9cddc0df48c (diff)
parent84c0bfa85374e45f06c1b6d7311b80f78670fb7c (diff)
Merge remote-tracking branch 'origin/jess_working_norms'
Diffstat (limited to 'src/graphics/shape.h')
-rw-r--r--src/graphics/shape.h8
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);
};