summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/chapter_2_en_corr.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-solides3d/doc-en/chapter_2_en_corr.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-solides3d/doc-en/chapter_2_en_corr.tex174
1 files changed, 174 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/chapter_2_en_corr.tex b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/chapter_2_en_corr.tex
new file mode 100644
index 00000000000..a9138261a99
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/chapter_2_en_corr.tex
@@ -0,0 +1,174 @@
+\section{Choice of the view point}
+
+\begin{center}
+
+\begin{pspicture}(-5,-5.7)(10,7)
+\psset{lightsrc=10 20 30,viewpoint=50 30 20 rtp2xyz}
+\definecolor{bleuciel}{rgb}{0.78,0.84,0.99}
+\psSolid[object=cube,fillcolor=bleuciel,a=2,action=draw*]%%
+%\psSolid[object=cubemaillage,fillcolor=bleuciel,a=2]%%
+\psSolid[object=grille,base=0 8 0 10,action=draw]%%
+\psSolid[object=grille,base=0 7 0 10,action=draw,RotY=90](0,0,7)%
+\psSolid[object=grille,base=0 8 0 7,action=draw,RotX=-90](0,0,7)%
+\psSolid[object=cube,fillcolor=bleuciel,a=1,action=draw*](0.5,0.5,0.5)%
+\psSolid[object=grille,base=-1 1 -1 1,action=draw,linecolor=blue](0,0,1)%
+\psSolid[object=grille,base=-1 1 -1 1,action=draw,RotY=90,linecolor=blue](1,0,0)%
+\psSolid[object=grille,base=-1 1 -1 1,action=draw,RotX=-90,linecolor=blue](0,1,0)%
+\axesIIID(1,1,1)(8,10,7)
+\pstVerb{
+ /dV 12 def % distance V
+ /dE 6 def % distance \'{e}cran
+ /Theta 60 def
+ /Phi 30 def
+ dV Theta Phi rtp2xyz
+ /zV exch def
+ /yV exch def
+ /xV exch def
+ dE Theta Phi rtp2xyz
+ /zE exch def
+ /yE exch def
+ /xE exch def
+ }%
+\psPoint(xV,yV,zV){V}
+\psPoint(xE,yE,zE){E}
+\psPoint(xV,yV,0){Vp}
+%
+% 5 distance \'{e}cran
+%\psPoint(dE Theta cos mul Phi cos div dE Theta sin mul Phi cos div 0){Vq}
+\psPoint(xV,0,0){Vx}
+\psPoint(0,yV,0){Vy}
+\psPoint(0,0,zV){Vz}
+\psdot(V)
+{\psset{linestyle=dashed,linecolor=red}
+\psline(V)(Vp)\psline(Vx)(Vp)\psline(Vy)(Vp)\psline(V)(Vz)\psline(V)(O)\psline(Vp)(O)}
+%\psSolid[object=grille,base=-5 5 -3 3,action=draw,RotX=-60,linecolor=red](xE,yE,zE)%
+\psTransformPoint[RotX=-60](-5 -3 0)(xE,yE,zE){A}
+\psTransformPoint[RotX=-60](-5 3 0)(xE,yE,zE){B}
+\psTransformPoint[RotX=-60](5 3 0)(xE,yE,zE){C}
+\psTransformPoint[RotX=-60](5 -3 0)(xE,yE,zE){D}
+\pspolygon[fillstyle=vlines,hatchcolor=yellow!90,hatchwidth=0.02,hatchsep=0.04](A)(B)(C)(D)
+%
+%
+\PointEcran(1,1,1){S1}
+\psPoint(1,1,1){s1}
+\psline(S1)(V)
+\psline[linestyle=dashed](s1)(S1)
+%
+\PointEcran(1,1,-1){S2}
+\psPoint(1,1,-1){s2}
+\psline(S2)(V)
+\psline[linestyle=dashed](s2)(S2)
+%
+\PointEcran(-1,1,-1){S3}
+\psPoint(-1,1,-1){s3}
+\psline(S3)(V)
+\psline[linestyle=dashed](s3)(S3)
+%
+\PointEcran(-1,1,1){S4}
+\psPoint(-1,1,1){s4}
+\psline(S4)(V)
+\psline[linestyle=dashed](s4)(S4)
+%
+\PointEcran(1,-1,-1){S5}
+\psPoint(1,-1,-1){s5}
+\psline(S5)(V)
+\psline[linestyle=dashed](s5)(S5)
+%
+\PointEcran(1,-1,1){S6}
+\psPoint(1,-1,1){s6}
+\psline(S6)(V)
+\psline[linestyle=dashed](s6)(S6)
+%
+\PointEcran(-1,-1,1){S7}
+\psPoint(-1,-1,1){s7}
+\psline(S7)(V)
+\psline[linestyle=dashed](s7)(S7)
+\psset{solidmemory}
+\psSolid[object=plan,
+ definition=equation,
+ args={[0 0 1 0]},
+ base=-5 5 -3 3,
+ RotX=-60,
+% showBase,
+ action=none,
+ name=planbase,
+]
+%% here, we define the plantype object "Ecran"
+\codejps{
+ planbase
+ dup xE yE zE planputorigine
+ dup -180 rotateplan
+ /Ecran exch def
+}%
+%% uncomment follow line to draw "Ecran"
+%\psSolid[object=plan,args=Ecran,showBase,planmarks]
+\psProjection[object=texte,
+ plan=Ecran,
+ fontsize=20,
+ text=Projection Screen](-2,2)
+
+%
+\psset{linecolor=red,fillstyle=vlines,hatchsep=0.04,hatchwidth=0.02}
+\pspolygon[hatchcolor=red!60](S1)(S2)(S3)(S4)
+\pspolygon[,hatchcolor=red!60](S1)(S2)(S5)(S6)
+\pspolygon[hatchcolor=red!10](S1)(S4)(S7)(S6)
+\psdots(s1)(s2)(s3)(s4)(s5)(s6)(s7)(S1)(S2)(S3)(S4)(S5)(S6)(S7)
+%
+\uput[45](V){$V$}
+\end{pspicture}
+\end{center}
+
+The coordinates of the object, in this case the bluish cube, are setup in the axes of coordinates $Oxyz$. The coordinates of the view point ($V$), are setup in the same axes of coordinates, either in spherical coordinates---with the adding option \verb+[rtp2xyz]+, or in Cartesian coordinates---which is the default option.
+
+Example: \verb+[viewpoint=50 30 20 rtp2xyz]+
+
+The projection screen is placed perpendicular to the direction $OV$---central perspective, at a distance of $V$: \verb+[Decran=50]+ (default value), this value can be positive or negative.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\section{The axes in 3d}
+
+The command \verb+\axesIIID[options](x1,y1,z1)(x2,y2,z2)+ draws the axes $Ox$,
+$Oy$ and $Oz$ dashed from the origin $O$ to the coordinates
+$(x_1,0,0)$ for the $x$-axis, $(0,y_1,0)$ for the $y$-axis and
+$(0,0,z_1)$ for the $z$-axis and from there continues drawing the axes as lines to the points $(x_2,0,0)$, $(0,y_2,0)$ and $(0,0,z_2)$.
+
+The options are the following:
+\begin{itemize}
+ \item all color options, line width as well as all possibilities of arrows.
+ \item \verb+labelsep=value+ which allows to position the label in a self defined distance away from the extremity of the arrow of the axis, the default value is \verb+labelsep=5pt+---this is a real distance in three dimensions and not on screen.
+ \item the choice of the labels on each of the axes with the option: \verb+axisnames={a,b,c}+, the default values are \verb+axisnames={x,y,z}+.
+ \item the possibility to specify the style of the labels with the option: \verb+axisemph={\boldmath\Large\color{red}}+, by default there is no style predefined, which means, if no style is chosen one will get \verb+$x,y,z$+.
+ \item \verb+showOrigin+ is a Boolean, \texttt{true} by default, if it is set to \verb+showOrigin=false+ the dashed lines aren't drawn to the origin anymore.
+ \item \verb+mathLabel+ is a Boolean, \texttt{true} by default, in this case the math mode is activated, set to \verb+mathLabel=false+ the labels are set to the usual mode.
+\end{itemize}
+\encadre{The labels are placed at the extemities of the axes in their prolongation.}
+
+\begin{LTXexample}[width=5cm]
+\begin{pspicture}(-2,-2)(3,3)
+\psset{viewpoint=100 30 20,Decran=100}
+\psSolid[object=cube,a=2,
+ action=draw*,
+ fillcolor=magenta!20]
+\axesIIID[showOrigin=false](1,1,1)(3,2,2.5)
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}[width=5cm]
+\begin{pspicture}(-2,-1)(3,4)
+\psset{viewpoint=100 45 20,Decran=100}
+\psSolid[object=cylindre,h=2,r=1,
+ action=draw*,mode=4,
+ fillcolor=green!20]
+\axesIIID[linewidth=1pt,linecolor=red,arrowsize=5pt,
+ arrowinset=0,axisnames={a,b,c},
+ axisemph={\boldmath\Large\color{red}},
+ labelsep=10pt]
+ (1,1,2)(2,2,3)
+\end{pspicture}
+\end{LTXexample}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+