Digit's Zif-Widget Documention

Part IV - Interpolation

 

 

Interpolation

Create 2 , 3 and 4 Point Curves using these controls. Remember to select a node using this script you hover the mouse over the desired node and press "s".

 

2 Point Interpolation -> Select Start Point Node ("s") and press "S1" button. Select End Point Node (hover mouse - "s") and press "S2" button Enter number of Points in slider (default 10)

 

Press "Run Interpolation" and the script will create nodes between Set #1 and Set #2

 


To run a 3 Point Curve, Set your set 1 and set 2 points as before then set a Spline_1 point as shown. You can create a Spline point as shown with zspheres and later remove it or you can use your start or end Node and move it on the canvas, record your spline point and then hit the "L1" or "L2" buttons to move the node back to position.

 

Here is a setup up for a 4 point or "1 to 2" point curve. Start, End and Spline_1 points are recorded as before. Add the Spline_2 point.

 

"Run Interpolation" now creates a curve being influenced by both the Spline_1 and Spline_2 Nodes. Notice that the Size of both the Start/End Nodes and the Spline Points have an effect on the model.

 

Set the Pivot Switch On and record a Pivot point using Set Pivot causes the script to use that node as the Source Node for each iteration of the Interpolation. Notice in this example how the end of each leg corresponds to the curve created by Spline_1 and Spline_2

 

By manipulationg Just the Spline points in XYZ space and re-running the script can create interesting models. In this example moving the curve around created the Hull of a small boat.

 

M1, M2, M3 - Switches

M1 - Marks and Spline points are fixed.

M2 - Spine Points are Free. This means that once you have defined a Node to be a Spline point you can then move it around the canvas freely and the interpolation will update the curve with the new information. Example: Set up a 3 Point curve and run the script. With M2 switched On use your mouse to move the Node that you selected to be your Spline point, to a new position. Press "Run" again and a new curve is created using the new position of the Spline Point.

M3 - Spline Points and Mark Points are Free. Same as M2 but you can move the Mark points as well thereby creating dynamically produced curves.

Nangle - Enter XYAngle and Zangle into the sliders. Pressing this button moves the currently selected node around it's parent by this amount This is useful for moving Spline or Mark points in incremental ways. Example: Create a 3 Point Curve with M2 or M3 selected. Select the Spline Node and enter 180 into the XYAngle slider. Press Nangle and the Spline node is rotated in XY direction 180 degrees. Press "Run" again and you have created a curve symmetrical to your first curve.

 

 

Back | Next