HOME | DD

MathMod — Toothed Torus

#3d #mathmod #mathematics
Published: 2015-11-10 14:33:19 +0000 UTC; Views: 298; Favourites: 0; Downloads: 0
Redirect to original
Description Toothed Torus (parametric surfaces)
New deviations from the "Lobed Torus" script.
For the second and third images, replace respectively in the attached script,  "Thickness=.4*sin(2*N*v-u)s + .9*sin((N*v)% pi/3)"  by
"Thickness=.9*sin((N*v)% pi/3)" and "Thickness=if( (N*v)% pi/2pi/2 & uMathMod script:
{
   "Param3D": {
"Description ": ["Lobed Torus v1.2 by Abderrahman Taha 10/11/2015"],
"Name": ["Lobed Torus"],
"Component": ["LobedTorus"],
"Const": ["cu=0.0001",
"cv=0.0001",
"N=3"],
"Funct": ["Thickness=.4*sin(2*N*v-u) + .9*sin((N*v)% pi/3)",
"Fx= (N/2+1+ .6*cos(u))*cos(v)",
"Fy=.6*sin(u)",
"Fz= (N/2+1+ .6*cos(u))*sin(v)",
"DFxu= ((Fx(u,v,t)-Fx(u+cu,v,t))/cu)",
"DFxv= ((Fx(u,v,t)-Fx(u,v+cv,t))/cv)",
"DFyu= ((Fy(u,v,t)-Fy(u+cu,v,t))/cu)",
"DFyv= ((Fy(u,v,t)-Fy(u,v+cv,t))/cv)",
"DFzu= ((Fz(u,v,t)-Fz(u+cu,v,t))/cu)",
"DFzv= ((Fz(u,v,t)-Fz(u,v+cv,t))/cv)",
"n1= (DFyu(u,v,t)*DFzv(u,v,t)-DFzu(u,v,t)*DFyv(u,v,t))",
"n2= (DFzu(u,v,t)*DFxv(u,v,t)-DFxu(u,v,t)*DFzv(u,v,t))",
"n3= (DFxu(u,v,t)*DFyv(u,v,t)-DFyu(u,v,t)*DFxv(u,v,t))",
"R=sqrt(n1(u,v,t)^2+n2(u,v,t)^2+n3(u,v,t)^2)",
"Gx=Fx(u,v,t)+Thickness(u,v,t)*n1(u,v,t)/R(u,v,t)",
"Gy=Fy(u,v,t)+Thickness(u,v,t)*n2(u,v,t)/R(u,v,t)",
"Gz=Fz(u,v,t)+Thickness(u,v,t)*n3(u,v,t)/R(u,v,t)"],
"Fx": ["Gx(u,v,t)"],
"Fy": ["Gy(u,v,t)"],
"Fz": ["Gz(u,v,t)"],
"Umax": ["2*pi"],
"Umin": ["0"],
"Vmax": ["2*pi"],
"Vmin": ["0"]
},
"Texture": {
"Colors": ["R=.9",
"G=.8*abs(cos((pi*(x*x+y*y+z*z))))",
"B=.6*abs(cos(cos(pi*(x*x+y*y+z*z))))",
"T=1"],
"Name": "Dream",
"Noise": "NoiseW(2*x,2*y,2*z,8,1,2)"
}
}
Related content
Comments: 0