summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexindent/success/torusPSTricks.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/latexindent/success/torusPSTricks.tex')
-rw-r--r--Master/texmf-dist/doc/support/latexindent/success/torusPSTricks.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/latexindent/success/torusPSTricks.tex b/Master/texmf-dist/doc/support/latexindent/success/torusPSTricks.tex
new file mode 100644
index 00000000000..7e3fc4bd501
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexindent/success/torusPSTricks.tex
@@ -0,0 +1,18 @@
+% arara: indent: {overwrite: on, silent: yes}
+\documentclass{article}
+\usepackage{pst-solides3d}
+\begin{document}
+
+\begin{pspicture}(-3,-4)(3,6)
+ \psset{viewpoint=20 40 40 rtp2xyz,Decran=30,lightsrc=20 10 10}
+ \defFunction[algebraic]{torus}(u,v)
+ {(2+cos(u))*cos(v+\Pi)}
+ {(2+cos(u))*sin(v+\Pi)}
+ {sin(u)}
+ \psSolid[object=surfaceparametree,
+ base=-10 10 0 6.28,fillcolor=black!70,incolor=orange,
+ function=torus,ngrid=60 0.4,
+ opacity=0.25]
+\end{pspicture}
+
+\end{document}