Fibonacci
 1-20  21-22

Next
 From:  bemfarmer
4739.1 
Attached is 7zip of a Fibonacci point script. This is only a first draft.

First DRAFT by Brian McMillin November 19 - 24, 2011
FibonacciSeed1 script for MoI program.
This version is for planar point layout.
"Cylindrical" pineapple layout, as well as "conical" pinecone layout, are possible with different programming.

Nature often uses the most irrational number, phi, or Phi, in plants, and elsewhere.

For one excellent explaination of the Fibonacci Numbers and Golden section in nature, see:
http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fibonacci/fibnat2.html
http://www.michaelnaylor.com/resources/Math-Nature-Naylor.pdf

This script may aid in producing shower heads, pineapples, flowers, pinecones, sunflowers...
Modified from Michaels ToroidalHelix script, MoI program, with point help from Fern script.
Also used parts of the LineWeb script, but the point scripting was pretty hard for me to grasp.
So this FibonacciSeed1 script may be poorly written, or buggy, but is seems to work ok.
Note: placing the factories[i].update() up one line, into the for loop, makes for slow and continual redraw of points, when zoom out;

Establish a geometric shape for a seed, and place at the points? There must be a copy to points script somewhere?

(As usual, copy script to MoI command folder, and create shortcut key under options.)


EDITED: 9 Aug 2013 by BEMFARMER

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:  Michael Gibson
4739.2 In reply to 4739.1 
Feels like one of those optical illusions that give the sensation of movement by looking at it!

- 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
Next
 From:  Frenchy Pilou (PILOU)
4739.3 In reply to 4739.1 
Have you a site or something where all your scripts are hosted ?
---
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
4739.4 In reply to 4739.3 
Pilou, I do not have a site. Maybe I should learn how to do that:-)
Just found out the other day that "skydrive" in on my Windows Live/hotmail/MSN.
  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
4739.5 In reply to 4739.2 
Just did one with 10,000 points...
Seems to be a limit to number of points.

EDITED: 24 Nov 2011 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:  FelixPQ (FELIX)
4739.6 In reply to 4739.4 
bemfarmer,

thanks for the script, I was trying to do something like that a while ago.

Regards,
Felix
  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:  BurrMan
4739.7 In reply to 4739.5 
Frenchy oughta love this one.. I did one at 100 points. I ran explode move on the points with a value of 10. Then I copied the points up 9 inches and ran ConnectPoints Script on them with a value of 10. (Not all points connected) Then I circle arrayed them and ran another circle array with some vertical value. Then i swept a small circle on all the line segments.


EDITED: 19 Jun 2012 by BURRMAN

  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)
4739.8 In reply to 4739.4 
< I do not have a site. Maybe I should learn how to do that:-)>

I suggest you to take this crazzy one : http://www.weebly.com
I don't know more easy, more funny! And it's free without publicity! Infnite storage! (5 megas maxi by file) Infinite number of blogs! No limit bandwidth etc...

some various example by me ( I have no special knowledge and don't want headache with html or other things like Css etc... :)
about Moi : http://moiscript.weebly.com/
about QUBICLE: http://qubiclefr.weebly.com/
My data site :) : http://piloumaison.weebly.com/
etc...
  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
4739.9 In reply to 4739.8 
Thank you PILOU.
will try it later.
  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:  FelixPQ (FELIX)
4739.10 In reply to 4739.9 
Hi bemfarmer,

I saw you wrote a few scripts on spirals and I wonder if you've done one base on the old way of doing things (with a compass, way before computers). The advantage of this method is that being made of arcs, you can always replace an arc with a full circle and it's perfectly tangential with the next arc. If needed I can provide an example file explaining the method as best as I can.

Thanks,
Felix
  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
4739.11 In reply to 4739.10 
Thank you Felix.
Please explain your method.
  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:  FelixPQ (FELIX)
4739.12 In reply to 4739.11 
Hi,

here are a couple of them.




Basically, you start with a construction polygone, it can be anything from 2 to N side poly but I usually use 8, the more are used, the better looking the spiral. Each vertice of the poly serve as a center for an arc, you can start on any vertice and create the spiral in either CW or CCW direction, here I chose CW.

1- you start your first arc (small red arc) by setting it's center on the next vertice in the direction you chose, here CW.
2- you set the radius using the previous vertice, here the side of the poly and draw the arc until it's end point is on the tangent of the next side, here the red line.
3- the next arc center is on the next vertice in the direction you chose, here CW
4- the radius is set on the end of the previous arc and is drawn in the proper direction until it's end is on the tangent of the next side, here orange line.

You repeat steps 3 and 4 until you have the spiral you want, ie. number of turn, etc.

That's basically it, of course you'll need to join all the arcs in a single curve if needed.

I don't know if you can draw an arc (in Moi) from it's center, radius and angle but if it's possible it could simplify things a little.

