summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/src/text/par-face-en.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-06-30 21:25:34 +0000
committerKarl Berry <karl@freefriends.org>2015-06-30 21:25:34 +0000
commit3c83b502f55921d74de657197d86198e2d6fd4ce (patch)
tree5ac3337eee986e435170fbf9b247ac78e1f70326 /Master/texmf-dist/doc/generic/pst-solides3d/src/text/par-face-en.tex
parentd5a70f8648d317785588d3f032978466599db97a (diff)
pst-solides3d (30jun15)
git-svn-id: svn://tug.org/texlive/trunk@37718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-solides3d/src/text/par-face-en.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-solides3d/src/text/par-face-en.tex59
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-solides3d/src/text/par-face-en.tex b/Master/texmf-dist/doc/generic/pst-solides3d/src/text/par-face-en.tex
new file mode 100644
index 00000000000..336a8e24599
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-solides3d/src/text/par-face-en.tex
@@ -0,0 +1,59 @@
+\section{One- and two-sided solids}
+
+The contour of \Lkeyword{face} is defined in the plane $Oxy$ by
+\begin{verbatim}
+\psSolid[object=face,base=x1 y1 x2 y2 x3 y3 ...xn yn](0,0,0)%
+\end{verbatim}
+The edge of \Lkeyword{face} is defined in the plane $Oxy$ by the coordinates
+of its vertices, given in counterclockwise order by the parameter \Lkeyword{base}:
+
+
+\clearpage
+\subsection{Triangular \texttt{`faces'}}
+
+\begin{LTXexample}[width=6.5cm]
+\psset{unit=0.4}
+\psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
+\begin{pspicture}(-5.5,-4.5)(7,3.5)
+\psSolid[object=grille,base=-4 6 -4 4,action=draw,linecolor=gray](0,0,0)
+\psSolid[object=face,fillcolor=yellow,action=draw*,
+ incolor=blue,biface,base=0 0 3 0 1.5 3,
+ num=all,show=all](0,1,0)
+\psSolid[object=face,fillcolor=yellow,
+ action=draw*,incolor=blue,
+ base=0 0 3 0 1.5 3,num=all,
+ show=all,biface,RotX=180](0,-1,0)
+\axesIIID(0,0,0)(6,6,3)
+\end{pspicture}
+\end{LTXexample}
+
+
+\subsection{\texttt{`face'} defined by a function}
+\begin{LTXexample}[width=7.5cm]
+\psset{unit=0.45}
+\psset{viewpoint=50 -20 30 rtp2xyz,Decran=50}
+\def\BASE{0 10 360{/Angle ED 5 Angle cos dup mul mul % x
+ 3 Angle cos 3 exp Angle sin mul mul } for}% y
+\begin{pspicture}(-7,-5.5)(9,6)
+\defFunction[algebraic]{F}(t){5*(cos(t))^2}
+ {3*(sin(t))*(cos(t))^3}{}
+\psSolid[object=grille,base=-6 6 -6 6,action=draw,linecolor=gray](0,0,0)
+\psSolid[object=face,fillcolor=magenta,action=draw*,
+ incolor=blue,biface,RotZ=90,
+ base=0 2 pi mul {F} CourbeR2+](0,0,0)
+\psSolid[object=face,fillcolor=yellow,action=draw*,
+ incolor=blue,biface,
+ base=0 2 pi mul {F} CourbeR2+](0,0,0)
+\psSolid[object=face,fillcolor=yellow,action=draw*,
+ incolor=blue,biface,RotY=180,
+ base=0 2 pi mul {F} CourbeR2+](0,0,0)
+\psSolid[object=face,fillcolor=yellow,action=draw*,
+ incolor=red,biface,RotY=180,RotZ=90,
+ base=0 2 pi mul {F} CourbeR2+](0,0,0)
+\axesIIID(0,0,0)(6,6,5)
+\end{pspicture}
+\end{LTXexample}
+
+
+
+\endinput