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