Icosahedron

 
Post new topic   Reply to topic    K3DSurf forum Forum Index -> Mathematical Models Collection
View previous topic :: View next topic  
Author Message
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 538

PostPosted: Wed Jan 10, 2007 6:12 am    Post subject: Icosahedron Reply with quote

Hi all,
One beautiful example with it's associated minimal .Obj mesh generated
by K3DSurf:
Quote:

F(x, y, z) = if((x^2 + y^2 +z^2 < 35),
2 - (cos(x + (1+sqrt(5))/2*y) + cos(x - (1+sqrt(5))/2*y) + cos(y + (1+sqrt(5))/2*z) + cos(y - (1+sqrt(5))/2*z) + cos(z - (1+sqrt(5))/2*x) + cos(z + (1+sqrt(5))/2*x)) ,
1)
[x]:-5.5, 5.5
[y]:-5.5, 5.5
[z]:-5.5, 5.5

( and Yes, formulas with the "if" instruction
should work with all K3DSurf version Wink )


_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
inode



Joined: 27 Jan 2007
Posts: 127
Location: Austria

PostPosted: Fri Feb 09, 2007 2:56 pm    Post subject: Reply with quote

Hi all

This figure can be also defined without a condition Cool :
Code:
F(x,y,z) = 2 - (cos(x + (1+sqrt(5))/2*y) + cos(x - (1+sqrt(5))/2*y) + cos(y + (1+sqrt(5))/2*z) + cos(y - (1+sqrt(5))/2*z) + cos(z - (1+sqrt(5))/2*x) + cos(z + (1+sqrt(5))/2*x))*16/(x*x+y*y+z*z)
[x]: -5, 5
[y]: -5, 5
[z]: -5, 5

Arrow And if you want a different color for the sphere inside,
activate CND with the formula (x^2+y^2+z^2 > 3)

Arrow if you choose (x^2+y^2+z^2 > 2.5)
you'll get patterned sphere.


Last edited by inode on Sun Feb 25, 2007 8:10 am; edited 3 times in total
Back to top View user's profile Send private message
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 538

PostPosted: Fri Feb 09, 2007 3:54 pm    Post subject: Reply with quote

Hi all,
Brillant idea inode Very Happy .
_________________
Cheers,
Abderrahman
Back to top View user's profile Send private message
tomot



Joined: 21 Jul 2007
Posts: 23
Location: Vancouver

PostPosted: Sat Apr 04, 2009 12:58 am    Post subject: Reply with quote

FYI: To make the Icosahedron you have to use the following code, if you are using the latest version of K3dSurf:

Code:
F():if((x^2 + y^2 +z^2 < 35),
2 - (cos(x + (1+sqrt(5))/2*y) + cos(x - (1+sqrt(5))/2*y) + cos(y + (1+sqrt(5))/2*z) + cos(y - (1+sqrt(5))/2*z) + cos(z - (1+sqrt(5))/2*x) + cos(z + (1+sqrt(5))/2*x)) ,
(x^2 + y^2 +z^2 -35))
[x]:-5.5, 5.5
[y]:-5.5, 5.5
[z]:-5.5, 5.5
Back to top View user's profile Send private message
tomot



Joined: 21 Jul 2007
Posts: 23
Location: Vancouver

PostPosted: Sat Apr 11, 2009 5:18 pm    Post subject: Reply with quote

OOPS! I did not notice it was an example in the main loaded file, sorry!
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    K3DSurf forum Forum Index -> Mathematical Models Collection All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


2005 Powered by phpBB © 2001, 2005 phpBB Group


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com