Replies: 2 comments 52 replies
-
@acroucher this is strange! My first guess is that the DEM might have a concave up bathymetry there (?) which might show up if you change the colormap to only show elevation range smaller than that of the complete figure. |
Beta Was this translation helpful? Give feedback.
-
I just tried this, but it doesn't seem to be getting the hfun quite right on the eastern side of the open sea boundary. There is unnecessary refinement there (this also happens if I generate the hfun with the hi-res DEM only). There are also some glitches along the boundary between the hi-res and low-res DEMs. Plus, trying to interpolate the bathymetry from the hi-res and clipped low-res rasters this way does not work at all - I get mesh elevations set to -99999 outside of the hi-res DEM. |
Beta Was this translation helpful? Give feedback.
-
I'm creating a mesh with geometry defined by a coastline read in from a shapefile, and the hfun (mesh size function) based on a DEM raster. For the hfun I'm setting the hmin vale to 50 m which is the target resolution at the coast. As in the documentation examples I'm also setting an hfun contour at the high water level with target_size = hmin.
I'm getting some odd mesh artefacts at certain locations along the coast - the resolution is about 50 m along most of it, but in some places it is larger, and in between these there's an area of 50 m elements offshore. The DEM is quite smooth and doesn't seem to have any features that might cause this. Here is a sample plot of the coastline and DEM:
And here is a plot of the hfun:
This gives the following mesh:
Any idea what is causing this to happen?
Beta Was this translation helpful? Give feedback.
All reactions