View previous topic :: View next topic 
Author 
Message 
nextstep Site Admin
Joined: 06 Jan 2007 Posts: 539

Posted: Wed Jan 10, 2007 6:12 am Post subject: Icosahedron 


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 )
_________________ Cheers,
Abderrahman 

Back to top 


inode
Joined: 27 Jan 2007 Posts: 127 Location: Austria

Posted: Fri Feb 09, 2007 2:56 pm Post subject: 


Hi all
This figure can be also defined without a condition :
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

And if you want a different color for the sphere inside,
activate CND with the formula (x^2+y^2+z^2 > 3)
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 


nextstep Site Admin
Joined: 06 Jan 2007 Posts: 539

Posted: Fri Feb 09, 2007 3:54 pm Post subject: 


Hi all,
Brillant idea inode . _________________ Cheers,
Abderrahman 

Back to top 


tomot
Joined: 21 Jul 2007 Posts: 23 Location: Vancouver

Posted: Sat Apr 04, 2009 12:58 am Post subject: 


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 


tomot
Joined: 21 Jul 2007 Posts: 23 Location: Vancouver

Posted: Sat Apr 11, 2009 5:18 pm Post subject: 


OOPS! I did not notice it was an example in the main loaded file, sorry! 

Back to top 




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
