| 1 |
\psset{unit=.5cm} |
| 2 |
\psset{fillcolor=yellow,fillstyle=solid} |
| 3 |
\SbSSCT{Les axes en 3 D}{3 D axis} |
| 4 |
\label{3dplot} |
| 5 |
%\subsubsection{pstThreeDCoor} |
| 6 |
|
| 7 |
\begin{center} |
| 8 |
\begin{tabular}{|c|c|c|} |
| 9 |
\hline |
| 10 |
\multicolumn{2}{|c|}{ \BSS{pstThreeDCoor} \BSI{pstThreeDCoor}{pst-3dplot} } \\ \hline |
| 11 |
|
| 12 |
|
| 13 |
\begin{pspicture}(-3,-2.5)(3,4.25) |
| 14 |
\pstThreeDCoor[drawing=true] |
| 15 |
\end{pspicture} |
| 16 |
& |
| 17 |
\begin{pspicture}(-3,-2.5)(3,4.25) |
| 18 |
\pstThreeDCoor[drawing=false] |
| 19 |
\end{pspicture} |
| 20 |
\\ |
| 21 |
\hline \RDD{drawing}=true (\dft) \RDI{drawing}{pst-3dplot} & \RDD{drawing}=false\\ |
| 22 |
\hline |
| 23 |
\end{tabular} |
| 24 |
\end{center} |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
\bigskip |
| 29 |
|
| 30 |
\begin{tabular}{|c|c|c|} |
| 31 |
\hline |
| 32 |
\multicolumn{3}{|c|}{ \BS{pstThreeDCoor}[\RDD{xMax}=2,\RDD{yMax}=2,\RDD{zMax}=2] } \\ \hline |
| 33 |
\begin{pspicture}(-3,-2.5)(3,4.5) |
| 34 |
\pstThreeDCoor[xMax=2,yMax=2,zMax=2] |
| 35 |
\end{pspicture} |
| 36 |
& |
| 37 |
\begin{pspicture}(-3,-2.5)(3,4.5) |
| 38 |
\pstThreeDCoor[xMin=-2,yMin=-2,zMin=-2] |
| 39 |
\end{pspicture} |
| 40 |
& |
| 41 |
\begin{pspicture}(-3,-2.5)(3,4.5) |
| 42 |
\pstThreeDCoor[nameX=A,nameY=B,nameZ=C] |
| 43 |
\end{pspicture} |
| 44 |
|
| 45 |
\\ |
| 46 |
\hline \RDD{xMax}=2,\RDD{yMax}=2,\RDD{zMax}=2 & \RDD{xMin}=-2,\RDD{yMin}=-2,\RDD{zMin}=-2 & \RDD{nameX}=A,\RDD{nameY}=B,\RDD{nameZ}=C |
| 47 |
\\ |
| 48 |
\RDI{xMax}{pst-3dplot} \RDI{yMax}{pst-3dplot} \RDI{zMax}{pst-3dplot} |
| 49 |
& |
| 50 |
\RDI{xMin}{pst-3dplot} \RDI{yMin}{pst-3dplot} \RDI{zMin}{pst-3dplot} |
| 51 |
& |
| 52 |
\RDI{nameX}{pst-3dplot} \RDI{nameY}{pst-3dplot} \RDI{nameZ}{pst-3dplot} |
| 53 |
\\ \hline |
| 54 |
{\blue \dft : xMax=yMax=zMax=4} & {\blue \dft : xMin=yMin=zMin=-1}& \\ \hline |
| 55 |
\end{tabular} |
| 56 |
|
| 57 |
\subsubsection{Option spotX} |
| 58 |
\begin{center} |
| 59 |
\psframebox[fillstyle=none]{\BS{pstThreeDCoor}[\RDD{spotX}=60,\RDD{spotY}=60,\RDD{spotZ}=60] \RDI{nspotX}{pst-3dplot} \RDI{nspotY}{pst-3dplot} \RDI{nspotZ}{pst-3dplot}} |
| 60 |
|
| 61 |
|
| 62 |
\begin{animateinline}[controls,autoplay,loop]{2}% |
| 63 |
\multiframe{20}{iAngle=60+10}{ |
| 64 |
\begin{pspicture}(-4,-4.5)(4,4.25) |
| 65 |
\psframe(-4,-4.5)(4,4.25) |
| 66 |
\pstThreeDCoor[linecolor=blue,linestyle=dotted] |
| 67 |
\pstThreeDCoor[spotX=\iAngle,spotY=\iAngle,spotZ=\iAngle] |
| 68 |
\rput(-.5,-4){ spotX : } \rput(1,-4){ \iAngle} |
| 69 |
\end{pspicture}} |
| 70 |
\end{animateinline} |
| 71 |
\end{center} |
| 72 |
|
| 73 |
|
| 74 |
\newpage |
| 75 |
%----------------------------------------------------------------------------------- |
| 76 |
\SbSbSSCT{Orientation des axes }{Axis orientation} |
| 77 |
\begin{center} |
| 78 |
\psframebox[fillstyle=none]{\BS{pstThreeDCoor}[linecolor=blue,linestyle=dotted] } |
| 79 |
\end{center} |
| 80 |
|
| 81 |
|
| 82 |
\begin{minipage}{7cm} |
| 83 |
|
| 84 |
\begin{center} |
| 85 |
\psframebox[fillstyle=none]{\BS{pstThreeDCoor}[\RDD{Alpha}=30] \RDI{Alpha}{pst-3dplot}} |
| 86 |
\begin{animateinline}[controls,autoplay,loop,,palindrome]{2}% |
| 87 |
\multiframe{20}{iAngle=60+10}{ |
| 88 |
\begin{pspicture}(-4,-4.5)(4,4.25) |
| 89 |
\psframe(-4,-4.5)(4,4.25) |
| 90 |
\pstThreeDCoor[linecolor=blue,linestyle=dotted] |
| 91 |
\pstThreeDCoor[Alpha=\iAngle] |
| 92 |
\rput(-.8,-4){ Alpha : } \rput(1,-4){ \iAngle} |
| 93 |
\end{pspicture}} |
| 94 |
\end{animateinline} |
| 95 |
\end{center} |
| 96 |
\end{minipage}\hfill |
| 97 |
\begin{minipage}{7cm} |
| 98 |
\begin{center} |
| 99 |
\psframebox[fillstyle=none]{\BS{pstThreeDCoor}[\RDD{Beta}=30] \RDI{Beta}{pst-3dplot} } |
| 100 |
\begin{animateinline}[controls,autoplay,loop,palindrome]{2}% |
| 101 |
\multiframe{20}{iAngle=60+10}{ |
| 102 |
\begin{pspicture}(-4,-4.5)(4,4.25) |
| 103 |
\psframe(-4,-4.5)(4,4.25) |
| 104 |
\pstThreeDCoor[linecolor=blue,linestyle=dotted] |
| 105 |
\pstThreeDCoor[Beta=\iAngle] |
| 106 |
\rput(-.5,-4){ Beta : } \rput(1,-4){ \iAngle} |
| 107 |
\end{pspicture}} |
| 108 |
\end{animateinline} |
| 109 |
\end{center} |
| 110 |
\end{minipage} |
| 111 |
|
| 112 |
\bigskip |
| 113 |
|
| 114 |
\begin{tabular}{|c|c|c|} |
| 115 |
\hline |
| 116 |
\multicolumn{3}{|c|}{ \BS{pstThreeDCoor}[linestyle=dotted,linecolor=blue] \BS{pstThreeDCoor}[\RDD{RotX}=30] \RDI{RotX}{pst-3dplot}} \\ \hline |
| 117 |
\begin{pspicture}(-4,-2.5)(4,5.25) |
| 118 |
\pstThreeDCoor[linestyle=dotted,linecolor=blue] |
| 119 |
\pstThreeDCoor[RotX=30] |
| 120 |
\end{pspicture} |
| 121 |
& |
| 122 |
\begin{pspicture}(-4,-2.5)(4,5.25) |
| 123 |
\pstThreeDCoor[linestyle=dotted,linecolor=blue] |
| 124 |
\pstThreeDCoor[RotY=-30] |
| 125 |
\end{pspicture} |
| 126 |
& |
| 127 |
\begin{pspicture}(-4,-2.5)(4,5.25) |
| 128 |
\pstThreeDCoor[linestyle=dotted,linecolor=blue] |
| 129 |
\pstThreeDCoor[RotZ=30] |
| 130 |
\end{pspicture} |
| 131 |
|
| 132 |
\\ |
| 133 |
\hline \RDD{RotX}=30 & \RDD{RotY}=-30 \RDI{RotY}{pst-3dplot} & \RDD{RotZ}=30 \RDI{RotZ}{pst-3dplot} \\ \hline |
| 134 |
{\blue \dft : RotX=0} & {\blue \dft : RotY=0} & {\blue \dft : RotZ=0} \\ \hline |
| 135 |
\end{tabular} |
| 136 |
|
| 137 |
\bigskip |
| 138 |
%\subsubsection{RotAngle xRotVec} |
| 139 |
\psframebox[fillstyle=none]{\parbox[l]{12cm}{ |
| 140 |
\BS{pstThreeDCoor}[\RDD{RotSequence}=quaternion,\RDD{RotAngle}=10, \RDI{RotSequence}{pst-3dplot} \RDI{RotAngle}{pst-3dplot} \\ \RDD{xRotVec}=3,\RDD{yRotVec}=0,\RDD{zRotVec}=3, \RDI{xRotVec}{pst-3dplot} \RDI{yRotVec}{pst-3dplot} \RDI{zRotVec}{pst-3dplot} \\ |
| 141 |
xMin=0,xMax=3, yMin=0,yMax=3, zMin=0,zMax=3]\\ |
| 142 |
\\ |
| 143 |
\BS{pstThreeDLine}[linecolor=blue, linewidth=2pt, arrows=->](0,0,0)(3,0,3)}} |
| 144 |
|
| 145 |
\begin{center} |
| 146 |
\begin{animateinline}[controls,autoplay,loop]{2}% |
| 147 |
\multiframe{10}{iA=0+10}{ |
| 148 |
\begin{pspicture}(-3,-3)(3,3.5) |
| 149 |
\psframe(-3,-3)(3,3.5) |
| 150 |
\pstThreeDCoor[linecolor=red, RotSequence=quaternion, RotAngle=\iA, xRotVec=3,yRotVec=0,zRotVec=3, |
| 151 |
xMin=0,xMax=3, yMin=0,yMax=3, zMin=0,zMax=3] |
| 152 |
\pstThreeDLine[linecolor=blue, linewidth=2pt, arrows=->](0,0,0)(3,0,3) |
| 153 |
\uput[0](-2.28,-2.5){RotAngle : \iA} |
| 154 |
\end{pspicture}} |
| 155 |
\end{animateinline} |
| 156 |
\end{center} |
| 157 |
%-------------------------------------------------------------------------- |
| 158 |
\subsubsection{Option Ticks} |
| 159 |
|
| 160 |
\begin{tabular}{|c|c|c|} |
| 161 |
\hline |
| 162 |
\multicolumn{3}{|c|}{ \BS{pstThreeDCoor}[\RDD{IIIDticks},\RDD{IIIDticksize}=.5pt] \RDI{IIIDticks}{pst-3dplot} \RDI{IIIDticksize}{pst-3dplot} \RDI{IIIDticks}{pst-3dplot} } \\ \hline |
| 163 |
\begin{pspicture}(-4,-2.5)(4,4.25) |
| 164 |
|
| 165 |
\pstThreeDCoor[IIIDticks,IIIDticksize=.5pt] |
| 166 |
\end{pspicture} |
| 167 |
& |
| 168 |
\begin{pspicture}(-4,-2.5)(4,4.25) |
| 169 |
\pstThreeDCoor[IIIDticks,IIIDlabels] |
| 170 |
\end{pspicture} |
| 171 |
& |
| 172 |
\begin{pspicture}(-4,-2.5)(4,4.25) |
| 173 |
\pstThreeDCoor[IIIDticks,IIIDlabels,Dx=.5,Dy=.5,Dz=.5] |
| 174 |
\end{pspicture} |
| 175 |
\\ |
| 176 |
\hline \RDD{IIIDticks},\RDD{IIIDticksize}= .5pt |
| 177 |
\RDI{IIIDticks}{pst-3dplot} \RDI{IIIDticksize}{pst-3dplot} |
| 178 |
& |
| 179 |
\RDD{IIIDticks},\RDD{IIIDlabels} |
| 180 |
\RDI{IIIDlabels}{pst-3dplot} |
| 181 |
& |
| 182 |
\RDD{Dx}=.5,\RDD{Dy}=.5,\RDD{Dz}=.5 |
| 183 |
\RDI{Dx}{pst-3dplot} \RDI{Dy}{pst-3dplot} \RDI{Dz}{pst-3dplot} |
| 184 |
\\ \hline |
| 185 |
{\blue \dft : IIIDticksize=0.1} & {\blue \dft : IIIDlabels=false} & {\blue \dft : Dx=Dy=Dz=1} \\ \hline |
| 186 |
\end{tabular} |
| 187 |
|
| 188 |
|
| 189 |
\bigskip |
| 190 |
|
| 191 |
\begin{tabular}{|c|} \hline |
| 192 |
\BS{pstThreeDCoor}[IIIDticks,IIIDlabels, yMin=-3,\RDD{IIIDOffset}=\AC{(1,-2,1)}] |
| 193 |
\RDI{IIIDOffset}{pst-3dplot} |
| 194 |
\\ \hline |
| 195 |
\begin{pspicture}(-4,-1.25)(1,4) |
| 196 |
\pstThreeDCoor[IIIDticks,IIIDlabels, yMin=-3,IIIDOffset={(1,-2,1)}] |
| 197 |
\end{pspicture} |
| 198 |
\\ \hline |
| 199 |
\end{tabular} |
| 200 |
|
| 201 |
|
| 202 |
\subsubsection{Option pstThreeDPlaneGrid} |
| 203 |
|
| 204 |
\begin{tabular}{|c|c|c|} \hline |
| 205 |
\multicolumn{3}{|c|}{ \BSS{pstThreeDPlaneGrid}[planeGrid=xz](0,0)(3,3) \BSI{pstThreeDPlaneGrid}{pst-3dplot} } \\ \hline |
| 206 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 207 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 208 |
\pstThreeDPlaneGrid[linecolor=blue](0,0)(3,3) |
| 209 |
\end{pspicture} |
| 210 |
& |
| 211 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 212 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 213 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=xz](0,0)(3,3) |
| 214 |
\end{pspicture} |
| 215 |
& |
| 216 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 217 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 218 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=yz](0,0)(3,3) |
| 219 |
\end{pspicture} |
| 220 |
\\ \hline |
| 221 |
\dft ( \RDD{planeGrid}=xy ) \RDI{planeGrid}{pst-3dplot} |
| 222 |
& \RDD{planeGrid}=xz & \RDD{planeGrid}=yz \\ \hline |
| 223 |
|
| 224 |
\end{tabular} |
| 225 |
\bigskip |
| 226 |
|
| 227 |
\begin{tabular}{|c|c|c|} \hline |
| 228 |
\multicolumn{2}{|c|}{ BS{pstThreeDPlaneGrid}[planeGrid=xz, \RDD{planeGridOffset}=-1](0,0)(3,3) \RDI{planeGridOffset}{pst-3dplot}} \\ \hline |
| 229 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 230 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 231 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=xz,planeGridOffset=-1](0,0)(3,3) |
| 232 |
\end{pspicture} |
| 233 |
& |
| 234 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 235 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 236 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=xz,planeGridOffset=1](0,0)(3,3) |
| 237 |
\end{pspicture} |
| 238 |
\\ \hline |
| 239 |
\RDD{planeGridOffset}=-1 & \RDD{planeGridOffset}=1 |
| 240 |
\\ \hline |
| 241 |
\end{tabular} |
| 242 |
|
| 243 |
\bigskip |
| 244 |
\begin{tabular}{|c|c|c|} \hline |
| 245 |
\multicolumn{3}{|c|}{ \BS{pstThreeDPlaneGrid}[planeGrid=xy,\RDD{subticks}=2](0,0)(3,3) } \\ \hline |
| 246 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 247 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 248 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=xy,subticks=2](0,0)(3,3) |
| 249 |
\end{pspicture} |
| 250 |
& |
| 251 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 252 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 253 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=xz,subticks=5](0,0)(3,3) |
| 254 |
\end{pspicture} |
| 255 |
& |
| 256 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 257 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 258 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=yz,subticks=20](0,0)(3,3) |
| 259 |
\end{pspicture} |
| 260 |
\\ \hline |
| 261 |
planeGrid=xy & planeGrid=xz & planeGrid=yz \\ |
| 262 |
subticks=2 & subticks=5 & subticks=20 \\ |
| 263 |
\hline |
| 264 |
\end{tabular} |
| 265 |
\bigskip |
| 266 |
|
| 267 |
\begin{tabular}{|c|c|c|} \hline |
| 268 |
\multicolumn{3}{|c|}{ \BS{pstThreeDPlaneGrid}[planeGrid=xy,\RDD{xsubticks}=5](0,0)(3,3) } \\ \hline |
| 269 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 270 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 271 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=xy,xsubticks=5](0,0)(3,3) |
| 272 |
\end{pspicture} |
| 273 |
& |
| 274 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 275 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 276 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=xz,xsubticks=5](0,0)(3,3) |
| 277 |
\end{pspicture} |
| 278 |
& |
| 279 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 280 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 281 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=yz,xsubticks=5](0,0)(3,3) |
| 282 |
\end{pspicture} |
| 283 |
\\ \hline |
| 284 |
planeGrid=xy & planeGrid=xz & planeGrid=yz \\ |
| 285 |
\RDD{xsubticks}=5 & \RDD{xsubticks}=5 & \RDD{xsubticks}=5 \\ |
| 286 |
\hline |
| 287 |
\end{tabular} |
| 288 |
\bigskip |
| 289 |
|
| 290 |
\begin{tabular}{|c|c|c|} \hline |
| 291 |
\multicolumn{3}{|c|}{ \BS{pstThreeDPlaneGrid}[planeGrid=xy,\RDD{ysubticks}=2](0,0)(3,3) } \\ \hline |
| 292 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 293 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 294 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=xy,ysubticks=5](0,0)(3,3) |
| 295 |
\end{pspicture} |
| 296 |
& |
| 297 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 298 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 299 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=xz,ysubticks=5](0,0)(3,3) |
| 300 |
\end{pspicture} |
| 301 |
& |
| 302 |
\begin{pspicture}(-4,-3.5)(5,5) |
| 303 |
\pstThreeDCoor %[xMin=0,yMin=0,zMin=0,linewidth=2pt] |
| 304 |
\pstThreeDPlaneGrid[linecolor=blue,planeGrid=yz,ysubticks=5](0,0)(3,3) |
| 305 |
\end{pspicture} |
| 306 |
\\ \hline |
| 307 |
planeGrid=xy & planeGrid=xz & planeGrid=yz \\ |
| 308 |
\RDD{ysubticks}=5 & \RDD{ysubticks}=5 & \RDD{ysubticks}=5 \\ |
| 309 |
\hline |
| 310 |
\end{tabular} |
| 311 |
|
| 312 |
|
| 313 |
%------------------------------------------------------------------ |
| 314 |
|
| 315 |
\subsubsection{Option coorType} |
| 316 |
\begin{tabular}{|c|c|c|c|c|} |
| 317 |
\hline |
| 318 |
\multicolumn{3}{|c|}{ \BS{pstThreeDCoor}[\RDD{coorType}=0] } \\ \hline |
| 319 |
\begin{pspicture}(-4,-2.5)(5,5) |
| 320 |
\pstThreeDCoor[coorType=0] |
| 321 |
\end{pspicture} |
| 322 |
& |
| 323 |
\begin{pspicture}(-4,-3)(5,5) |
| 324 |
\pstThreeDCoor[coorType=1] |
| 325 |
\end{pspicture} |
| 326 |
& |
| 327 |
\begin{pspicture}(-4,-2.5)(5,5) |
| 328 |
\pstThreeDCoor[coorType=2] |
| 329 |
\end{pspicture} |
| 330 |
\\ \hline |
| 331 |
\RDD{coorType}=0 & \RDD{coorType}=1 & \RDD{coorType}=2 \\ \hline |
| 332 |
\begin{pspicture}(-4,-2.5)(5,5) |
| 333 |
\pstThreeDCoor[coorType=3] |
| 334 |
\end{pspicture} |
| 335 |
& |
| 336 |
\begin{pspicture}(-4,-2.5)(5,5) |
| 337 |
\pstThreeDCoor[coorType=4] |
| 338 |
\end{pspicture} |
| 339 |
& |
| 340 |
|
| 341 |
\\ \hline |
| 342 |
\RDD{coorType}=3 & \RDD{coorType}=4 & \\ \hline |
| 343 |
\end{tabular} |
| 344 |
|
| 345 |
|
| 346 |
|