Problematic mesh illustration

This is an illustration of the problem described in this forum post. I've included code to generate the image in Matplotlib to make it easy to include in the notebook here, but I get the same issue with the NetGen GUI:

import netgen.gui
Draw(mesh)

Another problematic case