summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-chanfrein_en_corr.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-chanfrein_en_corr.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-chanfrein_en_corr.tex53
1 files changed, 53 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-chanfrein_en_corr.tex b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-chanfrein_en_corr.tex
new file mode 100644
index 00000000000..d324c29fbf6
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-chanfrein_en_corr.tex
@@ -0,0 +1,53 @@
+\section{Chamfering a solid}
+
+\psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=50}
+\begin{LTXexample}[width=6cm]
+\psset{unit=0.5}
+\begin{pspicture*}(-4,-4)(4,4)
+\psSolid[object=cube,
+ a=5,
+ fillcolor=red]
+\end{pspicture*}
+\end{LTXexample}
+
+
+\begin{LTXexample}[width=6cm]
+\psset{unit=0.5}
+\begin{pspicture*}(-4,-4)(4,4)
+\psSolid[object=cube,
+ a=5,
+ fillcolor=red,
+ chanfrein,
+ chanfreincoeff=.6]
+\end{pspicture*}
+\end{LTXexample}
+
+The option \verb+chanfrein+ allows us to chamfer a solid. This option
+uses the key \verb+chanfreincoeff+ (value $0.8$ by default) which indicates the
+ration $k$ with ($0<k<1$). This ratio is the one of a centre dilation with
+the centre in the middle of the chosen face.
+
+\psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=30}
+\begin{LTXexample}[width=6cm]
+\psset{unit=0.5}
+\begin{pspicture*}(-4,-4)(4,4)
+\psSolid[object=dodecahedron,
+ a=5,
+ fillcolor=cyan]
+\end{pspicture*}
+\end{LTXexample}
+
+\psset{lightsrc=10 0 10,viewpoint=50 -20 30 rtp2xyz,Decran=30}
+\begin{LTXexample}[width=6cm]
+\psset{unit=0.5}
+\begin{pspicture*}(-4,-4)(4,4)
+\psSolid[object=dodecahedron,
+ a=5,
+ fillcolor=cyan,
+ chanfrein,
+ chanfreincoeff=.8]
+\end{pspicture*}
+\end{LTXexample}
+%\newpage
+
+\endinput