Browse Search Popular Register Upload Rules User list Login:
Search:
Non-Symmetrical Polygon Generator

Image:
screenshot of the scene

Author: Xray

Group: Default

Filesize: 58.28 kB

Date added: 2014-11-01

Rating: 5.6

Downloads: 853

Views: 388

Comments: 8

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This scene is a tool that allows you to create a non-symmetrical polygon. Other polygon generators, such as THIS ONE will generate symmetrical polygons with evenly spaced sides. This scene allows you to stretch and reposition ten corners into any shape that is possible with this tool.

This scene started out as an experiment after I learned how to manipulate polygon surfaces (My thanks to user homieeee for teaching this to me!), and it turned into a tool that I hope will be useful to others.

EDIT: I forgot to mention that your finished polygon will delete itself as soon as you start the sim again unless you change the "timeToLive" value from its current 0.017 to some larger value (+inf will keep it from deleting forever).

UPDATE: You can ignore the "EDIT" note above because I fixed the problem of having to change the "timeToLive" value manually. After you are done modifying the color or any other attributes, you must press the "F" key which will automatically set the timeToLive value to +inf. Now, people who are not comfortable with changing script menu values need not worry about having to do that!
Last edited at 2015/05/03 15:17:07 by Xray
Please log in to rate this scene
edit
Similar scenes
Title: Freestyle Polygon Generator
Rating: 5
Filesize: 161.08 kB
Downloads: 591
Comments: 4
Ratings: 1
Date added: 2015/05/03 17:16:42
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Polygon "Distortion"
Rating: 5
Filesize: 9.66 kB
Downloads: 578
Comments: 6
Ratings: 1
Date added: 2014/02/17 16:18:53
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: cyclogon 1
Rating: 5
Filesize: 15.06 kB
Downloads: 431
Comments: 0
Ratings: 1
Date added: 2017/07/27 10:08:40
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: irreglaur cyclogon 1
Rating: 5
Filesize: 21.36 kB
Downloads: 296
Comments: 1
Ratings: 1
Date added: 2017/07/27 10:18:31
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Symmetrical marble race
Rating: 5
Filesize: 121.09 kB
Downloads: 209
Comments: 0
Ratings: 1
Date added: 2018/02/14 08:13:03
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: useless polygon generator
Rating: 5
Filesize: 29.67 kB
Downloads: 642
Comments: 1
Ratings: 1
Date added: 2021/10/29 14:19:18
Made with: Algodoo v2.1.0
Rating: rated 5
download
Responses to this scene
show list
Title: Non-Symmetrical Polygon Generator V2
Rating: 5.375
Filesize: 55.61 kB
Downloads: 471
Comments: 8
Ratings: 2
Date added: 2017/01/09 22:07:45
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: Non-Symmetr­ical Polygon Generator (response)
Rating: 5
Filesize: 41.71 kB
Downloads: 296
Comments: 3
Ratings: 1
Date added: 2014/11/01 12:52:13
Made with: Algodoo v2.1.0
Rating: rated 5
download
Really fascinating! I Like such 'inventions' in Algodoo - it's like Algo-Science and a technical evolution of knowledge, the progressive gaining of know-how has an analogy to the technological progress of the human history, from the Stone-Age, Bronze Age etc. until the the modern era of today.

I could see if I can use this tool in a following scene - of course with a lot of big credits.;)

Go on! I really want to learn thyme-scripting, too. But i don't know how to start with. Do you know recommendable tutorials? Rather good videos than dust-dry text (just @ the beginning).

Greetings,

S.A. :tup: :tup: :tup:
Xray,

I expected complicated code, but found out it was very simple and straightforward. Well, I couldn't leave well enough alone, so I messed around with it. I will post a response to this scene with the altered code. It does not change the function of the scene. It's just a slightly different approach. It uses your scene.my.WriteArray function. You can do any of the following:

a) Use the new code in your scene.
b) Delete my scene.
c) Ask me to delete my scene.
d) Do nothing.
Last edited at 2014/11/01 12:49:59 by s_noonan
s_noonan -- I choose "d". You did what any good engineer would do; take a really good design and make it even better! :)

S.A. -- There's a lot of information about Thyme scripting on the Algodoo forum, and that is where you will get most of the tutorials that you are looking for. Another good resource is "OPC" (Other People's Code). You can learn a lot by seeing how others have done certain things, but that is a more difficult way to learn because it usually causes a lot of unanswered questions. It helps if you had some previous programming experience, but for the person who has had zero experience, the road to learning scripting at a reasonable level could be a long and difficult journey. Start by doing some very simple things, such as changing the color of a circle when it collides with another object, and expand your knowledge from there. To get to a useful level where you are making complex scenes with scripting could take you many months or even a couple of years depending on how much effort you put into it. In addition to the scripting, there are things that you'll want to do that also requires a knowledge of math and physics. So, just knowing how to program with Thyme may not be enough depending on what you want to do with it.

Videos? Sorry, but there just ain't none!

Now drop what you're doing and get on over to the Algodoo forum and learn some scripting! When you have questions, most of us who use Thyme scripting in our scenes will be willing to help you with it. Just ask!
Thank you for that extensive answer!
Okay I have a relatively good knowledge base of maths an physics. That circumstance could help me.

I will do my best and already know that I will have an amount of questions.;)
You are obviously very smart, so you should have NOOOOOOO problem learning how to script! :)
Thanks! I hope your are right. ;)
write in the numbers something like this:
keys.isdown("1or2or3or4or5or6or7or8or9") ? {pos = app.mousepos}:{}
I think this way much easy
Alien_RG - I tried using that technique, but I had some trouble with it when adding more than 4 or 5 OR's to the line of script. I may have made a syntax error at the time, but I didn't bother looking into it any further, and ended up doing it the way that it was done. I will research this some more, and if I can get that method of stringing OR's together to work, then I will change the script.

Thanks for your suggestion! :)
Last edited at 2014/11/05 15:30:16 by Xray