Dynamo for Revit Recursion: Spline smoothing

Sorry for the bad explanation of the method in the video – I was really tired but eager to make this video.
So this is a *dyn doing spline smoothing by recursively running a custom node.
1st step is creating the custom node for smoothing the spline. The logic behind it is simple: get a list of points split it, find the average of their coordinates and use it to create new points. Then create a spline through these points.
2nd step is creating the recursion using the first node. This was really hard for me. Fortunately, I found Zach Kron’s Fibonacci node and used it’s method.
3rd step is just using the recursive function, specifying the number of iterations and the resolution. The resolution is the number of points we use to create the curve in the first node. The iterations are the number of times we run this function. The higher the number the straighter the spline. With enough iterations the curve is leaning towards straight line.
Source