Using the C# srcipting component, I am trying to morph a shape (basically a cube) with a curve as its control structure. I am actually trying to reproduce something that already exists in Rhino: CageEdit (with a line as the control structure) as done on the image below
The control curve (which is initialy a straight line) can stretch/shrink, bend and twist.
I found theMorphControl Class on RhinoCommon API, whose description reads as: “Represents a geometry that is able to control the morphing behaviour of some other geometry.”, which is exactly what I am looking for. However I can’t understand how to use it.
Any help would be greatly appreciated.
Thanks in advance.
ps: the whole project is to morph any arbitrary shape chunk into cubes, using the deformation of a truss. As illustrated (the cubes are still undeformed) below