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

Posted: Wed Mar 12, 2014 12:46 am Post subject: Moon Exemples in MathMod 


Hi all,
I want to bring your attention to some new and amazing features in MathMod.
For this, you have to take a closer look on these two examples: Moon and Moon2
Moon:
Quote: 
{
"Iso3D": {
"Description": [
"This is a Description"
],
"Fxyz": [
"((x4*sin(t*pi/3))*(x4*sin(t*pi/3)) + (y2*cos(t*pi/3))*(y2*cos(t*pi/3)) + z*z  .6)*min( (x4*sin(t*pi/3))*(x4*sin(t*pi/3)) + (y2*cos(t*pi/3))*(y2*cos(t*pi/3)) + z*z  .6, z) +0.2",
"(x4*sin(t*pi/3))*(x4*sin(t*pi/3)) + (y2*cos(t*pi/3))*(y2*cos(t*pi/3)) + (z.2)*(z.2)  .6 ",
"(x2*sin(t*pi)4*sin(t*pi/3))*(x2*sin(t*pi)4*sin(t*pi/3)) + (y2*cos(t*pi)2*cos(t*pi/3))*(y2*cos(t*pi)2*cos(t*pi/3)) + (z.2)*(z.2)  .1"
],
"Name": [
"Moon"
],
.....
}
}

Moon2:
Quote: 
{
"Iso3D": {
"Fxyz": [
"(Ax + By+ z*z  .6)*min( Ax + By + z*z  .6, z) +0.2",
"Ax+ By + (z.2)*(z.2)  .6 ",
"Cx + Dy + (z.2)*(z.2)  .1"
],
"Name": [
"Moon2"
],
"Varu": [
" A=(u4*sin(tm*pi/10))^2",
" B=(u2*cos(tm*pi/10))^2",
"C=(u2*sin(tm*pi)4*sin(tm*pi/10))^2",
" D=(u2*cos(tm*pi)2*cos(tm*pi/10))^2"
],
....
}
}

The two examples are almost exactly the same but in the Moon2 example, we used some variable changes :
Quote: 
"Varu": [
" A=(u4*sin(tm*pi/10))^2",
" B=(u2*cos(tm*pi/10))^2",
"C=(u2*sin(tm*pi)4*sin(tm*pi/10))^2",
" D=(u2*cos(tm*pi)2*cos(tm*pi/10))^2"]

For the Moon2 example, This leads to :
1) A much smaller Mathematical model expression.
2) A fast processing by MathMod: To see the result in action, go to the drawing area and hit "p" in the keyboard (to lunch the morph effect) _________________ Cheers,
Abderrahman 

Back to top 


abdelhamid belaid
Joined: 13 Aug 2009 Posts: 170

Posted: Wed Mar 12, 2014 6:26 pm Post subject: 


fantastic, Taha , I looked for the Morph button ! _________________ My YouTube channel 

Back to top 


nextstep Site Admin
Joined: 06 Jan 2007 Posts: 539

Posted: Wed Mar 12, 2014 11:43 pm Post subject: 


Hi Abdelhamid,
Sorry I didn't mention that before...I'll include a tutorial and a documentation in the stable release.
Also, you can use the "a" key to lunch the rotation. These are the only keys available right now in the drawing window.
I Hope you`ll like it so you can make some stunning results like those you did with K3DSurf. One thing is sure, MathMod is far more extensible than K3DSurf and this is only an Alpha version so...stay tuned _________________ Cheers,
Abderrahman 

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
