-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/gridedit 934 undo for curvilinear #318
Feature/gridedit 934 undo for curvilinear #318
Conversation
…ases rather than base class
…moved during the administration
Changed name of function from GetNumActiveNodes/Edges to GetNumValidNodes/Edges Fixed windows compilation error.
Added extra members to Mesh1/2D, for the number of valid nodes and edges
…re set to invalid
Updated error message when index is out of range.
…fo in failure in TC
Getting unit tests for undo in curvilinear grids working
…ithub.com/Deltares/MeshKernel into feature/GRIDEDIT-934_undo_for_curvilinear
libs/MeshKernel/include/MeshKernel/CurvilinearGrid/AddGridLineUndoAction.hpp
Outdated
Show resolved
Hide resolved
libs/MeshKernel/include/MeshKernel/CurvilinearGrid/CurvilinearGrid.hpp
Outdated
Show resolved
Hide resolved
libs/MeshKernel/include/MeshKernel/CurvilinearGrid/CurvilinearGrid.hpp
Outdated
Show resolved
Hide resolved
libs/MeshKernel/include/MeshKernel/CurvilinearGrid/CurvilinearGrid.hpp
Outdated
Show resolved
Hide resolved
libs/MeshKernel/src/CurvilinearGrid/CurvilinearGridLineShift.cpp
Outdated
Show resolved
Hide resolved
libs/MeshKernel/src/CurvilinearGrid/CurvilinearGridRefinementUndoAction.cpp
Outdated
Show resolved
Hide resolved
libs/MeshKernel/src/CurvilinearGrid/ResetCurvilinearNodeAction.cpp
Outdated
Show resolved
Hide resolved
grid->GetNode(ny, i).y = grid->GetNode(ny - 1, i).y + deltaY; | ||
} | ||
|
||
// // For left but bottom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
|
||
grid->ComputeGridNodeTypes(); | ||
|
||
// undoActions.Undo(); // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
Fixed bug when doing undo for insert face
…ithub.com/Deltares/MeshKernel into feature/GRIDEDIT-934_undo_for_curvilinear
#pragma once | ||
|
||
#include <memory> | ||
#include <utility> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utility and vector not needed
void CommitAction(const ResetCurvilinearNodeAction& undoAction); | ||
|
||
/// @brief Prints the node and edge connectivity to the output stream in a form that can be read by Octave/Matlab | ||
void printGraph(std::ostream& out = std::cout); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function should be removed
@@ -53,6 +53,20 @@ namespace meshkernel | |||
/// @brief Overloads equality with another CurvilinearGridNodeIndices | |||
bool operator==(const CurvilinearGridNodeIndices& rhs) const = default; | |||
|
|||
CurvilinearGridNodeIndices& operator+=(const CurvilinearGridNodeIndices& val) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would make sense to check if the addition or subtraction goes out of bounds here?
UInt FullNumN() const { return static_cast<UInt>(m_gridNodes.rows()); } | ||
|
||
/// @brief Restore grid to state before grid line was added | ||
void RestoreAction(const AddGridLineUndoAction& undoAction); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create an UndoAction folder where to put all actions, like you did for mesh
No description provided.