Fits a single linear element to 8 data points using iterative linear finite element fitting. The data points are recalculated after each fit to maintain orthogonal projections.

Shown below are the initial and the final fitted mesh. The dark blue pluses represent the data points, the dashed black lines the orthogonal projections and the cyan circles the xi positions on the mesh.

Intial_Mesh Final_Mesh