summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/src/par-positionnersolide-en.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-solides3d/src/par-positionnersolide-en.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-solides3d/src/par-positionnersolide-en.tex161
1 files changed, 161 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-solides3d/src/par-positionnersolide-en.tex b/Master/texmf-dist/doc/generic/pst-solides3d/src/par-positionnersolide-en.tex
index 4b8a6569b78..1dfdac5d573 100644
--- a/Master/texmf-dist/doc/generic/pst-solides3d/src/par-positionnersolide-en.tex
+++ b/Master/texmf-dist/doc/generic/pst-solides3d/src/par-positionnersolide-en.tex
@@ -74,6 +74,8 @@ to the points with the coordinates $\mathtt{(0.5,0.5,0.5)}$,
\subsection{Rotation}
+\subsection{Default sequence xyz}
+
The \Index{rotation} is effected around the three axes $Ox$, $Oy$ and $Oz$. Let's take a cuboid as an example,
\begin{pspicture}(-1,-0.2)(1,.5)
\psset{Decran=40,viewpoint=50 35 35 rtp2xyz,a=2,b=3,c=1,lightsrc=50 30 30}
@@ -141,4 +143,163 @@ which will be rotated seperately around the axes $Ox$, $Oy$ and $Oz$.
\centerline{\texttt{[RotY=-45]}}
\end{multicols}
+
+\subsection{Rotations Sequence}
+
+\newpsstyle{sol}{fillstyle=crosshatch,hatchcolor=green,hatchwidth=0.25\pslinewidth,hatchsep=5\pslinewidth}
+\makeatletter
+\def\Die#1#2#3#4{
+\pstVerb{/posP \pst@solides@a\space 0.3 mul def
+ /rP \pst@solides@a\space 0.1 mul def
+ /dP \pst@solides@a\space 2 div neg def
+ /a_2 \pst@solides@a\space 2 div def}%
+\psset{solidmemory}
+%\psset{visibility=false}
+\psSolid[action=draw**,
+ object=cube,
+RotX=#2,RotY=#3,RotZ=#4,RotSequence=#1,
+ fontsize=15,
+ trunccoeff=.1,
+ trunc=all,
+% fillcolor=yellow,
+ fcol=6 1 13 { (rouge) } for,
+ name=A
+ ](0,0,0)%
+\psSolid[object=plan,action=none,
+ definition=solidface,args=A 0,name=P0]
+\psset{plan=P0}
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=0 0 rP,
+ range=0 360]
+\psSolid[object=plan,action=none,
+ definition=solidface,args=A 1,name=P1]
+\psset{plan=P1}
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=0 0 rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP posP rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP neg posP neg rP,
+ range=0 360]
+\psSolid[object=plan,action=none,
+ definition=solidface,args=A 2,name=P2]
+\psset{plan=P2}
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP posP rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP neg posP neg rP,
+ range=0 360]
+\psSolid[object=plan,action=none,
+ definition=solidface,args=A 3,name=P3]
+\psset{plan=P3}
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP posP rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP posP neg rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP neg posP rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP neg posP neg rP,
+ range=0 360]
+\psSolid[object=plan,action=none,
+ definition=solidface,args=A 4,name=P4]
+\psset{plan=P4}
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=0 0 rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP posP rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP neg posP neg rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP posP neg rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP neg posP rP,
+ range=0 360]
+\psSolid[object=plan,action=none,
+ definition=solidface,args=A 5,name=P5]
+\psset{plan=P5}
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=0 posP rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=0 posP neg rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP posP rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP neg posP neg rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP posP neg rP,
+ range=0 360]
+\psProjection[object=cercle,fillstyle=solid,fillcolor=black,
+ args=posP neg posP rP,
+ range=0 360]
+\psSolid[object=vecteur,
+ args=4 0 0,
+ linecolor=green](a_2,0,0)%
+\psSolid[object=vecteur,
+ args=0 4 0,
+ linecolor=red](0,a_2,0)
+\psSolid[object=vecteur,
+ args=0 0 4,
+ linecolor=blue](0,0,a_2)
+\rput(0,-2.5){\texttt{RotSequence=#1}}
+}
+\makeatother
+
+\begin{center}
+\psset{viewpoint=50 60 25 rtp2xyz,Decran=25,lightsrc=viewpoint,a=4,solidmemory}%
+\begin{pspicture}(-3,-3)(3,3)
+\psframe(-3,-3)(3,3)
+\Die{xyz}{0}{0}{0}
+\rput(0,-2){\texttt{RotX=0,RotY=0,RotZ=0}}
+\end{pspicture}
+
+\begin{pspicture}(-3,-3)(3,3)
+\psframe(-3,-3)(3,3)
+\Die{xyz}{90}{90}{90}
+\rput(0,-2){\texttt{RotX=90,RotY=90,RotZ=90}}
+\end{pspicture}
+\begin{pspicture}(-3,-3)(3,3)
+\psframe(-3,-3)(3,3)
+\Die{xzy}{90}{90}{90}
+\rput(0,-2){\texttt{RotX=90,RotY=90,RotZ=90}}
+\end{pspicture}
+
+\begin{pspicture}(-3,-3)(3,3)
+\psframe(-3,-3)(3,3)
+\Die{yxz}{90}{90}{90}
+\rput(0,-2){\texttt{RotX=90,RotY=90,RotZ=90}}
+\end{pspicture}
+\begin{pspicture}(-3,-3)(3,3)
+\psframe(-3,-3)(3,3)
+\Die{yzx}{90}{90}{90}
+\rput(0,-2){\texttt{RotX=90,RotY=90,RotZ=90}}
+\end{pspicture}
+
+\begin{pspicture}(-3,-3)(3,3)
+\psframe(-3,-3)(3,3)
+\Die{zxy}{90}{90}{90}
+\rput(0,-2){\texttt{RotX=90,RotY=90,RotZ=90}}
+\end{pspicture}
+\begin{pspicture}(-3,-3)(3,3)
+\psframe(-3,-3)(3,3)
+\Die{zyx}{90}{90}{90}
+\rput(0,-2){\texttt{RotX=90,RotY=90,RotZ=90}}
+\end{pspicture}
+\end{center}
+
+
\endinput