Hi @tom33,
your problem is likely that you’re drawing your mesh in the DrawForeground channel which draws without depth testing and writing. Try to change this to PostDrawObjects first without transparency. If you find that the mesh still does not draw as expected, add it to the doc and see how Rhino draws it without your conduit.
Note that you need to draw your mesh edges using DrawMeshWires
_
c.