diff options
author | Sebastian Park <SebPark03@gmail.com> | 2024-04-23 18:03:00 -0400 |
---|---|---|
committer | Sebastian Park <SebPark03@gmail.com> | 2024-04-23 18:03:00 -0400 |
commit | 5c8c2f86376050787f2960656ca5865fcf87c020 (patch) | |
tree | 19fa985f81099256e67184496179ebb2200964b5 /src/arap.cpp | |
parent | c1e29bb93fcc24bbbdadcefede3fc9cddc0df48c (diff) | |
parent | 84c0bfa85374e45f06c1b6d7311b80f78670fb7c (diff) |
Merge remote-tracking branch 'origin/jess_working_norms'
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; } |