Deltares / Deltares/MeshKernel
Add an API for extracting cross-section information
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 31
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
@veenstrajelmer would like to add an API that exports the geometrical information about cross sections. The use case is shown in this figure

For each crossed face the API should return its index AND the coordinates of the two intersections (green dots). The order must be increased along the line direction (in the figure above the order will be [0,1,5,6,7,11]).
Important notes:
- The face indices are provided in the netCDF file and the Mesh2D parameter in mkernel_mesh2d_set must contain the face nodes information
- To limit the search of the potential crossed faces, the m_facesRTree RTree with a search radius could be used.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the mesh setup around mkernel_mesh2d_set and the m_facesRTree search mentioned in the issue, and inspect how face-node information is read from the netCDF data. The API is done when it returns each crossed face index with its two intersection coordinates, ordered along the input line direction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100