summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pstricks-examples/36-00-104.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pstricks-examples/36-00-104.ltx')
-rw-r--r--Master/texmf-dist/doc/latex/pstricks-examples/36-00-104.ltx45
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pstricks-examples/36-00-104.ltx b/Master/texmf-dist/doc/latex/pstricks-examples/36-00-104.ltx
new file mode 100644
index 00000000000..5b587a9f8bc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pstricks-examples/36-00-104.ltx
@@ -0,0 +1,45 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%%
+%% Copyright (C) 2010 Herbert Voss
+%%
+%% It may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%%
+%% See http://www.latex-project.org/lppl.txt for details.
+%%
+%%
+%% ====
+% Show page(s) 1
+%%
+\documentclass[]{exaarticle}
+\pagestyle{empty}
+\setlength\textwidth{352.81416pt}
+\setlength\parindent{0pt}
+\StartShownPreambleCommands
+\usepackage{pst-solides3d}
+\StopShownPreambleCommands
+\begin{document}
+\begin{pspicture}(-6,-4)(6,4)
+\pstVerb{/Ampl 3 2 sqrt mul def}%
+\psset{viewpoint=50 -10 30 rtp2xyz,Decran=50}
+%\lightsource
+\psset{lightsrc=viewpoint}
+\psframe[fillstyle=solid,fillcolor=gray!50](-6,-4)(6,4)
+\psSolid[object=datfile,file=data/tore1860lemniscate,
+ hollow,
+ rm=0 1,
+ fillcolor=green!30,incolor=yellow!50]
+\defFunction[algebraic]{lemniscate}(t){1.5}{Ampl*sin(t)/(1+cos(t)*cos(t))}{Ampl*sin(t)*cos(t)/(1+cos(t)*cos(t))}
+\psSolid[object=courbe,r=0,linewidth=2pt,
+ range=0 6.28,
+ linecolor=red,
+ function=lemniscate]%
+\psSolid[object=plan,action=draw,
+ definition=equation,
+ args={[1 0 0 -1.5] 90},
+ base=-5 5 -2 2,planmarks,showBase]
+\end{pspicture}
+\end{document}