Initialisation du projet pst-solides3d.git (SVN revision 142)
[pst-solides3d.git] / doc / .svn / text-base / par-projectionligne.tex.svn-base
1 \section {Lignes}
2
3 L'objet \Cadre{line} permet de définir une ligne brisée. Sous sa forme
4 usuelle, on utilise l'argument \verb+args+ pour spécifier la liste des
5 points~: 
6 \Cadre{[object=line,args=$A_0$ $A_1$ \ldots $A_n$]}
7
8 On peut également définir les transformées d'une ligne brisée par une
9 translation, une rotation, une homothétie, etc\dots en reprenant les
10 opérations disponibles sur les polygones.
11
12 \begin{multicols}{2}
13
14 \begin{pspicture}(-3,-3)(4,3.5)%
15 \psframe*[linecolor=blue!50](-3,-3)(4,3.5)
16 \psset{lightsrc=50 20 20,viewpoint=50 30 15,Decran=60}
17 \psset{solidmemory}
18 \psSolid[object=grille,
19    base=-3 0 -3 3,
20    linewidth=0.5\pslinewidth,linecolor=gray,]
21 %% definition du plan de projection
22 \psSolid[object=plan,
23    definition=equation,
24    args={[1 0 0 0] 90},
25    base=-3.2 3.2 -2.2 2.2,
26    name=monplan,
27    planmarks,
28 ]
29 \psset{plan=monplan}
30 \psSolid[object=plan,
31    args=monplan,
32    linecolor=gray!40,
33    plangrid,
34    action=none,
35 ]
36 \psProjection[object=line,
37    args=-1 0 -3 1 1 2,
38    name=P,
39 ]
40 \psProjection[object=line,
41    definition=rotatepol,
42    linecolor=blue,
43    args=P -1 0 -45,
44 ]
45 %% du code jps dans la definition
46 \psProjection[object=line,
47    definition={2 -2 addv} papply,
48    linestyle=dashed,
49    args=P,
50 ]
51 \composeSolid
52 \axesIIID(4,2,2)(5,4,3)
53 \end{pspicture}
54 \columnbreak
55
56 \begin{gbar}
57 \begin{verbatim}
58 \psProjection[object=line,
59    args=-1 0 -3 1 0 2,
60    name=P,]
61 \psProjection[object=line,
62    definition=rotatepol,
63    linecolor=blue,
64    args=P -1 0 -45,]
65 %% du code jps dans la definition
66 \psProjection[object=line,
67    definition={2 -2 addv} papply,
68    linestyle=dashed,
69    args=P,]
70 \end{verbatim}
71 \end{gbar}
72 \end{multicols}
73

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.