Deltares / Deltares/MeshKernel

Feature request: clipping mesh by (Multi)Polygon with holes

Open
#113 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
31
Forks
12
PR merge metrics
No merged PRs in 30d

Description

A GeometryList can contain a representation of a MultiPolygon or Polygon with holes. The function mkernel_mesh2d_delete now only seems to work for a Polygon without holes (a GeometryList with -999.0 or -998.0 is not processed). It would be convenient if for example a rectilinear mesh can be clipped by a Multipolygon. Now problems arise when generating a mesh with islands, or even worse, things like islands with lakes.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing mkernel_mesh2d_delete and how it consumes GeometryList representations. Verify the current handling of -999.0 and -998.0, then define completion against clipping meshes for Multipolygons and Polygons with holes, including islands and lakes.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.