-
Notifications
You must be signed in to change notification settings - Fork 10
Gridedit 2042 Compute illegal cells polygon when constructing mesh2d with face-node connectivity #502
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
base: master
Are you sure you want to change the base?
Conversation
… with face-node information
87723bf to
ebbcc5d
Compare
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.
Pull Request Overview
This PR implements the computation of illegal cell polygons when constructing a Mesh2D with face-node connectivity. The main change updates the mesh administration logic to identify and store polygons representing holes or invalid cells in the mesh during construction.
Key changes:
- Modified
ComputeInnerBoundaryPolygonsto identify illegal cells by checking if face mass centers lie within boundary polygons - Updated
IsPointInPolygonNodesfunction signatures to acceptstd::span<const Point>instead ofstd::vector<Point>for better performance and flexibility - Enhanced
BoundingBoxclass with new constructors and methods supportingstd::span
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| libs/MeshKernel/tests/src/MeshRefinementTests.cpp | Added new test case verifying illegal cell polygon computation and fixed loop variable in existing test |
| libs/MeshKernel/src/Mesh2D.cpp | Modified boundary walking algorithm to detect and store illegal cells based on face mass center containment |
| libs/MeshKernel/src/Operations.cpp | Changed polygon node parameters from std::vector to std::span and added required includes |
| libs/MeshKernel/include/MeshKernel/Operations.hpp | Updated function signatures to use std::span<const Point> |
| libs/MeshKernel/include/MeshKernel/Mesh2D.hpp | Added illegalCells parameter to WalkMultiBoundaryFromNode method |
| libs/MeshKernel/include/MeshKernel/BoundingBox.hpp | Added std::span support with new constructors, reset methods, and non-const accessor overloads |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot typo fix. Co-authored-by: Copilot <[email protected]>
No description provided.