Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / doc / par-solidespredefinis.tex
1 \section[Paramètres]{Les principaux solides prédéfinis et leurs paramètres}
2
3 La commande de base est~:~
4 \Cadre{\textbackslash psSolid[object=\textsl{nom}]$(x, y ,z)$} qui permet
5 de tracer l'objet désigné par \textsl{nom} au point de coordonnées $(x, y,
6 z)$.
7
8 Les objets disponibles sont~:
9 {\ttfamily%\flushleft \hyphenchar\font`\-%
10 cube, cylindre, cylindrecreux, cone, conecreux, tronccone,\\
11 troncconecreux, sphere, calottesphere, tore, anneau,
12 tetrahedron, octahedron, dodecahedron,\\
13 isocahedron, prisme, grille, parallelepiped, face, ruban, surface,
14 plan, geode,vecteur.}
15
16 Le tableau ci-dessous donne un exemple de chacun des solides avec ses
17 paramètres propres~:
18
19 \begin{center}
20 \psset{lightsrc=10 5 20,viewpoint=50 20 30 rtp2xyz}
21 \begin{tabular}{>{\bfseries\sffamily\color{blue}}lcm{4cm}m{5cm}}
22 \hline
23 \toptableau
24 \\\hline
25 cube& \texttt{[a=4]} arête&
26 \begin{pspicture}(-2,-2)(2,2)
27 % \psframe(-2,-2)(2,2)
28 \psset{Decran=60}
29 \psSolid[
30 object=cube,a=2,action=draw*,fillcolor=magenta!20]%
31 \axesIIID(1,1,1)(1.5,1.5,1.5)
32 \end{pspicture}
33 &
34 \begin{minipage}{5cm}
35 \begin{verbatim}
36 \psSolid[
37 object=cube,
38 a=2,
39 action=draw*,
40 fillcolor=magenta!20]
41 \end{verbatim}
42 \end{minipage}
43 \\\hline
44 cylindre&
45 \begin{tabular}{c}
46 \texttt{[h=6,r=2]}\\
47 hauteur et rayon\\
48 le maillage :\\
49 \texttt{[ngrid=n1 n2]}
50 \end{tabular}
51 &
52 \begin{pspicture}(-2,-2.5)(2,3)
53 % \psframe(-2,-2)(2,2)
54 \psset{Decran=30}
55 \psSolid[object=cylindre,h=5,r=2,fillcolor=white,ngrid=4 32](0,0,-3)
56 \axesIIID(2,2,2.5)(3,3,3.5)
57 \end{pspicture}
58 &
59 \begin{minipage}{5cm}
60 \begin{verbatim}
61 \psSolid[
62 object=cylindre,
63 h=5,r=2,
64 fillcolor=white,
65 ngrid=4 32](0,0,-3)
66 \end{verbatim}
67 \end{minipage}
68 \\\hline
69 cylindre creux&
70 \begin{tabular}{c}
71 \texttt{[h=6,r=2]}\\
72 hauteur et rayon\\
73 le maillage :\\
74 \texttt{[ngrid=n1 n2]}
75 \end{tabular}
76 &
77 \begin{pspicture}(-2,-2.5)(2,3)
78 % \psframe(-2,-2)(2,2)
79 \psset{Decran=30}
80 \psSolid[object=cylindrecreux,h=5,r=2,fillcolor=white,mode=4,incolor=green!50](0,0,-2.5)
81 \axesIIID(2,2,2.5)(3,3,4.5)
82 \end{pspicture}
83 &
84 \begin{minipage}{5cm}
85 \begin{verbatim}
86 \psSolid[
87 object=cylindrecreux,
88 h=5,r=2,
89 fillcolor=white,
90 mode=4,
91 incolor=green!50]
92 (0,0,-3)
93 \end{verbatim}
94 \end{minipage}
95 \\\hline
96 \end{tabular}
97 \end{center}
98
99 \begin{center}
100 \psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz}
101 \begin{tabular}{>{\bfseries\sffamily\color{blue}}lcm{4cm}m{5cm}}
102 \hline
103 \toptableau
104 \\\hline
105 cone&
106 \begin{tabular}{c}
107 \texttt{[h=6,r=2]}\\
108 hauteur et rayon\\
109 le maillage :\\
110 \texttt{[ngrid=n1 n2]}
111 \end{tabular}
112 &
113 \begin{pspicture}(-2,-1)(2,4)
114 % \psframe(-2,-2)(2,2)
115 \psset{Decran=30}
116 \psSolid[object=cone,h=5,r=2,fillcolor=cyan,mode=4]%
117 \axesIIID(2,2,5)(2.5,2.5,6)
118 \end{pspicture}
119 &
120 \begin{minipage}{5cm}
121 \begin{verbatim}
122 \psSolid[
123 object=cone,
124 h=5,r=2,
125 fillcolor=cyan,
126 mode=4]%
127 \end{verbatim}
128 \end{minipage}
129 \\\hline
130 cone creux&
131 \begin{tabular}{c}
132 \texttt{[h=6,r=2]}\\
133 hauteur et rayon\\
134 le maillage :\\
135 \texttt{[ngrid=n1 n2]}
136 \end{tabular}
137 &
138 \begin{pspicture}(-2,-1)(2,4)
139 % \psframe(-2,-2)(2,2)
140 \psset{Decran=30}
141 \psSolid[object=conecreux,h=5,r=2,fillcolor=white,mode=4,RotY=-60,incolor=green!50]%
142 \axesIIID(2,2,5)(2.5,2.5,6)
143 \end{pspicture}
144 &
145 \begin{minipage}{5cm}
146 \begin{verbatim}
147 \psSolid[
148 object=conecreux,
149 h=5,r=2,
150 RotY=-60,
151 fillcolor=white,
152 incolor=green!50,
153 mode=4]%
154 \end{verbatim}
155 \end{minipage}
156 \\\hline
157 tronc de cone&
158 \begin{tabular}{c}
159 \texttt{[h=6,r0=4,r1=1.5]}\\
160 hauteur et rayons\\
161 le maillage :\\
162 \texttt{[ngrid=n1 n2]}
163 \end{tabular}
164 &
165 \begin{pspicture}(-2,-1)(2,4)
166 % \psframe(-2,-2)(2,2)
167 \psset{Decran=30}
168 \psSolid[object=tronccone,r0=2,r1=1.5,h=5,fillcolor=cyan,mode=4]%
169 \axesIIID(2,2,5)(2.5,2.5,6)
170 \end{pspicture}
171 &
172 \begin{minipage}{5cm}
173 \begin{verbatim}
174 \psSolid[
175 object=tronccone,
176 r0=2,r1=1.5,h=5,
177 fillcolor=cyan,
178 mode=4]%
179 \end{verbatim}
180 \end{minipage}
181 \\\hline
182 \begin{tabular}{c}
183 tronc de \\
184 cone creux
185 \end{tabular}
186 &
187 \begin{tabular}{c}
188 \texttt{[h=6,r0=4,r1=1.5]}\\
189 hauteur et rayons\\
190 le maillage :\\
191 \texttt{[ngrid=n1 n2]}
192 \end{tabular}
193 &
194 \begin{pspicture}(-2,-1)(2,4)
195 % \psframe(-2,-2)(2,2)
196 \psset{Decran=30}
197 \psSolid[object=troncconecreux,r0=2,r1=1,h=5,fillcolor=white,mode=4]%
198 \axesIIID(2,2,5)(2.5,2.5,6)
199 \end{pspicture}
200 &
201 \begin{minipage}{5cm}
202 \begin{verbatim}
203 \psSolid[
204 object=troncconecreux,
205 r0=2,r1=1,h=5,
206 fillcolor=white,
207 mode=4]%
208 \end{verbatim}
209 \end{minipage}
210 \\\hline
211 \end{tabular}
212 \end{center}
213
214 %\newpage
215
216 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
217 \begin{center}
218 \psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz}
219 %\begin{tabular}{>{\bfseries\sffamily\color{blue}}lcm{4cm}m{5cm}}
220 \begin{tabular}{
221 >{\bfseries\sffamily\color{blue}} l
222 >{\centering} m{4cm} m{4cm} m{5cm}}
223 \hline
224 \toptableau
225 \\\hline
226 sphère &
227 \begin{tabular}{c}
228 \texttt{[r=2]} rayon\\
229 le maillage :\\
230 \texttt{[ngrid=n1 n2]}
231 \end{tabular}
232 &
233 \begin{pspicture}(-2,-2)(2,3)
234 % \psframe(-2,-2)(2,2)
235 \psset{Decran=30}
236 \psSolid[object=sphere,r=3,fillcolor=red!25,ngrid=18 18,linewidth=0.2\pslinewidth]%
237 \axesIIID(3,3,3)(4,4,4)
238 \end{pspicture}
239 &
240 \begin{minipage}{5cm}
241 \begin{verbatim}
242 \psSolid[
243 object=sphere,
244 r=2,fillcolor=red!25,
245 ngrid=18 18]%
246 \end{verbatim}
247 \end{minipage}
248 \\\hline
249 \begin{tabular}{c}
250 calotte \\
251 sphérique
252 \end{tabular} &
253 \begin{tabular}{c}
254 \texttt{[r=2]} rayon\\
255 \texttt{[phi=0,theta=90]} \\
256 latitudes pour découper\\
257 la calotte respectivement \\
258 vers le bas et le haut \\
259 \end{tabular}
260 &
261 \psset{unit=0.44}
262 \begin{pspicture}(-4,-5)(5,5.5)
263 \psset{lightsrc=42 24 13,viewpoint=50 30 15 rtp2xyz,Decran=50}
264 \psSolid[object=calottesphere,r=3,ngrid=16 18,
265 fillcolor=cyan!50,incolor=yellow,theta=45,phi=-30,hollow,RotY=-80]%
266 \axesIIID(0,3,3)(6,5,4)
267 \end{pspicture}
268 &
269 \begin{minipage}{5cm}
270 \begin{verbatim}
271 \psSolid[
272 object=calottesphere,
273 r=3,ngrid=16 18,
274 theta=45,phi=-30,
275 hollow,RotY=-80]%
276 \end{verbatim}
277 \end{minipage}
278 \\\hline
279 tore &
280 \begin{tabular}{c}
281 \texttt{[r0=4,r1=1.5]} \\
282 rayon intérieur\\
283 rayon moyen\\
284 le maillage :\\
285 \texttt{[ngrid=n1 n2]}
286 \end{tabular}
287 &
288 \begin{pspicture}(-2,-2)(2,3)
289 % \psframe(-2,-2)(2,2)
290 \psset{Decran=30,unit=0.9}
291 \psSolid[r1=2.5,r0=1.5,object=tore,ngrid=18 36,fillcolor=green!30,action=draw**]%
292 \axesIIID(4,4,0)(5,5,4)
293 \end{pspicture}
294 &
295 \begin{minipage}{5cm}
296 \begin{verbatim}
297 \psSolid[
298 r1=2.5,r0=1.5,
299 object=tore,
300 ngrid=18 36,
301 fillcolor=green!30,
302 action=draw*]%
303 \end{verbatim}
304 \end{minipage}
305 \\\hline
306 \begin{tabular}{c}
307 anneau \\
308 cylindrique
309 \end{tabular}
310 &
311 \begin{tabular}{c}
312 \texttt{[r1=2.5,r0=1.5,}
313 \\
314 \texttt{h=6,section=...]}
315 \\
316 rayon extérieur
317 \\
318 rayon intérieur
319 \\
320 hauteur
321 \\
322 section \\
323 rectangulaire
324 \end{tabular}
325 &
326 \begin{pspicture}(-2,-2)(2,3)
327 % \psframe(-2,-2)(2,2)
328 \psset{Decran=30}
329 \psSolid[object=anneau,fillcolor=yellow,h=1.5,r1=4,r0=3]%
330 \axesIIID(4,4,0)(5,5,4)
331 \end{pspicture}
332 &
333 \begin{minipage}{5cm}
334 \begin{verbatim}
335 \psSolid[
336 object=anneau,
337 fillcolor=yellow,
338 h=1.5,r1=4,r0=3]%
339 \end{verbatim}
340 \end{minipage}
341 \\\hline
342 \end{tabular}
343 \end{center}
344 Une documentation spécifique aux anneaux circulaires et aux
345 parallélépipèdes est fournie dans la partie exemples :
346 \begin{itemize}
347 \item \texttt{doc-grille-parallelepiped.tex(.pdf)} ;
348 \item \texttt{doc-anneau.tex(.pdf).}
349 \end{itemize}
350
351 %\clearpage
352
353 \begin{center}
354 \psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz}
355 %\begin{tabular}{>{\bfseries\sffamily\color{blue}}lcm{4cm}m{6cm}}
356 \begin{tabular}{
357 >{\bfseries\sffamily\color{blue}} l
358 >{\centering} m{4cm} m{4cm} m{5cm}}
359 \hline
360 \toptableau
361 \\\hline
362 tétraèdre&
363 \begin{tabular}{c}
364 \texttt{[a=2]} rayon\\
365 de la sphère\\
366 circonscrite
367 \end{tabular}
368 &
369 \begin{pspicture}(-2,-2)(2,2)
370 % \psframe(-2,-2)(2,2)
371 \psset{Decran=30}
372 \psSolid[object=tetrahedron,r=3,linecolor=blue,action=draw]%
373 \end{pspicture}
374 &
375 \begin{minipage}{5cm}
376 \begin{verbatim}
377 \psSolid[
378 object=tetrahedron,
379 r=3,
380 linecolor=blue,
381 action=draw]%
382 \end{verbatim}
383 \end{minipage}
384 \\\hline
385 octaèdre &
386 \begin{tabular}{c}
387 \texttt{[a=2]} rayon\\
388 de la sphère\\
389 circonscrite
390 \end{tabular}
391 &
392 \begin{pspicture}(-2,-1.85)(2,2.85)
393 % \psframe(-2,-2)(2,2)
394 \psset{Decran=30}
395 \psSolid[object=octahedron,a=3,linecolor=blue,fillcolor=Turquoise]%
396 \axesIIID(3,3,3)(4,4,4)
397 \end{pspicture}
398 &
399 \begin{minipage}{5cm}
400 \begin{verbatim}
401 \psSolid[
402 object=octahedron,
403 a=3,
404 linecolor=blue,
405 fillcolor=Turquoise]%
406 \end{verbatim}
407 \end{minipage}
408 \\\hline
409 dodécaèdre &
410 \begin{tabular}{c}
411 \texttt{[a=2]} rayon\\
412 de la sphère\\
413 circonscrite
414 \end{tabular}
415 &
416 \begin{pspicture}(-2,-1.85)(2,1.85)
417 % \psframe(-2,-2)(2,2)
418 \psset{Decran=30}
419 \psSolid[object=dodecahedron,a=2.5,RotZ=90,action=draw*,fillcolor=OliveGreen]%
420 \end{pspicture}
421 &
422 \begin{minipage}{5cm}
423 \begin{verbatim}
424 \psSolid[
425 object=dodecahedron,
426 a=2.5,RotZ=90,
427 action=draw*,
428 fillcolor=OliveGreen]%
429 \end{verbatim}
430 \end{minipage}
431 \\ \hline
432 icosaèdre &
433 \begin{tabular}{c}
434 \texttt{[a=2]} rayon\\
435 de la sphère\\
436 circonscrite
437 \end{tabular}
438 &
439 \begin{pspicture}(-2,-1.85)(2,2.85)
440 % \psframe(-2,-2)(2,2)
441 \psset{Decran=30}
442 \psSolid[object=icosahedron,a=3,action=draw*,fillcolor=green!50]%
443 \axesIIID(3,3,3)(4,4,4)
444 \end{pspicture}
445 &
446 \begin{minipage}{5cm}
447 \begin{verbatim}
448 \psSolid[
449 object=icosahedron,
450 a=3,
451 action=draw*,
452 fillcolor=green!50]%
453 \end{verbatim}
454 \end{minipage}
455 \\\hline
456 prisme
457 &
458 \begin{tabular}{c}
459 \texttt{[axe=0 0 1]}
460 \\
461 direction de l'axe
462 \\
463 \texttt{[base=}\\
464 \texttt{-1 -1 1 -1 0 1]}
465 \\
466 coordonnées\\
467 des sommets\\
468 de la base\\
469 \texttt{[h=6]} hauteur
470 \end{tabular}
471 &
472 \begin{pspicture}(-2,-2)(2,3)
473 % \psframe(-2,-2)(2,2)
474 \psset{Decran=30,unit=0.9}
475 \psSolid[object=prisme,action=draw*,linecolor=red,h=4,fillcolor=gray!50]%
476 \psSolid[object=grille,base=-3 3 -3 3,action=draw]%
477 \axesIIID(3,3,4)(5,5,5)
478 \end{pspicture}
479 &
480 \begin{minipage}{5cm}
481 \begin{verbatim}
482 \psSolid[
483 object=prisme,
484 action=draw*,
485 linecolor=red,
486 h=4]%
487 \end{verbatim}
488 \end{minipage}
489 \\\hline
490 \end{tabular}
491 \end{center}
492
493 %\newpage
494 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
495 \begin{center}
496 \psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz}
497 %\begin{tabular}{>{\bfseries\sffamily\color{blue}}lcm{4cm}m{6cm}}
498 \begin{tabular}{
499 >{\bfseries\sffamily\color{blue}} l
500 >{\centering} m{4cm} m{4cm} m{5cm}}
501 \hline
502 \toptableau
503 \\\hline
504 grille
505 &
506 \begin{tabular}{c}
507 \texttt{[base=-X +X -Y +Y]}
508 \end{tabular}
509 &
510 \begin{pspicture}(-1.5,-2)(2,3)
511 % \psframe(-2,-2)(2,2)
512 \psset{Decran=30,unit=0.9}
513 \psSolid[object=grille,base=-5 5 -3 3]%
514 \axesIIID(5,3,0)(6,4,4)
515 \end{pspicture}
516 &
517 \begin{minipage}{5cm}
518 \begin{verbatim}
519 \psSolid[
520 object=grille,
521 base=-5 5 -3 3]%
522 \end{verbatim}
523 \end{minipage}
524 \\\hline
525 %
526 parallélépipède
527 &
528 \begin{tabular}{c}
529 \texttt{[a=4,b=a,c=a]}\\
530 centre en O
531 \end{tabular}
532 &
533 \begin{pspicture}(-1.5,-2)(2,3)
534 \psset{Decran=30}
535 \psSolid[object=parallelepiped,a=5,b=6,c=2,fillcolor=bleuciel](0,0,c 2 div)
536 \psSolid[object=grille,base=-2.5 2.5 -3 3,action=draw](0,0,2)
537 \psSolid[object=grille,base=-1 1 -3 3,RotY=90,action=draw](2.5,0,1)
538 \psSolid[object=grille,base=-2.5 2.5 -1 1,RotX=-90,action=draw](0,3,1)
539 \axesIIID(2.5,3,2)(3.5,4,4)
540 \end{pspicture}
541 &
542 \begin{minipage}{5cm}
543 \begin{verbatim}
544 \psSolid[
545 object=parallelepiped,%
546 a=5,b=6,c=2,
547 fillcolor=yellow]%
548 (0,0,c 2 div)
549 \end{verbatim}
550 \end{minipage}
551 \\\hline
552 %
553 face
554 &
555 \begin{tabular}{l}
556 \texttt{[base=x0 y0 x1 y1}\\
557 \texttt{~ x2 y2 etc.]}\\
558 les coordonnées \\
559 des sommets\\
560 dans le sens trigo
561 \end{tabular}
562 &
563 \psset{unit=0.4}
564 \psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
565 \begin{pspicture}(-4,-4)(5,4)
566 \psSolid[object=grille,base=-4 6 -4 4,action=draw,linecolor=gray](0,0,0)
567 \psSolid[object=face,fillcolor=yellow,
568 incolor=blue,
569 base=0 0 3 0 1.5 3
570 ](0,1,0)
571 \psSolid[object=face,fillcolor=yellow,
572 incolor=blue,
573 base=0 0 3 0 1.5 3,
574 RotX=180](0,-1,0)
575 \axesIIID(0,0,0)(6,6,3)
576 \end{pspicture}
577 &
578 \begin{minipage}{5cm}
579 \begin{verbatim}
580 \psSolid[
581 object=face,
582 fillcolor=yellow,
583 incolor=blue,
584 base=0 0 3 0 1.5 3
585 ](0,1,0)
586 \psSolid[
587 object=face,
588 fillcolor=yellow,
589 incolor=blue,
590 base=0 0 3 0 1.5 3,
591 RotX=180](0,-1,0)
592 \end{verbatim}
593 \end{minipage}
594 \\\hline
595 %
596 ruban
597 &
598 \begin{tabular}{l}
599 \texttt{[base=x0 y0 x1 y1}\\
600 \texttt{~ x2 y2 etc.]}\\
601 \texttt{[h=hauteur]}\\
602 \texttt{[ngrid=valeur]}\\
603 nombre de mailles\\
604 verticalement\\
605 \texttt{[axe=0 0 1]}\\
606 direction de l'inclinaison\\
607 du ruban
608 \end{tabular}
609 &
610 \psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50,unit=0.5}
611 \begin{pspicture}(-2,-4)(5,7)
612 \psSolid[object=grille,base=-4 6 -2 4,action=draw,linecolor=gray](0,0,0)
613 \psSolid[object=ruban,h=3,fillcolor=red!50,
614 base=0 0 2 2 4 0 6 2,
615 num=0 1 2 3,
616 show=0 1 2 3,
617 ngrid=3]%
618 \axesIIID(0,2,0)(6,6,6)
619 \end{pspicture}
620 &
621 \begin{minipage}{5cm}
622 \begin{verbatim}
623 \psSolid[
624 object=ruban,h=3,
625 fillcolor=red!50,
626 base=0 0 2 2 4 0 6 2,
627 num=0 1 2 3,
628 show=0 1 2 3,
629 ngrid=3])
630 \end{verbatim}
631 \end{minipage}
632 \\\hline
633 \end{tabular}
634 \end{center}
635
636 %\newpage
637
638 %\begin{center}
639 %\psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz}
640 %%\begin{tabular}{>{\bfseries\sffamily\color{blue}}lcm{4cm}m{6cm}}
641 %\begin{tabular}{
642 % >{\bfseries\sffamily\color{blue}} l
643 % >{\centering} m{4cm} m{4cm} m{5cm}}
644 % \hline
645 %\toptableau
646 %% chemin
647 %% &
648 %% \begin{tabular}{l}
649 %% dessine un chemin\\
650 %% défini en postscript\\
651 %% sur un plan
652 %% \end{tabular}
653 %% &
654 %% \psset{unit=0.4}
655 %% \begin{pspicture}(-2,-5)(6,8)%
656 %% \psframe*[linecolor=blue!50](-6,-5)(6,7)
657 %% \psset{lightsrc=50 20 20,viewpoint=50 30 15,Decran=60}
658 %% \psProjection[object=chemin,fillstyle=solid,fillcolor=white,
659 %% linewidth=.05,linecolor=red,
660 %% normal=1 1 2 180,
661 %% path=newpath
662 %% -4 -4 smoveto
663 %% -4 4 slineto
664 %% 4 4 slineto
665 %% 4 -4 slineto
666 %% closepath
667 %% ](1,1,2)
668 %% \psProjection[object=chemin,
669 %% linewidth=.02,
670 %% normal=1 1 2 180,
671 %% path=newpath
672 %% -4 1 4
673 %% {-4 exch smoveto
674 %% 8 0 srlineto} for
675 %% -4 1 4
676 %% {-4 smoveto
677 %% 0 8 srlineto} for
678 %% ](1,1,2)
679 %% \psProjection[object=chemin,fillstyle=hlines,hatchcolor=yellow,
680 %% linecolor=red,
681 %% normal=1 1 2 180,
682 %% path=newpath
683 %% 2 0 moveto
684 %% 0 2 360 {
685 %% /x exch def
686 %% x cos 2 mul
687 %% x sin 2 mul
688 %% slineto
689 %% } for
690 %% ](1,1,2)
691 %% \psPoint(0,0,0){O}
692 %% \psPoint(1,1,2){O1}\psPoint(1.4,1.4,2.8){K}
693 %% \psline[linewidth=.1,linecolor=red](O1)(K)
694 %% \psline[linestyle=dashed](O)(O1)
695 %% \psProjection[object=chemin,
696 %% linewidth=.1,
697 %% linecolor=green,
698 %% normal=1 1 2 180,
699 %% path=
700 %% newpath
701 %% 0 0 smoveto
702 %% 1 0 slineto](1,1,2)
703 %% \psProjection[object=chemin,
704 %% linewidth=.1,
705 %% linecolor=blue,
706 %% normal=1 1 2 180,
707 %% path=
708 %% newpath
709 %% 0 0 smoveto
710 %% 0 1 slineto](1,1,2)
711 %% \axesIIID(4,4,2)(5,5,6)
712 %% \end{pspicture}
713 %% &
714 %% \begin{minipage}{6cm}
715 %% \begin{verbatim}
716 %% \psProjection[object=chemin,
717 %% fillstyle=hlines,
718 %% hatchcolor=yellow,
719 %% linecolor=red,
720 %% normal=1 1 2 180,
721 %% path=newpath
722 %% 2 0 smoveto
723 %% 0 2 360 {
724 %% /x exch def
725 %% x cos 2 mul
726 %% x sin 2 mul
727 %% slineto
728 %% } for
729 %% ](1,1,2)
730 %% \end{verbatim}
731 %% \end{minipage}
732 %\end{tabular}
733 %\end{center}
734
735 %\newpage
736 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
737 \begin{center}
738 \psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz}
739 %\begin{tabular}{>{\bfseries\sffamily\color{blue}}lcm{4cm}m{6cm}}
740 \begin{tabular}{
741 >{\bfseries\sffamily\color{blue}} l
742 >{\centering} m{4cm} m{4cm} m{5cm}}
743 \hline
744 \toptableau
745 \\\hline
746 surface
747 &
748 \begin{tabular}{l}
749 voir la \\
750 documentation\\
751 spécifique
752 \end{tabular}
753 &
754 \psset{unit=0.4}
755 \psset{lightsrc=30 30 25}
756 \psset{viewpoint=50 40 30 rtp2xyz,Decran=50}
757 \begin{pspicture}(-4,-8)(6,8)
758 \psSurface[ngrid=.25 .25,incolor=white,axesboxed](-4,-4)(4,4){%
759 x dup mul y dup mul 3 mul sub x mul 32 div}
760 \end{pspicture}
761 &
762 \begin{minipage}{5cm}
763 \begin{verbatim}
764 \psSurface[ngrid=.25 .25,
765 incolor=Wwhite,axesboxed]
766 (-4,-4)(4,4){%
767 x dup mul y dup mul 3 mul
768 sub x mul 32 div}
769 \end{verbatim}
770 \end{minipage}
771 \\\hline
772 %
773 new
774 &
775 \begin{tabular}{l}
776 solide défini\\
777 par les coordonnées \\
778 des sommets\\
779 et les faces
780 \end{tabular}
781 &
782 \psset{unit=0.4}
783 \psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
784 \begin{pspicture}(-5,-4)(5,9)
785 %\psframe(-7,-4)(7,9)
786 \psSolid[object=new,
787 action=draw,
788 sommets=
789 2 4 3
790 -2 4 3
791 -2 -4 3
792 2 -4 3
793 2 4 0
794 -2 4 0
795 -2 -4 0
796 2 -4 0
797 0 4 5
798 0 -4 5,
799 faces={
800 [0 1 2 3]
801 [7 6 5 4]
802 [0 3 7 4]
803 [3 9 2]
804 [1 8 0]
805 [8 9 3 0]
806 [9 8 1 2]
807 [6 7 3 2]
808 [2 1 5 6]},
809 num=all,
810 show=all]%
811 \axesIIID(0,0,0)(5,5,7)
812 \end{pspicture}
813 &
814 \begin{minipage}{5cm}
815 \begin{verbatim}
816 \psSolid[object=new,
817 action=draw,
818 sommets=
819 2 4 3
820 -2 4 3
821 -2 -4 3
822 2 -4 3
823 2 4 0
824 -2 4 0
825 -2 -4 0
826 2 -4 0
827 0 4 5
828 0 -4 5,
829 faces={
830 [0 1 2 3]
831 [7 6 5 4]
832 [0 3 7 4]
833 [3 9 2]
834 [1 8 0]
835 [8 9 3 0]
836 [9 8 1 2]
837 [6 7 3 2]
838 [2 1 5 6]}]%
839 \end{verbatim}
840 \end{minipage}
841 \\\hline
842 %
843 courbe
844 &
845 \begin{tabular}{l}
846 tracé d'une fonction\\
847 R --> R\textsuperscript{3}\\
848 définie par ses\\
849 équations paramétriques\\
850 \end{tabular}
851 &
852 \psset{unit=0.35}
853 \psset{lightsrc=10 -20 50,viewpoint=50 -20 20 rtp2xyz,Decran=50}
854 \begin{pspicture}(-6,-3)(5,8)
855 \psframe*[linecolor=blue!50](-6,-3)(6,8)
856 \psSolid[object=grille,base=-4 4 -4 4,linecolor=red,linewidth=0.5\pslinewidth]%
857 \axesIIID(0,0,0)(4,4,7)
858 \defFunction[algebraic]{helice}(t){3*cos(4*t)}{3*sin(4*t)}{t}
859 \psSolid[object=courbe,r=0,
860 range=0 6,
861 linecolor=blue,linewidth=0.1,
862 resolution=360,
863 function=helice]%
864 \end{pspicture}
865 &
866 \begin{minipage}{5cm}
867 \footnotesize
868 \begin{verbatim}
869 \defFunction[algebraic]%
870 {helice}(t)
871 {3*cos(4*t)}{3*sin(4*t)}{t}
872 \psSolid[object=courbe,r=0,
873 range=0 6,
874 linecolor=blue,linewidth=0.1,
875 resolution=360,
876 function=helice]%
877 \end{verbatim}
878 \end{minipage}
879 \\\hline
880 %% courbeR2
881 %% &
882 %% \begin{tabular}{l}
883 %% tracé d'une fonction\\
884 %% R --> R\textsuperscript{2}\\
885 %% définie par ses\\
886 %% équations paramétriques\\
887 %% \end{tabular}
888 %% &
889 %% \psset{unit=0.4}
890 %% \begin{pspicture}(-6,-7)(6,6)
891 %% \psframe*[linecolor=yellow!50](-6,-6)(6,6)
892 %% \psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
893 %% {\psset{linewidth=0.5\pslinewidth,linecolor=gray}
894 %% \psSolid[object=grille,base=-4 4 -4 0,RotX=90,RotZ=90]%
895 %% \psSolid[object=grille,base=-4 4 -4 4]%
896 %% \psSolid[object=grille,base=-4 4 0 4,RotX=90,RotZ=90]}
897 %% \defFunction{parabole}(t){t}{t dup mul}{}
898 %% \defFunction{droite}(t){t}{t 2 add }{}
899 %% \axesIIID(0,0,0)(4,4,4)
900 %% \psProjection[object=chemin,
901 %% linewidth=.1,
902 %% linecolor=blue,
903 %% normal=0 1 0 1 0 0,
904 %% path=
905 %% newpath
906 %% 0 0 moveto
907 %% 1 0 lineto]
908 %% \psProjection[object=chemin,
909 %% linewidth=.1,
910 %% linecolor=red,
911 %% normal=0 1 0 1 0 0,
912 %% path=
913 %% newpath
914 %% 0 0 moveto
915 %% 0 1 lineto]
916 %% \psProjection[object=courbeR2,
917 %% range=-1 2,fillstyle=vlines,hatchwidth=0.5\pslinewidth,
918 %% normal=0 1 0 1 0 0,
919 %% function=parabole]
920 %% \psProjection[object=courbeR2,
921 %% range=-2 2,
922 %% linecolor=green,
923 %% normal=0 1 0 1 0 0,
924 %% function=parabole]
925 %% \psProjection[object=courbeR2,
926 %% range=-2 2 ,
927 %% linecolor=red,
928 %% normal=0 1 0 1 0 0,
929 %% function=droite]
930 %% \psPoint(0,0,4.15){Z1}
931 %% \uput*[60](Z1){$z=y^2$}
932 %% \rput(0,-6.5){\psframebox[linecolor=yellow!50]{\texttt{$\backslash${}defFunction\{parabole\}(t)\{t\}\{t dup mul\}\{\}}}}
933 %% \end{pspicture}
934 %% &
935 %% \begin{minipage}{6cm}
936 %% \footnotesize
937 %% \begin{verbatim}
938 %% \psProjection[object=courbeR2,
939 %% range=-2 2,
940 %% linecolor=green,
941 %% normal=0 1 0 1 0 0,
942 %% function=parabole]
943 %% \end{verbatim}
944 %% \end{minipage}
945 %% \\\hline
946 \end{tabular}
947 \end{center}
948

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.