Skip to content
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

Add API to get mesh edge lengths (and others) #152

Closed
veenstrajelmer opened this issue Feb 2, 2024 · 2 comments · Fixed by #187
Closed

Add API to get mesh edge lengths (and others) #152

veenstrajelmer opened this issue Feb 2, 2024 · 2 comments · Fixed by #187
Labels
enhancement New feature or request

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Feb 2, 2024

To support easy visualisation of mesh properties. The current exposed properties are these:
image

Properties:

  • edge length
  • cell area
  • maybe more

In meters, also in case of a spherical grid.

Also: there is a mk.mesh2d_delete_small_flow_edges_and_small_triangles() available, but this is a combination of two actions and it is not possible to check if it is needed or not. Check DCSM workflow for more. Interacter defaults: small-links=0.1 (which means 0.1*sqrt(baL+baR)), small-triangles=0.2 (triangle removed if triaarea < average adjacent areas). Latter is often not used.

@lucacarniato
Copy link
Contributor

also in case of spherical grid

@veenstrajelmer
Copy link
Collaborator Author

Implemented in Deltares/MeshKernel#368

@lucacarniato lucacarniato linked a pull request Oct 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants