curve class module for script sequencer on Sketchup: attempt 1
nurb/spline curves and surfaces are usually drawn in opengl or flash 3d engine as polyline by interpolating control points. This is nothing new to sketchup since this has already been implemented in some great ruby scripts by others i.e. beizerspline, curviloft, simple loft. so I am just going to implement a few for the graphical sequencer.
images above shows some standard sketchup ArcCurves [1], ordered using the line in the middle (a lot of work is required here to isolate,group and sort things from sketchup, I will have to sort this out or at least find a better solution before releasing), each divided into an equal number of points, the points are then paired by its index (flipmatrix in gh), each of these array is used to create a degree 3 nurbs[2] or catmull spline[3] as polyline, points are then connected to form a standard sketchup polygonmesh
you are amazing.