Zunder Posted September 10, 2019 Share Posted September 10, 2019 (edited) Hi guys. How you would go about creating Sierpiński triangle with VEX? I've tried to do it myself, but failed. I've only started learning VEX, before i was only doing basic stuff with it. Edited September 10, 2019 by Zunder Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted September 10, 2019 Share Posted September 10, 2019 Here is an approach using 3 for loops (the inner can be avoided). I do not really like this approach, because I'm pretty sure, that there much more elegant solutions out there (even without recursion). sierpinski_vex.hipnc 2 Quote Link to comment Share on other sites More sharing options...
Zunder Posted September 10, 2019 Author Share Posted September 10, 2019 4 minutes ago, Aizatulin said: Here is an approach using 3 for loops (the inner can be avoided). I do not really like this approach, because I'm pretty sure, that there much more elegant solutions out there (even without recursion). sierpinski_vex.hipnc Thank you for your reply. This is quite interesting approach, but it's really confusing to be honest. I found this page https://sdm.scad.edu/faculty/mkesson/tech312/wip/winter18/meredith_omalley/sierpinski/index.html , and right now trying to adopt the code for VEX. Do you think it will work out ? 1 Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted September 10, 2019 Share Posted September 10, 2019 Here is a modification. sierpinski_cloud.hipnc 2 Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted September 10, 2019 Share Posted September 10, 2019 I haven't tried in VEX but I gave it a go a while back in Python. The scene file is attached. fractal_v001.zip 1 Quote Link to comment Share on other sites More sharing options...
Zunder Posted September 11, 2019 Author Share Posted September 11, 2019 10 hours ago, Aizatulin said: Here is a modification. sierpinski_cloud.hipnc Thank you so much. Quote Link to comment Share on other sites More sharing options...
Zunder Posted September 11, 2019 Author Share Posted September 11, 2019 7 hours ago, lukeiamyourfather said: I haven't tried in VEX but I gave it a go a while back in Python. The scene file is attached. fractal_v001.zip Thank you for sharing) Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted September 11, 2019 Share Posted September 11, 2019 Here are other examples using the foreach node (with less spaghetti node mess ): Sierpinski 3D Sierpinski 2D Koch Curve foreach_examples.hipnc 2 Quote Link to comment Share on other sites More sharing options...
Zunder Posted September 12, 2019 Author Share Posted September 12, 2019 23 hours ago, Aizatulin said: Here are other examples using the foreach node (with less spaghetti node mess ): Sierpinski 3D Sierpinski 2D Koch Curve foreach_examples.hipnc Cool. I changed the code that you gave me and made this, it's almost the same. sierpinski.hip 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.