diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionpolygone_en_corr.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionpolygone_en_corr.tex | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionpolygone_en_corr.tex b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionpolygone_en_corr.tex new file mode 100644 index 00000000000..7c48fd528e3 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionpolygone_en_corr.tex @@ -0,0 +1,103 @@ +\section{Polygons} + +\subsection{Direct definition} + +The object \texttt{polygone} allows us to define a polygon. We use +the option \verb+args+ to specify the list of vertices: +\texttt{[object=polygone,args=$A_0$ $A_1$ \ldots $A_n$]} + +There are other ways to define a polygon in 2D. The options +\texttt{definition} and \texttt{args} support these methods: + +\begin{itemize} + +%% syntaxe : pol u --> pol' +\item \texttt{[definition=translatepol]}; +\verb+args=+$pol$ $u$. + +Translation of the polygon $pol$ by the +vector $\vec u$ + +%% syntaxe : pol u --> pol' +\item \texttt{[definition=rotatepol]}; +\verb+args=+$pol$ $I$ $\alpha $. + +Image of the polygon $pol$ +after a rotation with centre $I$ and angle $\alpha $ + +%% syntaxe : pol I alpha --> pol' +\item \texttt{[definition=hompol]}; +\verb+args=+$pol$ $I$ $\alpha $. + +Image of the polygon $pol$ +after a homothety (dilation) with centre $I$ and ratio $\alpha +$. + +%% syntaxe : pol I --> pol' +\item \texttt{[definition=sympol]}; +\verb+args=+$pol$ $I$. + +Image of the polygon $pol$ after a +reflection in the point $I$. + +%% syntaxe : pol D --> pol' +\item \texttt{[definition=axesympol]}; +\verb+args=+$pol$ $d$. + +Image of the polygon $pol$ after a +reflection in the line $d$. +\end{itemize} + + +In the following example we define, name and draw the polygon with +vertices $(-1,0)$, $(-3, 1)$, $(0, 2)$, then--- in blue---the +image after a rotation about the point $(-1,0)$ through an angle +$-45$. Finally, we translate the polygon with the vector shift +$(2,-2)$ by directly incorporating \textit{jps code} within the +argument of \verb+[definition=]+. + +\begin{LTXexample}[width=7.5cm] +\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=polygone, + args=-1 0 -3 1 0 2, + name=P, +] +\psProjection[object=polygone, + definition=rotatepol, + linecolor=blue, + args=P -1 0 -45, +] +%% du code jps dans la definition +\psProjection[object=polygone, + definition={2 -2 addv} papply, + fillstyle=hlines,hatchcolor=yellow, + linestyle=dashed, + args=P, +] +\composeSolid +\axesIIID(4,2,2)(5,4,3) +\end{pspicture} +\end{LTXexample} + +\endinput |