Accueil Carrara : Index 

 

L'éditeur de formules de Carrara Studio - Page 19

Déformations d'un tore

Tore : 

x=(a+b*cos(q))*cos(p);
y=(a+b*cos(q))*sin(p);
z=b*sin(q);

où a est le rayon majeur, b le rayon mineur, p et q les paramètres variant de -Pi à Pi

1 - Surfaces de paramétrisation : 

x=(a+b*cos(q)+c*cos(m*p))*cos(p);
y=(a+b*cos(q)+c*cos(m*p))*sin(p);
z=b*sin(q)+c*cos(m*p); 

 
Formule objet Formule texture Rendu
a=5;b=1;c=1;
m=7;
p=2*PI*u;
q=2*PI*v;
r=cos(m*p);
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp1117.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=3;
m=7;
p=2*PI*u;
q=2*PI*v;
r=cos(m*p);
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp1137.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=3;
m=3;
p=2*PI*u;
q=2*PI*v;
r=cos(m*p);
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp1133.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=1;
m=3;
p=2*PI*u;
q=2*PI*v;
r=cos(m*p);
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp1113.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=1;
m=4;
p=2*PI*u;
q=2*PI*v;
r=cos(m*p);
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp1114.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=1;
m=5;
p=2*PI*u;
q=2*PI*v;
r=cos(m*p);
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp1115.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=2;
m=5;
p=2*PI*u;
q=2*PI*v;
r=cos(m*p);
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp1125.jpg

 

2 - Surfaces de paramétrisation : 

x=(a+b*cos(m*p+n*q))*cos(p);
y=(a+b*cos(m*p+n*q))*sin(p);
z=c*b*sin(q); 

 
Formule objet Formule texture Rendu
a=5;b=1;c=5;
m=3;n=5;
p=2*PI*u;
q=2*PI*v;
x=(a+b*cos(m*p+n*q))*cos(p);
y=(a+b*cos(m*p+n*q))*sin(p);
z=c*b*sin(q);
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp2135.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=5;
m=3;n=3;
p=2*PI*u;
q=2*PI*v;
x=(a+b*cos(m*p+n*q))*cos(p);
y=(a+b*cos(m*p+n*q))*sin(p);
z=c*b*sin(q);
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp2133.jpg

 

3 - Surfaces de paramétrisation : 

x=(a+b*cos(n*q))*cos(p);
y=(a+b*cos(n*q))*sin(p);
z=c*b*sin(q); 

 
Formule objet Formule texture Rendu
a=5;b=1;c=5;
n=5;
p=2*PI*u;
q=2*PI*v;
x=(a+b*cos(n*q))*cos(p);
y=(a+b*cos(n*q))*sin(p);
z=c*b*sin(q);
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp315.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=5;
n=3;
p=2*PI*u;
q=2*PI*v;
x=(a+b*cos(n*q))*cos(p);
y=(a+b*cos(n*q))*sin(p);
z=c*b*sin(q);
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp313.jpg

 

4 - Surfaces de paramétrisation : 

x=(a+b*cos(q)+c*abs(cos(m*p)))*cos(p);
y=(a+b*cos(q)+c*abs(cos(m*p)))*sin(p);
z=b*sin(q)+c*cos(m*p); 

 
Formule objet Formule texture Rendu
a=5;b=1;c=1;
m=7;
p=2*PI*u;
q=2*PI*v;
r=abs(cos(m*p));
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp4117.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=3;
m=7;
p=2*PI*u;
q=2*PI*v;
r=abs(cos(m*p));
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp4137.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=3;
m=3;
p=2*PI*u;
q=2*PI*v;
r=abs(cos(m*p));
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp4133.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=1;
m=3;
p=2*PI*u;
q=2*PI*v;
r=abs(cos(m*p));
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp4113.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=1;
m=4;
p=2*PI*u;
q=2*PI*v;
r=abs(cos(m*p));
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp4114.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=1;
m=5;
p=2*PI*u;
q=2*PI*v;
r=abs(cos(m*p));
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp4115.jpg
 
Formule objet Formule texture Rendu
a=5;b=1;c=2;
m=5;
p=2*PI*u;
q=2*PI*v;
r=abs(cos(m*p));
x=(a+b*cos(q)+c*r)*cos(p);
y=(a+b*cos(q)+c*r)*sin(p);
z=b*sin(q)+c*r;
nt=50;
p=2*PI*(u-0.5);
q=2*PI*(v-0.5);
green=abs(cos(nt*(p-q)/2));
blue=0.5;
red=abs(cos(nt*(p+q)/2));
torinsp4125.jpg