The following appears to be working the first time through.
Note, I switched from setBasePt() to setPt().
code:
var lastPt = pt;
pointpicker.setPt(lastPt);
var cPlane2 = pointpicker.ptframe
But for a second time through, if Updating (Changing) the shape, a different error appears: (Click on a pushbutton to change shape.)
The error is TypeError:undefined is not an object
(evaluating 'pointpicker.setPt')
_Elastica3.js line 363
363 >> pointpicker.setPt(lastPt);
Right clicking and running the script again produces the correct new curve.
- Brian
I could post the latest _Elastica3 script, a work in progress...
I attached the August 4th 2022 draft. It is mostly converted from script in html, to script in .js, but still needs some work.
Proper rotate and join will be done, once the cPlane2 is sorted out.
Edit: deleted draft script.
|