add function for 2d points -> 3d points