first working version of LMesh