summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks/voss/bsp23.tex
blob: e5e21a2bccd631515c03d7ee143bd687f09e0a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
\documentclass[12pt]{article}
\usepackage{pstricks}
\definecolor{light}{rgb}{0.3,0.4,0.6}
\usepackage{pst-3dplot}
\pagestyle{empty}
\def\drawCircles{%
%	\pstThreeDCoor[xMax=14,yMax=14,zMax=7.5,linewidth=0.1pt]
  \parametricplotThreeD[xPlotpoints=100](80,360)(0,360){%
	/k 2 def /k2 4 def
	t cos k mul 3 u sin k mul add mul
	t sin k mul 3 u sin k mul add mul
	u cos k2 mul
  }
  \parametricplotThreeD[yPlotpoints=75](0,360)(80,360){%
	/k 2 def /k2 4 def
	u cos k mul 3 t sin k mul add mul
	u sin k mul 3 t sin k mul add mul
	t cos k2 mul
  }
%	\parametricplotThreeD[xPlotpoints=100,yPlotpoints=1,linecolor=red,linewidth=2pt](80,360)(0,360){%
%		/k 2 def /k2 4 def
%		t cos k mul 2 u sin k mul add mul
%		t sin k mul 2 u sin k mul add mul
%		u cos k2 mul
%	}
  \parametricplotThreeD[yPlotpoints=1,linecolor=red,linewidth=2pt](0,360)(80,360){%
	/k 2 def /k2 4 def
	u cos k mul 3 t sin k mul add mul
	u sin k mul 3 t sin k mul add mul
	t cos k2 mul
  }
}

\begin{document}

\psset{unit=0.75}
\begin{pspicture}(-5,-5)(5,5)
	\psset{Beta=20,Alpha=50,linewidth=0.1pt,linecolor=light}
	\drawCircles
\end{pspicture}

\clearpage
%\psset{unit=0.75}
\begin{pspicture}(-5,-5)(5,5)
	\psset{Beta=90,Alpha=50,linewidth=0.1pt,linecolor=light}
	\drawCircles
\end{pspicture}

\clearpage
%\psset{unit=0.75}
\begin{pspicture}(-5,-5)(5,5)
	\psset{Beta=0,Alpha=50,linewidth=0.1pt,linecolor=light}
	\drawCircles
\end{pspicture}

\end{document}