1 \documentclass{article
}
2 \usepackage{pst-solides3d,pst-node,pst-plot,multido,url
}
3 \usepackage[latin1]{inputenc}
4 \usepackage[T1]{fontenc}
7 \usepackage[a4paper,bottom=
2.5cm,top=
2cm
]{geometry
}
8 %%\usepackage[frenchle]{babel}
11 \title{\texttt{pst-solides3d
} :\\
17 %\psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz}
18 \psset{viewpoint=
50 20 30 rtp2xyz
}
20 \section {Test Tube avec jps
}
23 \psset{lightsrc=
80 30 30,viewpoint=
100 45 45 rtp2xyz,Decran=
100,linewidth=
0.1pt
}
24 \begin{pspicture
}(-
3.5,-
2)(
4,
4)
25 \psframe*(-
3.5,-
2)(
4,
4)
27 /rpn
{tx@AlgToPs begin AlgToPs end cvx exec
} def
28 /xcy
{(-
2.065260000*sin(t)+
2.065260000*cos(
3*t)*sin(t)+
.8624533334*cos(t)*sin(
3*t)) rpn
} def
29 /ycy
{(
2.065260000*cos(t)-
2.065260000*cos(
3*t)*cos(t)+
.8624533334*sin(
3*t)*sin(t)) rpn
} def
30 /zcy
{(
2/
3*sin(
1.668)*(
1-cos(
3*t))) rpn
} def
31 /xcy'
{(-
2.065260000*cos(t)-
7.058233333*sin(
3*t)*sin(t)+
4.652620000*cos(
3*t)*cos(t)) rpn
} def
32 /ycy'
{(-
2.065260000*sin(t)+
7.058233333*cos(t)*sin(
3*t)+
4.652620000*cos(
3*t)*sin(t)) rpn
} def
33 /zcy'
{(
2*sin(
1.668)*sin(
3*t)) rpn
} def
34 %% /xcy'' {(2.065260000*sin(t)-25.82732000*cos(3*t)*sin(t)-21.01609333*cos(t)*sin(3*t)) rpn } def
35 %% /ycy'' {(-2.065260000*cos(t)-21.01609333*sin(3*t)*sin(t)+25.82732000*cos(3*t)*cos(t)) rpn } def
36 %% /zcy'' {(6*sin(1.668)*cos(3*t)) rpn } def
44 /g'
{ % dérivée première
50 %% /g'' { % dérivée seconde
57 % t_min t_max rayon_tube [resolution]
58 0 6.28 (g)
.25 [36 6] newtube
59 dup
[.1 .3] solidputhuecolors
} def
65 \section {Test Tube avec PSTricks
}
70 \psset{lightsrc=
80 30 30,viewpoint=
100 45 45 rtp2xyz,Decran=
100,linewidth=
0.1pt
}
71 \begin{pspicture
}(-
3.5,-
2)(
4,
4)
72 \psframe(-
3.5,-
2)(
4,
4)
73 \defFunction[algebraic
]{F
}(t)
74 {-
2.065260000*sin(t)+
2.065260000*cos(
3*t)*sin(t)+
.8624533334*cos(t)*sin(
3*t)
}
75 {2.065260000*cos(t)-
2.065260000*cos(
3*t)*cos(t)+
.8624533334*sin(
3*t)*sin(t)
}
76 {2/
3*sin(
1.668)*(
1-cos(
3*t))
}
77 \defFunction[algebraic
]{F'
}(t)
78 {-
2.065260000*cos(t)-
7.058233333*sin(
3*t)*sin(t)+
4.652620000*cos(
3*t)*cos(t)
}
79 {-
2.065260000*sin(t)+
7.058233333*cos(t)*sin(
3*t)+
4.652620000*cos(
3*t)*sin(t)
}
80 {2*sin(
1.668)*sin(
3*t)
}
81 %% \defFunction[algebraic]{F''}(t)
82 %% {2.065260000*sin(t)-25.82732000*cos(3*t)*sin(t)-21.01609333*cos(t)*sin(3*t)}
83 %% {-2.065260000*cos(t)-21.01609333*sin(3*t)*sin(t)+25.82732000*cos(3*t)*cos(t)}
84 %% {6*sin(1.668)*cos(3*t)}
85 \psSolid[object=courbe,
94 \psset{lightsrc=
80 30 30,viewpoint=
100 45 45 rtp2xyz,Decran=
100,linewidth=
0.1pt
}
95 \begin{pspicture
}(-
3.5,-
2)(
4,
4)
96 \psframe(-
3.5,-
2)(
4,
4)
97 \defFunction[algebraic
]{F
}(t)
98 {-
2.065260000*sin(t)+
2.065260000*cos(
3*t)*sin(t)+
.8624533334*cos(t)*sin(
3*t)
}
99 {2.065260000*cos(t)-
2.065260000*cos(
3*t)*cos(t)+
.8624533334*sin(
3*t)*sin(t)
}
100 {2/
3*sin(
1.668)*(
1-cos(
3*t))
}
101 %% \defFunction[algebraic]{F'}(t)
102 %% {-2.065260000*cos(t)-7.058233333*sin(3*t)*sin(t)+4.652620000*cos(3*t)*cos(t)}
103 %% {-2.065260000*sin(t)+7.058233333*cos(t)*sin(3*t)+4.652620000*cos(3*t)*sin(t)}
104 %% {2*sin(1.668)*sin(3*t)}
105 %% \defFunction[algebraic]{F''}(t)
106 %% {2.065260000*sin(t)-25.82732000*cos(3*t)*sin(t)-21.01609333*cos(t)*sin(3*t)}
107 %% {-2.065260000*cos(t)-21.01609333*sin(3*t)*sin(t)+25.82732000*cos(3*t)*cos(t)}
108 %% {6*sin(1.668)*cos(3*t)}
109 \psSolid[object=courbe,
115 %% %0 6.28 {F} newcourbe drawsolid*
116 %% 0 6.28 {F} [20] newcourbe drawsolid*