<div dir="ltr">Dear all,<div><br></div><div>I would like to plot some unstructured grid that encompass all</div><div>the oceans of the world.</div><div><br></div><div>There are two obstacles to that. One is the periodicity in longitude</div><div>and the other is the singularity at the south and north pole. The</div><div>singularity can be avoided by removing points with latitude not</div><div>in acceptable range. The periodicity can be treated by removing</div><div>the points of longitude +-180.</div><div><br></div><div>A priori, the drawing should then proceed correctly, but it does not.</div><div>The grid I put as input passes all the sanity checks I can think of.</div><div>What makes me think that there is a bug is that if I restrict to <br></div><div>positive latitudes (0&lt;lat&lt;90) or negative latitude (-90 &lt; lat &lt; 0) then</div><div>the drawings are ok but it is not when I put everything together.</div><div><br></div><div>All relevant files for debugging are available in <a href="http://mathieudutour.altervista.org/Sending/PLOT_globunstruc.tar.gz">http://mathieudutour.altervista.org/Sending/PLOT_globunstruc.tar.gz</a></div><div>The reduction technique from WholeWorld ---&gt; UpperLatitude, LowerLatitude</div><div>is to remove the points of noncorrect latitude and any triangle that</div><div>contain them.</div><div><br></div><div>The three pictures are </div><div><a href="http://mathieudutour.altervista.org/Sending/LowerLatitude.png">http://mathieudutour.altervista.org/Sending/LowerLatitude.png</a> (good)<br></div><div><div><a href="http://mathieudutour.altervista.org/Sending/UpperLatitude.png">http://mathieudutour.altervista.org/Sending/UpperLatitude.png</a> (good)<br></div></div><div><div><a href="http://mathieudutour.altervista.org/Sending/WholeWorld.png">http://mathieudutour.altervista.org/Sending/WholeWorld.png</a> (bad)<br></div></div><div><br></div><div>Thank you in advance for any help in the debugging and please ask</div><div>if I can help you.</div><div><br></div><div>Best,</div><div><br></div><div>  Mathieu</div></div>