Browse Search Popular Register Upload Rules User list Login:
Search:
Trochoid/Spirograph Drawer (Rolling Circle)

Image:
screenshot of the scene

Author: FRA32

Group: Default

Filesize: 136.23 kB

Date added: 2017-01-30

Rating: 5

Downloads: 1032

Views: 372

Comments: 5

Ratings: 1

Times favored: 1

Made with: Algodoo v2.1.0

Tags:

Scene tag

After my Brachistochrone I got the idea of making a scene where you can cut out different trochoids. However I had to dump that idea due to it being impossible to properly cut concave shapes. So instead I made a mathematical drawer of them!

Trochoids are the term used for all curves drawn by a sphere rolling on other geometric object, may it be a plane(like the Brachistochrone), a sphere (like in this scene), or even squares or other polygones.
The trochoids drawn in this scene are Epi- and Hypotrochoids. The first are the result of a circle rolling ON another circle, the latter the result of a sphere rolling IN another one. Normal Trochoids with neither prefix are the result of rolling on a plane, which isn't depicted here. You can adjust the radius and similar by rotating the regulators using the drag tools clockwise to increment and counterclockwise to decrement. Click on the boxes to activate their corresponding function or view the code if you like to know the mathematics. Heres a short explanation of all tools:

"Fixed radius" defines the radius of the stationary sphere around which the other one roles
"Rolling radius" defines the radius of the moving sphere.
"Switch Side" negates the radius, effectively placing the moving sphere inside the stationary and viceversa.
"Tracer Distance" is a percentual distance of the tracer between the center and the rim of the moving sphere. 0% = exactly in the center, 100% exactly at the border, 200% twice the radius distance, 300 3x radius etc...
"Speed" is the rendering speed. Faster speed means quicker results of long time patterns, but more rough curves on high speeds and low framerates.
"Reset Pen" sets the pens length to 0, allowing you to remove all the scribbling that shows up while regulating the values.

By setting the fixed radius to a smaller value than the rolling radius and playing with the Tracer distance, one achives what is commonly known as spirographs, patterns of lines going long arcs before hitting the inner radius again.
Should you have the Epitrochoid mode(rolling outside), there's a mathematical trick to get exactly the picture you want most of the time:

First you imagine the amount of touch-locations that the curve has to the center circle when completing a full period. Now divide it by the amount of lines segments surrounding the sphere during this period(Imagine cutting through the figure like a cake. How often do you cut a line?). So if you want 5 contact points and want 10 lines, you would use 5/10 which is 1/2 which is 0.5 as inner radius while the outer radius is 1, which would result in 1 contact point with 2 parallel lines, since the other ones overlap each other. Would you take 2/7 however, you would get 2 contact locations and actually 7 lines at once. Take 1/1 and you get 1 contact points with 1 line surrounding the center, which gets you the common shape called cardoid.

The spheres are influenced by the values, and are visual displays of the calculation results. The tracer moves independently from the rolling sphere, but always hovers above a fixed point.

Enjoy!:D
Last edited at 2017/01/30 19:41:51 by FRA32
Please log in to rate this scene
edit
Similar scenes
Title: Spirograph god (fixed)
Rating: 7.625
Filesize: 325.02 kB
Downloads: 482
Comments: 8
Ratings: 8
Date added: 2008/12/06 16:20:34
Made with: Phun
Rating: rated 7.6
download
Title: Spirograph v0.0.2
Rating: 5
Filesize: 126.8 kB
Downloads: 1100
Comments: 1
Ratings: 1
Date added: 2013/01/03 05:29:33
Made with: Algodoo v2.0.2
Rating: rated 5
download
Title: Rainbow Drawer
Rating: 5
Filesize: 204.78 kB
Downloads: 435
Comments: 1
Ratings: 1
Date added: 2016/01/05 18:40:30
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Spirograph
Rating: 5
Filesize: 49.81 kB
Downloads: 394
Comments: 0
Ratings: 1
Date added: 2009/07/27 17:25:52
Made with: Phun
Rating: rated 5
download
Title: rainbow spirograph 2
Rating: 7
Filesize: 5.08 kB
Downloads: 408
Comments: 7
Ratings: 3
Date added: 2008/12/09 17:05:18
Made with: Phun
Rating: rated 7
download
Title: Spirograph 2
Rating: 7.2222
Filesize: 41.97 kB
Downloads: 439
Comments: 0
Ratings: 9
Date added: 2008/10/26 08:41:51
Made with: Phun
Rating: rated 7.2
download
This is fun to play with. Good job! :tup:
Regarding "due to it being impossible to properly cut concave shapes", it is possible to cut concave shapes by doing the following:
1. Create a mechanism that creates the path of interest with a tracer.
2. Replace the tracer with a small circle.
3. Select the small circle and check the "follow" checkbox.
4. Glue a box, that is large enough to contain the complete path, to the background in a location away from other objects.
5. Select the eraser tool.
6. Place the eraser in the box and hold the right mouse button down.
7. Start the simulation.
8. The eraser will cut the path of interest in the box.
you're very smart s_noonan _o_
@s_noonan
That's actually a method 'I haven't thought of yet, since I rarely use the pen style tools. I'll see what that approach can get me. Thanks for the tip!
I had spirograph as toy.