outlined drawMesh function