Planarize control points

Hi Pascal,

i tried MoveUVN, “smoothing V” direction. it moves them to a straight line and completly flattens the geometry to achieve the planarization. “Smoothing U” did a better job but not perfect as at green surface.

@Helvetosaur’s “PlanarizeCurves” script is more like what i want but it should work for selected surface points row and both end points should be fixed.

i am thinking of a method. i am not a programmer just thinking with rhino tools so here what i thought…

create an imaginary curve from sellected surface points by “control point curve” but it should be a bezier (degree+1=point count)

rebuild it to 3 point 2 degree curve (which gives us 3 points, using those 3 points, script can create a planar surface/cplane which i presume is best fitting one… )

move points xyz/uvn or project/pull points to that surface/cplane

and we achieve a planar row of surface points

By the way “move UVN” would be the best option since it changes surface geometry minimum.

Thank you.