Hope it's enough for you,
Felix

  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
4739.13 In reply to 4739.12 
Hi Felix,

> I don't know if you can draw an arc (in Moi) from it's center, radius and angle but
> if it's possible it could simplify things a little.

I think the Arc center command will work for that.

First you'll place the center point.

Then the second prompt is to pick the starting point of the arc - in this case you want it to be a specified distance away from the first point you picked so you can use "distance constraint" to control that. Just type in your desired radius value and push enter and now your second point pick will be constrained to be that distance away from the base point. That's the same method that you can use to draw lines of a particular length as well.

Then you'll need to place the point where you want the arc to start and you can then enter the desired angle at the last prompt.

- 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
Next
 From:  FelixPQ (FELIX)
4739.14 In reply to 4739.13 
Michael,

I meant creating an arc (center, start, angle) in script and one would need the end point of the previous arc to set the radius of the next arc. It would just simplify the script (I think) but I'm sure one can figure out a way to compute the end point with a simple "rotation matrix" maybe.

Creating a spiral manually is easy and relatively fast with this method, I don't think a script is really needed for that except maybe as an exercise in scripting. It's the main reason I suggested it to bemfarmer.

Though it's easy to create a spiral using the Moi command for that or one of bemfarmer script, I prefer to use this method because I have kind of passion for how craftman used to do their work and as I said earlier using arcs as an advantage when one need to start the spiral on a circle, it's fits perfectly and it looks pretty nice as well!

Thanks,
Felix

PS. The more I use Moi, the more adicted I become, incredible program Michael, keep up the good work.
  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
4739.15 In reply to 4739.14 
Felix, Arc construction works very well.

Report to Michael of a peculiar behavior that happens during opening of the attached file.
The Scene browser Style red-ish color "UserLayer01", drawn as a Circle, is turned OFF upon reopening the file in Moi3Beta.
Have to click on the eye icon area of UserLayer01 to turn the Circle on.

I Moi2, the red-ish Circle shows up upon reopening the file.



  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
4739.16 In reply to 4739.14 
Hi Felix,

> It would just simplify the script (I think) but I'm sure
> one can figure out a way to compute the end point with
> a simple "rotation matrix" maybe.

Yeah it's possible to do that rotation calculation in script, there is not anything kind of pre made to do that but doing the calculation for rotating a point is not too complex.

If it's the end point of an already existing arc that you want to calculate, if the script has the arc object itself available it could also call .getEndPt() on it to retrieve the end point of the arc curve as a point object that has .y .x .z properties on it.

- 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
Next
 From:  Michael Gibson
4739.17 In reply to 4739.14 
> PS. The more I use Moi, the more adicted I become, incredible
> program Michael, keep up the good work.

Thanks Felix! :)

It can take a little while to really appreciate the streamlined workflow of MoI - I think it's only when you switch back to another program that you start to feel some of the frequent annoyances that you didn't previously notice... Stuff like things popping up over your work too much, needing to hold down shift or ctrl all the time, difficulty with selection, etc....

- 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
Next
 From:  bemfarmer
4739.18 
Report on Fibonacci torture tests with MoI2 and MoI3OctBeta. :-)

Behavior is different for MoI2 and MoI3OctBeta.

MoI3Beta will create up to about 14,000 seedpoints, and save the file.
At 15,000 or so seedpoints, MoI3Beta quits calculating and stops displaying any seedpoints.
Seems like memory or something is clogged up, as reloading the script quickly aborts, until MoI is closed and restarted.
(or else, if it manages to create and show the seedpointss, trying to save, results in a very "truncated" seed count.)

Moi2 is able to properly calculate, display, and save up to 20,000 seed points. File size is 16,174.
It takes about 34 seconds for points to start showing on the screen, and 4+ minutes to calculate/display the seed points.
MoI3Beta CAN load the file just fine.

Moi2 is able to calculate and display 25,000 seed points.
Startup was about 46 seconds, and it akes 7+ minutes to finish.
BUT, saving the file fails. Truncated file size was 7,873.

Moi2 is able to calculate and display 30,000 seed points.
Startup was about 70 seconds, and it akes 10+ minutes to finish.
again, saving the file fails. Truncated file size was 3,397.

Moi2 handles 22,000 seed points.
Moi3OctBeta loads the saved file fine.

EDITED: 25 Nov 2011 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
4739.19 
CopyToPoints Script, by Petr http://moi3d.com/forum/index.php?webtag=MOI&msg=3974.1

Should be using a sunflower seed. Got one to model, basically a diamond shape.
So why not use a real diamond...

EDITED: 19 Feb 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:  Kurt (KURTF)
4739.20 
Nice animations that help illustrate the principles brought up in this thread:

http://vimeo.com/9953368

and

http://etereaestudios.com/docs_html/nbyn_htm/intro.htm
  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

 

 
Show messages:  1-20  21-22