[ncl-talk] Triangulation selection

Mathieu Dutour mathieu.dutour at gmail.com
Thu Oct 29 11:45:55 MDT 2015


Dear all,

I have a problem when plotting data from an unstructured mesh.

The problem that happen is that some triangles are omitted on the
boundary is therefore not as nice as it could be. This happens in
at least two contexts (files in attachment):

Case 1:
I select with   mpLeftCornerLatF  and similar a box
to make a plot. The nodes that are selected are the ones
inside the box and the triangles used are the ones of those
nodes. The problem is that some of the surface on the border
is not filled because the nodes that cover it are outside of the
box.

Case 2:
I select with a box a box that contains all the points of the model.
The problem is that apparently some triangles on the boundary
are not used and I do not see why. If all triangles were used then
I would get a collored rectangle. This problem is independent
of the above as I made sure that all points are used.

In both cases, if I outcomment
  res2 at sfElementNodes      = f->ele
the result is somewhat nicer but it does not really solve the essence
of the problem, which is missing triangles.

Any help on addressing this problem would be much appreciated.

  Mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151029/0f342c02/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: data1.nc
Type: application/x-netcdf
Size: 580028 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151029/0f342c02/attachment-0002.nc 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: data2.nc
Type: application/x-netcdf
Size: 252548 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151029/0f342c02/attachment-0003.nc 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Hwave1.png
Type: image/png
Size: 98877 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151029/0f342c02/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Hwave2.png
Type: image/png
Size: 14884 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151029/0f342c02/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script1.ncl
Type: application/octet-stream
Size: 3794 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151029/0f342c02/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script2.ncl
Type: application/octet-stream
Size: 1712 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151029/0f342c02/attachment-0003.obj 


More information about the ncl-talk mailing list