Skip to content

Gridedit 2292 eliminate internal element boundaries from invalid cells polygons#536

Open
BillSenior wants to merge 14 commits into
masterfrom
feature/GRIDEDIT-2292_eliminate_internal_element_boundaries
Open

Gridedit 2292 eliminate internal element boundaries from invalid cells polygons#536
BillSenior wants to merge 14 commits into
masterfrom
feature/GRIDEDIT-2292_eliminate_internal_element_boundaries

Conversation

@BillSenior

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve how Mesh2D “invalid cell / inner boundary” polygons are maintained after mesh face deletions (to eliminate internal boundaries from the resulting polygon sets), and removes some leftover diagnostic output in VTK export.

Changes:

  • Remove unsavedElements debug counting/printing from SaveVtk helpers.
  • Extend Mesh2D::ComputeBoundaryPolygons with an option to skip Administrate().
  • Add Mesh2D::ReconstructInvalidCellsPolygon() and invoke it from UpdateFaceInformation().

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
libs/MeshKernel/src/Utilities/Utilities.cpp Removes element-count debug bookkeeping/std::cout output from VTK export.
libs/MeshKernel/src/Mesh2D.cpp Adds optional administration in boundary polygon computation; introduces and calls invalid-cell polygon reconstruction after face updates.
libs/MeshKernel/include/MeshKernel/Mesh2D.hpp Updates public API signature for ComputeBoundaryPolygons, adds declaration/docs for ReconstructInvalidCellsPolygon.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread libs/MeshKernel/src/Mesh2D.cpp Outdated
Comment thread libs/MeshKernel/src/Mesh2D.cpp Outdated
Comment thread libs/MeshKernel/include/MeshKernel/Mesh2D.hpp Outdated
Comment thread libs/MeshKernel/src/Mesh2D.cpp Outdated
Comment thread libs/MeshKernel/include/MeshKernel/Mesh2D.hpp Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Comment on lines 1579 to 1583
if (meshBoundaryPolygon.size() > numNodesFirstTail)
{
std::reverse(meshBoundaryPolygon.begin() + numNodesFirstTail, meshBoundaryPolygon.end());
meshBoundaryPolygon.push_back(meshBoundaryPolygon.front());
}
Comment on lines +2211 to +2215
if (polygons.GetNumPolygons() <= 1)
{
// There are no interior boundary polygons
return;
}
Comment thread libs/MeshKernel/include/MeshKernel/Mesh2D.hpp
Comment thread libs/MeshKernel/include/MeshKernel/Mesh2D.hpp
Comment thread cmake/compiler_config.cmake
if (polygons.GetNumPolygons() <= 1)
{
// There are no interior boundary polygons
return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't m_invalidCellPolygons be cleared?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants