summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-tronque_en_corr.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-tronque_en_corr.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-tronque_en_corr.tex36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-tronque_en_corr.tex b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-tronque_en_corr.tex
new file mode 100644
index 00000000000..df11a00211c
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-tronque_en_corr.tex
@@ -0,0 +1,36 @@
+\section{Truncate a solid's vertices}
+
+The option \verb+trunc+ allows us to truncate a solid's vertices either
+globally or individually. This option uses the key
+\verb+trunccoeff+ (value $0.25$ by default) which indicates the ratio
+$k$ used for the truncation ($0<k\leq 0.5$).
+%
+\begin{itemize}
+ \item \verb+[trunc=all]+ truncates all the vertices;
+ \item \verb+[trunc=0 1 2 3]+ truncates the vertices \texttt{[0,1,2 and 3]}.
+\end{itemize}
+%
+\begin{LTXexample}[width=6cm]
+\psset{viewpoint=50 50 30 rtp2xyz,Decran=25,lightsrc=viewpoint}
+\begin{pspicture}(-3,-2)(2,2)
+\psSolid[
+ action=draw,
+ object=cube,
+ RotZ=30,
+ trunccoeff=.2,
+ trunc=all]%
+\end{pspicture}
+\end{LTXexample}
+
+\begin{LTXexample}[width=6cm]
+\psset{viewpoint=50 50 30 rtp2xyz,Decran=25,lightsrc=viewpoint}
+\begin{pspicture}(-3,-2)(2,2)
+\psSolid[action=draw,
+ object=cube,
+ RotZ=30,
+ trunccoeff=.2,
+ trunc=0 1 2 3]%
+\end{pspicture}
+\end{LTXexample}
+
+\endinput \ No newline at end of file