Vis: Fix bug with vtk writing of non-square wave surface #2338
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature or improvement description
When a rectangular SeaState grid was used, the connection list in the vtk file was incorrectly generated due to an indexing error. The list would contain points beyond the total number of points in the point list.
For a 5x3 SeaState grid (Nx=3, Ny=2) there are a total of 15 points (0 to 14). The connection list was being incorrectly generated as
The connection list should be
Related issue, if one exists
This should be backported to 3.5.4
Impacted areas of the software
Visualization of rectangular wave surfaces only.
Additional supporting information
Thanks to @luwang00 for finding this.
Test results, if applicable
This is not part of the regression tests (we don't output vtk in regression tests due to data size).