aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2024-04-05 23:44:46 -0400
committersotech117 <michael_foiani@brown.edu>2024-04-05 23:44:46 -0400
commit33da8e058fdb9eec8bccc820b3b79993b505fc61 (patch)
treea821d151ac504362e4af45c34637d91b26708902 /src
parent4603c1672a97753c728e087d85db5f79c8884fe2 (diff)
rerender videos and update readme
Diffstat (limited to 'src')
-rw-r--r--src/arap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arap.cpp b/src/arap.cpp
index 0dcaefd..92ea21d 100644
--- a/src/arap.cpp
+++ b/src/arap.cpp
@@ -17,8 +17,8 @@ ARAP::ARAP() {}
void ARAP::init(Eigen::Vector3f &coeffMin, Eigen::Vector3f &coeffMax)
{
- m_num_iterations = 5;
- m_mesh_path = "meshes/peter.obj";
+ m_num_iterations = 1000;
+ m_mesh_path = "meshes/bunny.obj";
vector<Vector3f> vertices;
vector<Vector3i> triangles;
@@ -46,8 +46,8 @@ void ARAP::move(int vertex, Vector3f targetPosition)
std::vector<Eigen::Vector3f> new_vertices = m_shape.getVertices();
const std::unordered_set<int>& anchors = m_shape.getAnchors();
- std::cout << "anchors size" << anchors.size() << std::endl;
- std::cout << "targetPosition" << targetPosition << std::endl;
+// std::cout << "anchors size" << anchors.size() << std::endl;
+// std::cout << "targetPosition" << targetPosition << std::endl;
// TODO: implement ARAP here
new_vertices[vertex] = targetPosition;