diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-04-23 17:48:02 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-04-23 17:48:02 -0400 |
commit | 84c0bfa85374e45f06c1b6d7311b80f78670fb7c (patch) | |
tree | ef655f76be13a469bb8de9cad6de56a2ffd294b6 /src/arap.cpp | |
parent | 4dff6a2ca02a6a2e8179ff831b7d2d9fe42e17e8 (diff) |
saving
Diffstat (limited to 'src/arap.cpp')
-rw-r--r-- | src/arap.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/arap.cpp b/src/arap.cpp index 94f2e3d..6cd8999 100644 --- a/src/arap.cpp +++ b/src/arap.cpp @@ -103,10 +103,12 @@ void ARAP::update(double seconds) // Note that the "seconds" parameter represents the amount of time that has passed since // the last update - m_ocean.updateVertexAmplitudes(m_time); - m_shape.setVertices(m_ocean.get_vertices()); + m_ocean.fft_prime(m_time); + m_shape.setVertices_and_Normals(m_ocean.get_vertices(), m_ocean.getNormals()); + // m_shape.setVertices(m_ocean.get_vertices()); - m_time += m_timestep; + + m_time += m_timestep; // std::cout << m_time << std::endl; } |