fix some function for 2d off lattice part.
small changes.
rename Lid2D to Curve2D......