(Geonodes)Problem with making a Bezier patch

bezier surface tests.blend (899.2 KB)
I was trying to fill a quad patch made of 4 splines with surface. I do not understand the math that goes into it much. Managed to get coordinates for something like “U sweep surface” and “V sweep surface” using Sample Curve between splines belonging to opposite sides. But I do not know how to combine those results. Lerping between them at 0.5 value produces “deflated” surface

1 Like

Maximum node does something like I imagined. The problem that it clips the negative values of coordinates and I have no idea what to do about it