curve class module for script sequencer on Sketchup: attempt 1

curve class module for script sequencer on Sketchup: attempt 1

[1] srf_interpolate1.jpg [2] srf_interpolate2.jpg srf_interpolate3.jpg

[1] srf_interpolate1.jpg [3] srf_interpolate2cm.jpg srf_interpolate3cm.jpg

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

One thought on “curve class module for script sequencer on Sketchup: attempt 1

Leave a Reply

Your email address will not be published. Required fields are marked *