Elastica script

Next
 From:  bemfarmer
7001.1 
The elastica script generates seven of the nine classes of elastica curves, creating a range of 2d curves.
The other two classes are the circle and the line.
(A half near circle, and a near line are generated for extremely high or low shape values.)

The curves are "half" curves. The second "half" of the curve can easily be mirrored.
For shape values greater that -1, an additional bottom portion can be done by rotation, or by mirror and move.
For shape values less than or equal to -1, another curve can be added on by mirror.

The curves are related to pendulum motion. For Shape = 0, the "Mylar Balloon" curve results, rotated 90 degrees.
The aspect ratio is correct, 0.599+...

The paper gives Shape values for the seven cases of 0.5, 0, -0.4, -0.65223, -0.9, -1, and -1.2.

A general link to the source paper is:
http://www.emis.ams.org/proceedings/Varna/vol9/Djondjorov.pdf

The curves may be further processed by MoI. Rebuild is suggested after a longer curve is formed.
Sweep can be done. Have not tried flow or twist yet.

- Brian




If it stops raining, or the new telephone wires are installed, internet access may work well again.

I may try the techniques of Gear, with a mirror.

EDITED: 5 Nov 2014 by BEMFARMER


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  TpwUK
7001.2 In reply to 7001.1 
Cool - I had to do these way back in my infancy school days when i was learning to read n write !

Martin Spencer-Ford
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7001.3 In reply to 7001.2 
Thank you Martin
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
7001.4 
Original!
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7001.5 In reply to 7001.4 
Thank you PILOU.

Post #1 now includes _Elastic2 script, which makes the same curves as _Elastica, but Mirror, Join, Concatenate and Rotate are used
to build a complete unit curve, (or two in some cases).
The curve is fast and smooth as it uses the techniques of Max Smirnov's Gear script, a programming somewhat unconventional from
the more "traditional" Moi scripts. I left in the extrude.
The timing loop generated Keypad entry problems with "." and "-", which Michael solved.
Please report any problems. I would suggest backing up any work before using the script, just in case...

Brian.

I used flow to make some circular loops.

EDITED: 18 Nov 2014 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7001.6 
I've go a new script working well with the "standard" .js and .htm method, but it is very slow.

While trying the Gear type of scripting, using an alert message function in the .htm file is giving
"Range error maximum call stack size exceeded" message.

I guess it is from the ongoing timing loop...

The faster "Gear" method is not working yet, so I'm going to switch to the "older" .htm speedup method.

- Brian



  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7001.7 In reply to 7001.6 
Hi Brian, change that to instead be:

code:
    function alert( msg )
    {
        moi.ui.alert( msg );
    }


The one you have there right now has moi.ui.commandUI.alert() - commandUI is a way for a script to access the global object of the loaded .htm file, and doing commandUI.alert() means it is looking for a function alert() in that .htm file which is the very same function so it's calling itself over and over again in a recursive loop.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
7001.8 In reply to 7001.7 
Thank you Michael

Alert is working.

(Now to get the bugs out of my script...)

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All