Smoothing a Local Area on a Wavy Surface

Hello everyone,

I want to smooth a specific area on a wavy surface. The surfaces I have are the wavy surface that I want to smooth (2.), the original smoothed surface (1.), and a rectangular surface that I project using Splop as the area to be smoothed.
So far, my approach has been to divide all surfaces into points. I pull the surface projected onto the wavy surface onto the smooth surface (for later steps, it is important that I project the rectangular surface onto the wavy surface). Then I simply calculate the points that are closest to the projected surface and move them. Unfortunately, my result so far is not very good… (see 3.). Do you have any ideas for improvements? I have the feeling that the wavy structure of my original surface also suffers as a result. In a dream world, I would also like the transition from smooth to wavy to be gentle, but that’s a problem for another time…

Flat Surface on Curved Surface.gh (3.5 MB)

Thanks in advance.
Tom

I think I would pull the wavy surface points to the non wavy surface and use Point in Brep to filter the points.

In my example I used a sphere but this could be any shape.

Flat Surface on Curved Surface mrtn.gh (3.8 MB)

Thank you very much. The result looks good. I wasn’t familiar with some of the components you used.