Project Parameterization, rocker demo

 From:  bemfarmer
6860.9 
Here is my latest FrenetKTCurve script, which generates a 3D space curve from the 2D curve graphs of Curvature Kappa, and Torsion, Tau.
Thanks again to Michael for much help and explanations of scripting.

Since the script is probably not bug proof, it should not be used with unsaved or valuable work.
A demo curvature and torsion graph of Rudy's Rocker is included. The PI length should be set to 4.0.
The user interface could use an Update button.

The reason for doing the script was to produce a Moebius strip, which it almost will do. The graph of Kappa and Tau is approximate.
The graph is included as KappaVersusS12.3dm. Load it into Moi, then run the script. The PI length should be 1.0, as the second half
of the curve comes out wrong. Kappa of zero can be a problem. The second mirror of the half loft surface almost closes to a Moebius strip.
The trouble with the Frenet frame is getting the curves to close.

A Moebius strip centerline curve, based upon the physics of real materials, has been calculated by E.L. Starostin, and G.H.M. van der Heijden,
defined by Curvature (kappa), and Torsion (tau). The mathematics is advanced, and DAE equations must be solved.

http://www.ucl.ac.uk/~ucesgvd/moebius.pdf (copy to browser)
http://www.homepages.ucl.ac.uk/~ucesgvd/moebius_suppl.pdf
http://arxiv.org/abs/0905.1880
http://arxiv.org/abs/0804.0419
http://arxiv.org/abs/0807.0377
http://onlinelibrary.wiley.com/doi/10.1002/pamm.200700858/pdf

This script does NOT solve the DAE equations to determine the Kappa and Tau curves for a particular width of a Moebius strip of length 2*PI.
Nor does it do a 3-fold Moebius strip. DAE solving may be attempted later. Maple or Mathematica can do it with Runge-Kutta-Fehlberg45.
Solving the DAE equations should produce Kappa and Tau numbers to get a closed curve.

Other Kappa and Tau graphs can be used. The PI length should not be greater than the x values of the curves.
The graphs must satisfy the vertical line test, as there can be only one y value for an x value.
A trial of curves which violate this rule did not crash Moi, but in one case the new curve did not finish.

I want to be able to do a 3-fold Moebius. The papers tell how to do so, but they leave out much information about the actual solving of the DAE equations.

The number of points should be 100 or 200, for a more accurate curve, which takes some time.

- Brian






EDITED: 17 Aug 2014 by BEMFARMER