Elastica script

 From:  bemfarmer
7001.22 
_Elastica3Aug5_OK_Draft is a pretty good version of _Elastica3 script.
It is not finished.
Should add rudimentary extrude (?), using Max S techniques, if this is possible.
Should add Help File, or else Help PDF.

Crucial help from Michael enabled the creation of the cPlane2 frame, for rotation and mirror2.
The user selects a reference point in one of the 7 MoI viewport Views, and the resulting 2D Elastica curve appears.
Looking at this curve in another View looks as expected, a Top or Front, or Right appearance, etc.

Running the script again, and selecting another point in any other of the 7 Views, with the same shape parameter,
produces an Elastica curve with the same appearance as the first selection in the other view.
This is due to using cPlane1 frame from pointpicker.

The Script has nearly all of the code in the .js file, not in .htm file.

Said goodbye to DarkGoldenRod color, for the pushButtons.
The DarkGoldenRod color for pushButton text was Okay, but the look of the theme text color for Default and Dark Themes is a bit better.
The pushButtons show elastica curve for 7 values of shape parameter.
The shape slider produces a near continuous progression of shapes.

The script works in MoI3 (slight delay), and also in MoI4, and MoI5beta.

I believe that the bugs of _Elastica2 are gone.

Number of points should be relatively high.
A trial of a Control point curve had a poor look between the two joined halves, so InterpCurve was used instead.

One curiosity is that the intersection of the "figure 8" elastica, when zoomed way way in, appears offset from the reference picked point.
But the distance of the offset from the reference point shows up as 000000.
Earlier trials had the join(s) eliminating the visual offset, but that is no longer happening, with the current join order.
The value of shape = 0.65223 was calculated in the source paper, and is not exact.

- Brian

EDITED: 5 Aug 2022 by BEMFARMER