Debian Codegraph @

texmf-dist/doc/generic/pst-perspective/pst-perspective-docEN.tex

raw
1 \PassOptionsToPackage{dvipsnames}{xcolor}
2 \PassOptionsToPackage{distiller}{pstricks}
3 \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,
4 smallheadings, headexclude,footexclude,oneside]{pst-doc}
5 \usepackage[utf8]{inputenc}
6 \usepackage[dvipsnames]{xcolor} %% Farben sind im Dokument xcolor.pdf definiert
7 \usepackage{multido,pst-grad,pst-eucl,pst-3dplot,pstricks-add}
8 \usepackage{pst-perspective}
9
10
11 \def\fileversion{1.05}
12 \let\pstPerspectiveFV\fileversion
13 \renewcommand\bgImage{\psscalebox{0.85}{%
14 \begin{pspicture}[showgrid=false](0.5,-0.5)(11.5,8.5)
15 \begin{psclip}%
16 {\psframe[linestyle=none](0.25,-0.25)(11.35,8.35)}
17 \psgrid[subgriddiv=2,gridlabels=0,gridwidth=0.7pt,gridcolor=black!70,subgridwidth=0.6pt,subgridcolor=black!40](-1,-1)(13,10)
18 \end{psclip}
19 {\psset{translineA=true,translineB=true,linestyle=dashed,dash=5pt 3pt,linecolor=blue,linejoin=2}
20 %------ Vertices of the octagon -------------
21 \pstransTS(3,0){A}{A'}
22 \pstransTS(7,0){B}{B'}
23 \pstransTS(9,2){C}{C'}
24 \pstransTS(9,6){D}{D'}
25 \pstransTS(7,8){E}{E'}
26 \pstransTS(3,8){F}{F'}
27 \pstransTS(1,6){G}{G'}
28 \pstransTS(1,2){H}{H'}
29 %---------------------------------------------
30 }
31 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.4,linecolor=blue](A')(B')(C')(D')(E')(F')(G')(H')
32 \pspolygon[fillstyle=solid,fillcolor=yellow!40,opacity=0.2,linewidth=0.9pt,linecolor=red](A)(B)(C)(D)(E)(F)(G)(H)
33 \pcline[linewidth=1.3pt](0,0|O)(11,0|O)
34 \psset{toplinewidth=0.5pt,opacity=0.3,vkf=0.4,phi=33,topfillcolor=cyan}
35 \psboxTS[linewidth=0.5pt,opacity=0.2,linejoin=1,hideline=true,dash=2pt 2pt,hidelinewidth=0.3pt](-2,8,1){4}{4}{4}{green}
36 \rput(10,1){\psZylinderTS[opacity=0.6,linewidth=0.5pt,fillstyle=gradient,gradbegin=black!90!blue!80,%
37 gradend=black!40!blue!30,gradangle=90,gradmidpoint=0.25]{2}{4}}
38 \psboxTS[linewidth=0.5pt,opacity=0.1,linejoin=1](-2,8,1){4}{4}{4}{green}
39 \end{pspicture}
40 }}
41
42 \parindent0pt
43
44 \lstset{explpreset={pos=l,width=-99pt,overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,rframe={}},language=PSTricks,
45 morekeywords={pstransTSK,pstransTSX,pstransTS,pstMarkAngle,psIntersectionPoint,psboxTS,pstThreeDPlaneGrid,psZylinderTS,psCircleTS,psCircleTSX,
46 psArcTS,psArcTSX}, escapechar=?}
47
48 %\lstset{language=PSTricks,morekeywords={pst-perspective},basicstyle=\footnotesize\ttfamily}
49 %
50 \begin{document}
51
52 \title{\texttt{pst-perspective}}
53 \subtitle{Plotting the perspective view of a point; v.\pstPerspectiveFV}
54 \author{Thomas S\"{o}ll}
55 \docauthor{}
56 \date{\today}
57 \maketitle
58
59 \tableofcontents
60 \psset{unit=1cm}
61
62 \clearpage
63
64 \begin{abstract}
65 \noindent
66 \LPack{pst-perspective} loads by default the following packages: \LPack{pst-xkey}, and, of course \LPack{pstricks}.
67 All should be already part of your local \TeX\ installation. If not, or in case of having older versions, go to \url{http://www.CTAN.org/} and load the latest version.
68
69 \vfill\noindent
70 Thanks to: \\
71 J\"{u}rgen Gilg \\
72 Herbert Vo{\ss}
73 \end{abstract}
74
75 \clearpage
76 \section{Introduction}
77
78 On the research to draw perspectives of geometrical objects for my classes with PSTricks, I couldn't find a package that fitted all my needs.
79
80 For my needs, it should be possible to draw the perspective (an orthogonal parallel projection) with an arbitrarily chosen angle and a variable shortening factor. The setup for the points should alternatively be possible with cartesian or polar coordinates in two dimensions.
81
82 The package \texttt{pst-solides3d} wasn't useful, cause it uses central projection.
83
84 The package \texttt{pst-3dplot} allows parallel projection, and a shortening factor in one of the dimensions can eventually be chosen, e.\,g. with xThreeDunit, but all points need to be setup with three coordinates. I am not sure about an easy handling of setting up polar coordinates or giving an independent angle for the projection.
85
86 With the macro \Lcs{ThreeDput} from the package \texttt{pst-3d}, only planes and lines in three dimensions are realizable---a third coordinate is needed. For my needs, this didn't seem to be too practicable.
87
88 I think that with some of the already existing PSTricks packages a realisation of perspectives in the wanted form could have surely been managed. I couldn't see this however and wanted some simple macros, without loading mighty packages.
89
90 To make a long story short: I decided to write a small PSTricks package, that will fit all my needs. This package contains only four small macros, so unwanted crashes with other PSTricks packages are not awaited.
91
92
93 \section{General}
94
95 The described macros should help you to easily draw a perspective of a geometrical object like often used in school.
96
97 There are three macros, the first two called \Lcs{pstransTS} and \Lcs{pstransTSX} are used to draw a perspective of a geometrical object laying in the $x,y$-plane and transforms every vertex. The points first get projected orthogonally to the base line (parameter \Lkeyword{base}), parallel to the $x$-axis, and therefrom they get transformed with an arbitrarily chosen angle measured from the positive $x$-axis (parameter \Lkeyword{phi}) and shortened (multiplied with the shortening factor \Lkeyword{vkf}). You then can use these transformed points with its given node names. It is similar with \Lcs{pstransTSX}, but the difference is, that the points are projected orthogonally onto a base line (Parameter \Lkeyword{base}) parallel to the $y$-axis, and therefrom they get transformed with an arbitrarily chosen angle (parameter \Lkeyword{phi}) and shortened (multiplied with the shortening factor \Lkeyword{vkf}). These two cases correspond to a projection of an object of the drawing plane into the $x$-$y$-plane or $x$-$z$-plane.
98
99 The third macro \Lcs{pstransTSK} only shifts the points under a given angle \Lkeyword{phi} and shortens the initial distance to the base line with the factor \Lkeyword{vkf}. This macro is perfect, if the edges that need to be transformed, lay in the $x,y$-plane and the transformed edges lead to the back, orthogonal to the $x,y$-plane. Typical examples are the perspectives of a cuboid, square or an upright prism, where the base is in the $x,y$-plane.
100
101 Both macros only generate the nodes for the transformed points, but the points itselves are neither drawn nor labeled. This must be done e.\,g. with \Lcs{psdot} and \Lcs{uput}. With booleans we can visualize the subsidiary lines, which show the orthogonal projection onto the base line and from there to the calculated transformed point.
102
103 The subsidiary lines can be drawn in different colors, line styles and line widths with some additional optional parameters.
104
105
106 \section{The macro \nxLcs{pstransTS}}
107 \begin{BDef}
108 \Lcs{pstransTS}\OptArgs\Largr{$x_{\rm{A}},y_{\rm{A}}$}\Largb{\rm{A}}\Largb{\rm{A}'}
109 \end{BDef}
110
111 The macro \Lcs{pstransTS}\OptArgs$(x_{\rm{A}},y_{\rm{A}})$\Largb{\rm{A}}\Largb{\rm{A}'} uses parentheses for the coordinates of the point. These coordinates can be setup in the usual PSTricks ways. The second argument in curly braces is the node name that is now given for this point. The new calculated point gets the node name to be entered as third argument and is needed to be enclosed in curly braces as well.
112
113 In the following example the point $\text{A}(1|4)$ is firstly mapped onto the $x$-axis (visualized by the green dashed line) and from there a node named $\text{A}'$ is generated with a projection angle $\varphi=45^{\circ}$ and with half of its initial length \Largr{\rm{vkf}=0.5}.
114
115 \begin{LTXexample}[wide,width=3cm]
116 \begin{pspicture}[showgrid=true,shift=-4.9](0.5,-0.5)(3,4.4)
117 {\psset{translineA=true,translineB=true}
118 \pnode(0,\ba){O}% \ba gives the y-value of the base line
119 \pstransTS(1,4){A}{A'}
120 }
121 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
122 \psdot(A)% draw point A
123 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
124 \psdot[linecolor=brown](A')% draw point A'
125 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
126 \pstMarkAngle[LabelSep=1.5,MarkAngleRadius=0.7,linecolor=blue,arrows=->]{3,\ba}{A|O}{A'}{$\varphi=45^{\circ}$}% draw and label the angle
127 \end{pspicture}
128 \end{LTXexample}
129
130 \newpage
131 \subsection{Choice of the base line}
132 \begin{BDef}
133 \Lcs{pstransTS}[\OptArg*{\Lkeyset{base=\dots}}]
134 \end{BDef}
135
136 We can define the $y$-value of the base line with \Lcs{pstransTS}[\OptArg*{\Lkeyset{base=\dots}}]. The default value is \Lkeyset{base=0}. Using \Lkeyset{base=1} we achieve, that the point is projected to a parallel to the $x$-axis with the equation $y=1$. This case is shown in the following example.
137
138 \begin{LTXexample}[wide,width=3cm]
139 \begin{pspicture}[showgrid=true,shift=-4.9](0.5,-0.5)(3,4.4)
140 {\psset{translineA=true,translineB=true,base=1}
141 \pstransTS[base=1](1,4){A}{A'}
142 \pnode(0,\ba){O}
143 }
144 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
145 \psdot(A)% draw point A
146 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
147 \psdot[linecolor=brown](A')% draw point A'
148 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
149 \end{pspicture}
150 \end{LTXexample}
151
152 Is the point to be projected below the base line, as shown in the example below ($\text{A}(1|0.5)$ with \Lkeyset{base=3}; \ $3>0.5$), it is not projected with the angle $\varphi$ but with the angle $180^{\circ}+\varphi$. If the angle $\varphi=45^{\circ}$ is chosen, then we get a resulting angle of $225^{\circ}$.
153
154 \begin{LTXexample}[wide,width=4cm]
155 \begin{pspicture}[showgrid=true,shift=-4.9](-1.5,-0.5)(2,4.4)
156 {\psset{base=3,translineA=true,translineB=true,linestyle=dashed,transAcolor=red,transBcolor=blue,dash=5pt 4pt}
157 \pnode(0,\ba){O}
158 \pstransTS(1,0.5){A}{A'}
159 }
160 \pcline[linewidth=1.3pt](-2,0|O)(2,0|O)
161 \psdot(A)
162 \uput{4pt}[-30]{0}(A){$\text{A}$}
163 \psdot[linecolor=brown](A')
164 \uput{4pt}[180]{0}(A'){$\text{A}'$}
165 \pstMarkAngle[LabelSep=1.2,MarkAngleRadius=0.7,linecolor=blue,arrows=->]{3,\ba}{A|O}{A'}{$\varphi=225^{\circ}$}
166 \end{pspicture}
167 \end{LTXexample}
168
169 \newpage
170 \subsection{Shifting the origin}
171 \begin{BDef}
172 \Lcs{pstransTS}[\OptArg*{\Lkeyset{originT=\{point\}}}]
173 \end{BDef}
174
175 If we like to give points relative to a certain point, we can setup this point with \Lkeyset{originT=\{Z\}}. The syntax of this point is the usual PSTricks syntax, but it needs to be enclosed in curly braces and the parentheses are omitted. Especially with the usage of polar coordinates this can be profitable. A typical example is the drawing of a regular polygon. The vertices are mostly setup in polar coordinates so that we can rotate the polygon quite easily. For radius and angle we choose $\text{Z}$ as reference point. As shown in later example, it is no big deal to generate an upright prism as well as an oblique prism.
176
177 Note, that the base line is shifted as well when shifting of the origin. With \Lkeyset{originT=\{2,3\}} we get the base line $y=3$. With the additional setting of \Lkeyset{base=-2} we additionally shift the base line two units down and finally get $y=1$.
178
179 In the following example, we start from $\text{Z}(0|1)$ with a radius of $3$ and an angle of $60^{\circ}$ and a node named $\text{A}$ will be generated. The point $\text{A}$ will now be mapped onto the $x$-axis (\Lkeyset{base=-1}, due to the base was already shifted with the choice of $\text{Z}$ which itself was shifted one unit upwards, see red line) and from there a node named $\text{A}'$ is generated with the angle $\varphi=45^{\circ}$ and with half of its initial length (\Lkeyset{vkf=0.5}).
180
181 \begin{LTXexample}[wide,width=3cm]
182 \begin{pspicture}[showgrid=true,shift=-4.9](0.5,-0.5)(3,4.4)
183 {\psset{base=-1,translineA=true,translineB=true,transAcolor=red,transBcolor=blue}
184 \pnode(0,0){O}% \ba gives the y-value of the base line
185 \pnode(0,1){Z}%
186 \pnode(4,0|Z){W1}%
187 \pstransTS[originT={Z}](3;60){A}{A'}}
188 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
189 \psdot(A)% draw point A
190 \uput{4pt}[90]{0}(A){$\text{A}$} % label point A
191 \psdot[linecolor=brown](A')% draw point A'
192 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
193 \psdot(Z)% draw point Z
194 \uput{4pt}[225]{0}(Z){$\text{Z}$}% label point Z
195 \psarc[linestyle=dashed,linecolor=cyan](Z){3}{15}{100}
196 \pcline[linecolor=cyan,linestyle=dashed](Z)(A)
197 \naput[nrot=:U]{$r=3$}
198 \pstMarkAngle[LabelSep=0.8,MarkAngleRadius=1.2,linecolor=cyan,arrows=->]{W1}{Z}{A}{$60^{\circ}$}% draw and label angle
199 \pstMarkAngle[LabelSep=1.5,MarkAngleRadius=0.7,linecolor=blue,arrows=->]{3,0}{A|O}{A'}{$\varphi=45^{\circ}$}% draw and label angle
200 \end{pspicture}
201 \end{LTXexample}
202
203 \newpage
204 \subsection{The base given by a point}
205 \begin{BDef}
206 \Lcs{pstransTS}[\OptArg*{\Lkeyset{LowPoint=true},\Lkeyset{LowP=\{point\}}}]
207 \end{BDef}
208
209 There might arise some difficulties in polar coordinates concerning the $y$-value of the point through which the base line should go, cause it is not explicitly known. This value for the base however can be calculated easily in most cases using RPN.
210
211 For more complex points, the described way might be quite complicated. With the options \Lkeyset{LowPoint=true} and \Lkeyset{LowP=point} the base is setup through this point and an explicitly given base is ignored.
212
213 Some examples will be visualized in the following examples. Starting from point $\text{Z}(4|4)$ we setup a point relatively to $\text{Z}$ in polar coordinates. Should the base now go through this point (the transformed point matches with this point), some trigonometrical relations might help. We get however the same result when using the options \Lkeyset{LowPoint=true} and \Lkeyset{LowP=point}.
214
215 \OptArg*{\Lkeyset{base=292.5 360 sub sin 3 mul}}
216 \begin{LTXexample}[wide,pos=t]
217 \begin{pspicture}[showgrid=true](1,0.8)(8.5,7)
218 %------ Vertices of the octagon -------------
219 {\pnode(4,4){Z}
220 \psset{originT=Z,base=292.5 360 sub sin 3 mul,translineA=true,translineB=true}
221 \pstransTS(3;292.5){A}{A'}
222 \pstransTS(3;67.5){B}{B'}
223 \psdot(A)% draw point A
224 \uput{4pt}[0]{0}(A){$\text{A}$} % label point A
225 \psdot(B)% draw point B
226 \uput{4pt}[90]{0}(B){$\text{B}$} % label point B
227 \psdot(B')% draw point B'
228 \uput{4pt}[90]{0}(B'){$\text{B}'$} % label point B'
229 \psdot(Z)% draw point Z
230 \uput{4pt}[225]{0}(Z){$\text{Z}$}% label point Z
231 }
232 \end{pspicture}
233 \end{LTXexample}
234
235 \newpage
236 \OptArg*{\Lkeyset{LowPoint=true},\Lkeyset{LowP=\{3;292.5\}}}
237 \begin{LTXexample}[wide,pos=t]
238 \begin{pspicture}[showgrid=true](1,0.8)(8.5,7)
239 %------ Vertices of the octagon -------------
240 {\pnode(4,4){Z}
241 \psset{originT=Z,LowPoint=true,LowP={3;292.5},translineA=true,translineB=true}
242 \pstransTS(3;292.5){A}{A'}
243 \pstransTS(3;67.5){B}{B'}
244 \psdot(A)% draw point A
245 \uput{4pt}[0]{0}(A){$\text{A}$} % label point A
246 \psdot(B)% draw point B
247 \uput{4pt}[90]{0}(B){$\text{B}$} % label point B
248 \psdot(B')% draw point B'
249 \uput{4pt}[90]{0}(B'){$\text{B}'$} % label point B'
250 \psdot(Z)% draw point Z
251 \uput{4pt}[225]{0}(Z){$\text{Z}$}% label point Z
252 }
253 \end{pspicture}
254 \end{LTXexample}
255
256 \newpage
257 It must be pointed out, that with the definition of \Lcs{pnode(r;phi)\{point\}} followed by \Lkeyset{LowP=point}, the base is not shifted, which however only becomes noticeable, when the origin was shifted. In this case we write \Lcs{rput(origin)\{}\Lcs{pnode(r;phi)\{point\}}\}.
258
259 Referring to the previous example, this looks as follows.
260
261 \Lcs{pnode(4,4){Z}} \Lcs{rput(Z)\{}\Lcs{pnode(3;292.5)\{LP\}}\}
262 \OptArg*{\Lkeyset{originT=Z},\Lkeyset{LowPoint=true},\Lkeyset{LowP=\{LP\}}}
263 \begin{LTXexample}[wide,pos=t]
264 \begin{pspicture}[showgrid=true](1,0.8)(8.5,7)
265 %------ Vertices of the octagon -------------
266 {\pnode(4,4){Z}
267 \rput(Z){\pnode(3;292.5){LP}}
268 \psset{originT=Z,LowPoint=true,LowP={LP},translineA=true,translineB=true}
269 \pstransTS(3;292.5){A}{A'}
270 \pstransTS(3;67.5){B}{B'}
271 \psdot(A)% draw point A
272 \uput{4pt}[0]{0}(A){$\text{A}$} % label point A
273 \psdot(B)% draw point B
274 \uput{4pt}[90]{0}(B){$\text{B}$} % label point B
275 \psdot(B')% draw point B'
276 \uput{4pt}[90]{0}(B'){$\text{B}'$} % label point B'
277 \psdot(Z)% draw point Z
278 \uput{4pt}[225]{0}(Z){$\text{Z}$}% label point Z
279 }
280 \end{pspicture}
281 \end{LTXexample}
282
283 \newpage
284
285 A typical example is the regular octagon, where the vertices can easily be given in polar coordinates. Without changing the base explicitly, it goes through the center.
286
287 \begin{LTXexample}[wide,pos=t]
288 \begin{pspicture}[showgrid=true](1,0.8)(8.5,7)
289 \psset{linejoin=2}
290 %------ Vertices of the octagon -------------
291 {\pnode(4,4){Z}
292 \psset{originT=Z,translineA=true,translineB=true}
293 \pstransTS(3;22.5){A}{A'}
294 \pstransTS(3;67.5){B}{B'}
295 \pstransTS(3;112.5){C}{C'}
296 \pstransTS(3;157.5){D}{D'}
297 \pstransTS(3;202.5){E}{E'}
298 \pstransTS(3;247.5){F}{F'}
299 \pstransTS(3;292.5){G}{G'}
300 \pstransTS(3;337.5){H}{H'}
301 }
302 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](A')(B')(C')(D')(E')(F')(G')(H')
303 \pspolygon[fillstyle=solid,fillcolor=yellow!40,opacity=0.1,linewidth=0.9pt,linecolor=red](A)(B)(C)(D)(E)(F)(G)(H)
304 \end{pspicture}
305 \end{LTXexample}
306
307 \newpage
308 If we want to have the base through the lower points, we can calculate the base or use a suitable option.
309
310 \begin{LTXexample}[wide,pos=t]
311 \begin{pspicture}[showgrid=true](1,0.8)(8.5,7)
312 \psset{linejoin=2}
313 %------ Vertices of the octagon -------------
314 {\pnode(4,4){Z}
315 \rput(Z){\pnode(3;292.5){LP}}
316 \psset{originT=Z,LowPoint=true,LowP={LP},translineA=true,translineB=true}
317 \pstransTS(3;22.5){A}{A'}
318 \pstransTS(3;67.5){B}{B'}
319 \pstransTS(3;112.5){C}{C'}
320 \pstransTS(3;157.5){D}{D'}
321 \pstransTS(3;202.5){E}{E'}
322 \pstransTS(3;247.5){F}{F'}
323 \pstransTS(3;292.5){G}{G'}
324 \pstransTS(3;337.5){H}{H'}
325 }
326 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](A')(B')(C')(D')(E')(F')(G')(H')
327 \pspolygon[fillstyle=solid,fillcolor=yellow!40,opacity=0.1,linewidth=0.9pt,linecolor=red](A)(B)(C)(D)(E)(F)(G)(H)
328 \end{pspicture}
329 \end{LTXexample}
330
331 \newpage
332 \subsection{Angle of projection}
333 \begin{BDef}
334 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{phi=30}}].
335 \end{BDef}
336
337 The angle of projection is $45^{\circ}$ by default. If you like another angle e.\,g. $30^{\circ}$, use the optional argument \Lcs{pstransTS}[\OptArg*{\nxLkeyword{phi=30}}].
338
339 \begin{LTXexample}[wide,width=3cm]
340 \begin{pspicture}[showgrid=true,shift=-4.6](0.5,-0.5)(3,4.1)
341 {\psset{phi=30,base=0,translineA=true,translineB=true,transAcolor=red,transBcolor=blue}
342 \pnode(0,\ba){O}% \ba gives the y-value of the base line
343 \pstransTS(1,4){A}{A'}
344 }
345 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
346 \psdot(A)% draw point A
347 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
348 \psdot[linecolor=brown](A')% draw point A'
349 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
350 \pstMarkAngle[LabelSep=1.5,MarkAngleRadius=0.7,linecolor=blue,arrows=->]{3,\ba}{A|O}{A'}{$\varphi=30^{\circ}$}% draw and label angle
351 \end{pspicture}
352 \end{LTXexample}
353
354 \begin{LTXexample}[wide,width=3cm]
355 \begin{pspicture}[showgrid=true,shift=-4.6](0.5,-0.5)(3,4.1)
356 {\psset{phi=60,base=0,translineA=true,translineB=true,transAcolor=red,transBcolor=blue}
357 \pnode(0,\ba){O}% \ba gives the y-value of the base line
358 \pstransTS(1,4){A}{A'}
359 }
360 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
361 \psdot(A)% draw point A
362 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
363 \psdot[linecolor=brown](A')% draw point A'
364 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
365 \pstMarkAngle[LabelSep=1.5,MarkAngleRadius=0.7,linecolor=blue,arrows=->]{3,\ba}{A|O}{A'}{$\varphi=60^{\circ}$}% draw and label angle
366 \end{pspicture}
367 \end{LTXexample}
368
369
370
371 \newpage
372 \subsection{Shortening factor}
373 \begin{BDef}
374 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{vkf=0.5}}].
375 \end{BDef}
376
377 The shortening factor is \Lkeyset{vkf=0.5} by default. This means that the distance from the orthogal projected point to the calculated point only has half the length. A possible example is \Lcs{pstransTS}[\OptArg*{\nxLkeyword{vkf=1.2}}]. We are allowed to calculate the shortening factor in RPN as in the following example:
378
379 \Lcs{pstransTS}[\OptArg*{\Lkeyset{vkf=2 sqrt 2 div}}]. The shortening factor is then approximately $0.707$.
380
381 \begin{LTXexample}[wide,width=4.5cm]
382 \begin{pspicture}[showgrid=true,shift=-4.9](0.5,-0.5)(5,4.4)
383 {\psset{vkf=1.2,translineA=true,translineB=true,transAcolor=red,transBcolor=blue}
384 \pnode(0,\ba){O}% \ba gives the y-value of the base line
385 \pstransTS(1,4){A}{A'}
386 }
387 \pcline[linewidth=1.3pt](0,0|O)(5,0|O)% draw base line
388 \psdot(A)% draw point A
389 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
390 \psdot[linecolor=brown](A')% draw point A'
391 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
392 \end{pspicture}
393 \end{LTXexample}
394
395 \begin{LTXexample}[wide,width=3cm]
396 \begin{pspicture}[showgrid=true,shift=-4.9](0.5,-0.5)(3,4.4)
397 {\psset{vkf=0.5 sqrt,base=0,translineA=true,translineB=true,transAcolor=red,transBcolor=blue}
398 \pnode(0,\ba){O}% \ba gives the y-value of the base line
399 \pstransTS(1,4){A}{A'}
400 }
401 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
402 \psdot(A)% draw point A
403 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
404 \psdot[linecolor=brown](A')% draw point A'
405 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
406 \end{pspicture}
407 \end{LTXexample}
408
409 \newpage
410 \subsection{Subsidiary lines and their options}
411
412 With the two booleans \Lkeyset{translineA=true/false} and \Lkeyset{translineB=true/false} the subsidiary lines can be shown or not. Their defaults are \Lkeyset{translineA=false} and \Lkeyset{translineB=false}.
413
414 \begin{LTXexample}[wide,width=3.5cm]
415 \begin{pspicture}[showgrid=true,shift=-4.6](0.5,-0.5)(3,4.1)
416 \pstransTS(1,4){A}{A'}
417 \psdot(A)% draw point A
418 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
419 \psdot[linecolor=brown](A')% draw point A'
420 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
421 \end{pspicture}
422 \end{LTXexample}
423
424 \begin{LTXexample}[wide,width=3.5cm]
425 \begin{pspicture}[showgrid=true,shift=-4.6](0.5,-0.5)(3,4.1)
426 {\psset{translineA=true,translineB=false,transAcolor=red,transBcolor=blue}
427 \pnode(0,\ba){O}% \ba gives the y-value of the base line
428 \pstransTS(1,4){A}{A'}
429 }
430 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
431 \psdot(A)% draw point A
432 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
433 \psdot[linecolor=brown](A')% draw point A'
434 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
435 \end{pspicture}
436 \end{LTXexample}
437
438 \begin{LTXexample}[wide,width=3.5cm]
439 \begin{pspicture}[showgrid=true,shift=-4.6](0.5,-0.5)(3,4.1)
440 {\psset{translineA=false,translineB=true,transAcolor=red,transBcolor=blue}
441 \pnode(0,\ba){O}% \ba gives the y-value of the base line
442 \pstransTS(1,4){A}{A'}
443 }
444 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
445 \psdot(A)% draw point A
446 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
447 \psdot[linecolor=brown](A')% draw point A'
448 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
449 \end{pspicture}
450 \end{LTXexample}
451
452 \newpage
453 Every of the subsidiary lines can individually be setup with three properties: line width, line color and line style. Therefore we define the following options with its defaults.
454
455 \begin{BDef}
456 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{transAlinewidth=0.7pt}}],\\
457 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{transAcolor=green}}],\\
458 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{transAlinestyle=dashed}}],\\
459 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{transBlinewidth=0.7pt}}],\\
460 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{transBcolor=blue}}],\\
461 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{transBlinestyle=dashed}}]
462 \end{BDef}
463
464 \begin{LTXexample}[wide,width=3.5cm]
465 \begin{pspicture}[showgrid=true,shift=-4.6](0.5,-0.5)(3,4.1)
466 \pstransTS[translineA=true,translineB=true,transAlinestyle=solid,transBlinestyle=dotted](1,4){A}{A'}
467 \psdot(A)% draw point A
468 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
469 \psdot[linecolor=brown](A')% draw point A'
470 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
471 \end{pspicture}
472 \end{LTXexample}
473
474 \begin{LTXexample}[wide,width=3.5cm]
475 \begin{pspicture}[showgrid=true,shift=-4.6](0.5,-0.5)(3,4.1)
476 {\psset{translineA=true,translineB=true,transAcolor=brown,transBcolor=cyan}
477 \pnode(0,\ba){O}% \ba gives the y-value of the base line
478 \pstransTS(1,4){A}{A'}
479 }
480 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
481 \psdot(A)% draw point A
482 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
483 \psdot[linecolor=brown](A')% draw point A'
484 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
485 \end{pspicture}
486 \end{LTXexample}
487
488 \begin{LTXexample}[wide,width=3.5cm]
489 \begin{pspicture}[showgrid=true,shift=-4.6](0.5,-0.5)(3,4.1)
490 {\psset{translineA=true,translineB=true,transAlinewidth=1.2pt,transBlinewidth=2.5pt}
491 \pnode(0,\ba){O}% \ba gives the y-value of the base line
492 \pstransTS(1,4){A}{A'}
493 }
494 \pcline[linewidth=1.3pt](0,0|O)(3,0|O)% draw base line
495 \psdot(A)% draw point A
496 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
497 \psdot[linecolor=brown](A')% draw point A'
498 \uput{4pt}[45]{0}(A'){$\text{A}'$}% label point A'
499 \end{pspicture}
500 \end{LTXexample}
501
502 \newpage
503
504 \section{The macro \nxLcs{pstransTSX}}
505 \begin{BDef}
506 \Lcs{pstransTSX}\OptArgs\Largr{$x_{\rm{A}},y_{\rm{A}}$}\Largb{\rm{A}}\Largb{\rm{A}'}
507 \end{BDef}
508
509 The macro \Lcs{pstransTSX}\OptArgs$(x_{\rm{A}},y_{\rm{A}})$\Largb{\rm{A}}\Largb{\rm{A}'} is used like \Lcs{pstransTS}. Also the parameters have the same names.
510 The only difference is, that the points are projected on a line parallel to the $y$-axis.
511
512 This case we use, when we want to transform points on the lateral face of the perspective. Therefore, the lateral face needs to spread orthogonally backwards related to the $x,y$-plane.
513
514 In the following example, the point $\text{A}(0.5|2)$ is projected orthogonally on the line $x=2$ (see green dashed line) und from there with an angle of $\varphi=45^{\circ}$ and with a shortening factor of a \Largr{\rm{vkf}=0.5} a node named $\text{A}'$ is generated.
515
516 \begin{LTXexample}[wide,width=3cm]
517 \begin{pspicture}[showgrid=true](0.5,-0.5)(3,4.4)
518 {\psset{translineA=true,translineB=true,base=2,symline=0,symX=false}
519 \pnode(2,0.5){O}%
520 \pstransTSX(0.5,2){A}{A'}
521 \pstransTSX(1,1.5){B}{B'}
522 \pstransTSX(0,0.5){C}{C'}
523 }%
524 \pcline[linewidth=1.3pt](2,0)(2,4)% draw base line
525 \psdot(A)% draw point A
526 \uput{4pt}[135]{0}(A){$\text{A}$} % label point A
527 \psdot[linecolor=brown](A')% draw point A'
528 \psdot[linecolor=blue](B')% draw point B'
529 \psdot[linecolor=red](C')% draw point C'
530 \uput{4pt}[90]{0}(A'){$\text{A}'$}% label point A'
531 \pnode(3,0.5){P}%
532 \pstMarkAngle[LabelSep=1.0,MarkAngleRadius=0.65,linecolor=blue,arrows=->]{P}{O}{C'}{$\scriptstyle 45^{\circ}$}% draw and label angle
533 \pcline[linestyle=dashed](O)(P)
534 \end{pspicture}
535 \end{LTXexample}
536
537
538 \subsection{Symmetry of the transformation}
539
540 As shown in the example above the points laying in the object left to the base are transformed further away than those laying right. This might disturb, if we want to transform points onto the lateral face. The following example will discuss this problem. It is three o'clock, after the transformation onto the lateral face it is nine o'clock. (Note: \Lkeyset{base=1} means, that the base is $x=2$, cause \Lkeyset{originT=\{1,2\}} shifts the origin, from which the base is counted positive to the right.)
541
542 \begin{LTXexample}[wide,width=3cm]
543 \begin{pspicture}[showgrid=true](0.5,-0.5)(3,4.4)
544 \pnode(1,2){UZ}
545 {\psset{originT={UZ},base=1,symX=false}
546 \pstransTSX(0,0){U1}{U1'}
547 \pstransTSX[translineA=true,translineB=true](0.3;0){zg1}{zg1'}
548 \pstransTSX[translineA=true,translineB=true](0.5;90){zg2}{zg2'}
549 %-----------------------------------------------------
550 \pscircle(UZ){0.5}
551 \psline[linecolor=yellow!90!black!70]{c-c}(U1)(zg1)
552 \psline[linecolor=yellow!90!black!70]{c-c}(U1)(zg2)
553 %-----------------------------------------------------
554 \psline[linecolor=red]{c-c}(U1')(zg1')
555 \psline[linecolor=orange]{c-c}(U1')(zg2')
556 \multido{\i=0+5,\n=5+5}{72}{%
557 \pstransTSX(0.5;\i){A\i}{A'\i}
558 \pstransTSX(0.5;\n){B\n}{B'\n}
559 \psline(A'\i)(B'\n)}
560 }
561 \end{pspicture}
562 \end{LTXexample}
563
564 A corresponding symmetrical transformation we get with \Lkeyset{symX=true,symline=0} which is the default. (Note as well, that \Lkeyset{symline=0} gives the symmetry axis relatively to \Lkeyset{originT=\{UZ\}}. Thus, the symmetry axis is $x=1$.)
565
566 \begin{LTXexample}[wide,width=3cm]
567 \begin{pspicture}[showgrid=true](0.5,-0.5)(3,4.4)
568 \pnode(1,2){UZ}
569 {\psset{originT={UZ},base=1,symX=true,symline=0}
570 \pstransTSX(0,0){U1}{U1'}
571 \pstransTSX[translineA=true,translineB=true](0.3;0){zg1}{zg1'}
572 \pstransTSX[translineA=true,translineB=true](0.5;90){zg2}{zg2'}
573 %-----------------------------------------------------
574 \pscircle(UZ){0.5}
575 \psline[linecolor=yellow!90!black!70]{c-c}(U1)(zg1)
576 \psline[linecolor=yellow!90!black!70]{c-c}(U1)(zg2)
577 %-----------------------------------------------------
578 \psline[linecolor=red]{c-c}(U1')(zg1')
579 \psline[linecolor=orange]{c-c}(U1')(zg2')
580 \multido{\i=0+5,\n=5+5}{72}{%
581 \pstransTSX(0.5;\i){A\i}{A'\i}
582 \pstransTSX(0.5;\n){B\n}{B'\n}
583 \psline(A'\i)(B'\n)}
584 }
585 \end{pspicture}
586 \end{LTXexample}
587
588 Another effect with the macro \Lcs{pstransTSX} can be achieved by the parameter \Lkeyset{deltaphi=\ldots} with which we can increase or decrease the projection angle for some objects locally and leaving the setting of \Lkeyset{phi=\ldots} globally. \Lkeyset{deltaphi=\ldots} adds/subtracts the given projection angle by that value. The result looks like an object swinging out the lateral face.
589
590 \begin{LTXexample}[wide,width=3cm]
591 \begin{pspicture}[showgrid=true](0.5,-0.5)(3,4.4)
592 \pnode(1,2){UZ}
593 {\psset{originT={UZ},base=1,phi=15,symX=true,symline=0}
594 \pstransTSX(0,0){U1}{U1'}
595 \pstransTSX[translineA=true,translineB=true](0.3;0){zg1}{zg1'}
596 \pstransTSX[translineA=true,translineB=true](0.5;90){zg2}{zg2'}
597 %-----------------------------------------------------
598 \pscircle(UZ){0.5}
599 \psline[linecolor=yellow!90!black!70]{c-c}(U1)(zg1)
600 \psline[linecolor=yellow!90!black!70]{c-c}(U1)(zg2)
601 %-----------------------------------------------------
602 \psline[linecolor=red]{c-c}(U1')(zg1')
603 \psline[linecolor=orange]{c-c}(U1')(zg2')
604 \multido{\i=0+5,\n=5+5}{72}{%
605 \pstransTSX(0.5;\i){A\i}{A'\i}
606 \pstransTSX(0.5;\n){B\n}{B'\n}
607 \psline(A'\i)(B'\n)}
608 {\psset{deltaphi=45}
609 \pstransTSX(0,0){U1}{U1'}
610 \pstransTSX[translineA=true,translineB=true](0.3;0){zg1}{zg1'}
611 \pstransTSX[translineA=true,translineB=true](0.5;90){zg2}{zg2'}
612 %-----------------------------------------------------
613 \psline[linecolor=red]{c-c}(U1')(zg1')
614 \psline[linecolor=orange]{c-c}(U1')(zg2')
615 \multido{\i=0+5,\n=5+5}{72}{%
616 \pstransTSX(0.5;\i){A\i}{A'\i}
617 \pstransTSX(0.5;\n){B\n}{B'\n}
618 \psline(A'\i)(B'\n)}
619 }
620 }
621 \end{pspicture}
622 \end{LTXexample}
623
624 \newpage
625 \section{The macro \nxLcs{pstransTSK}}
626 \begin{BDef}
627 \Lcs{pstransTSK}\OptArgs$(x_{\rm{A}},y_{\rm{A}})$\Largb{\rm{length}}\Largb{\rm{A}}\Largb{\rm{A}'}
628 \end{BDef}
629
630 If the edges that should be transformed run vertically in the $x,y$-plane, they are projected orthogonally to the base line and from there transformed by a chosen angle and eventually by a shortening factor. The orthogonal projection of all points of a vertical edge end in the intersection point of this edge with the base line. Choosing a proper base, the intersection point of the vertical edge with the base line is a vertex of the geometrical object. In that special case it is sufficient to only project one of the vertices of the vertical line---such as doing it, constructing a perspective of the edges vertical to the $x,y$-plane (leading to the back) of a three-dimensional body with a given projection angle and a choden shortening factor. Thus, the projection can be reduced, cause only half of the vertices need to be transformed by a simple shifting.
631
632 The macro \Lcs{pstransTSK} shifts a point to be setup in parentheses. The length of the shift is calculated by the value given after it in curly braces multiplied with the shortening factor that is \Lkeyset{vkf=0.5} by default. The angle of the shifting in relation to the horizontal ($x$-axis), $45^{\circ}$ by default, can be varied by \Lkeyset{phi=\ldots}. The subsidiary lines can be shown or hidden. The options of the subsidiary lines can be varied.
633
634 The following set of examples will make this clearer.
635
636 First we setup the points of a square that lays in $x,y$-plane. These points we give the node names $\text{A}$, $\text{B}$, $\text{C}$ and $\text{D}$. The transformed points are shifted by two units (the length $4$ is multiplied by the shortening factor $0.5$) and the transformed nodes names $\text{A}'$, $\text{B}'$, $\text{C}'$ and $\text{D}'$ are calculated and stored under that names.
637
638 \begin{LTXexample}[wide,width=5.5cm]
639 \begin{pspicture}[showgrid=false,shift=-5.0](0.7,-0.4)(7,5.8)
640 %---- Vertices of the square ---
641 \pstransTSK(1,0){4}{A}{A'}
642 \pstransTSK(5,0){4}{B}{B'}
643 \pstransTSK(5,4){4}{C}{C'}
644 \pstransTSK(1,4){4}{D}{D'}
645 \pspolygon[linewidth=0.9pt,linecolor=black](A)(B)(C)(D)
646 \pspolygon[linewidth=0.9pt,linecolor=black](A')(B')(C')(D')
647 \end{pspicture}
648 \end{LTXexample}
649
650 With some other angles this looks as follows:
651
652 \begin{LTXexample}[wide,width=6.5cm]
653 \begin{pspicture}[showgrid=false,shift=-5.0](0.7,-0.4)(7,5.8)
654 %---- Vertices of the square ---
655 \pstransTSK[phi=30](1,0){4}{A}{A'}
656 \pstransTSK[phi=30](5,0){4}{B}{B'}
657 \pstransTSK[phi=30](5,4){4}{C}{C'}
658 \pstransTSK[phi=30](1,4){4}{D}{D'}
659 \pspolygon[linewidth=0.9pt,linecolor=black](A)(B)(C)(D)
660 \pspolygon[linewidth=0.9pt,linecolor=black](A')(B')(C')(D')
661 \end{pspicture}
662 \end{LTXexample}
663
664 \begin{LTXexample}[wide,width=5.5cm]
665 \begin{pspicture}[showgrid=false,shift=-5.0](0.7,-0.4)(7,5.8)
666 %---- Vertices of the square ---
667 \psset{phi=60}
668 \pstransTSK(1,0){4}{A}{A'}
669 \pstransTSK(5,0){4}{B}{B'}
670 \pstransTSK(5,4){4}{C}{C'}
671 \pstransTSK(1,4){4}{D}{D'}
672 \pspolygon[linewidth=0.9pt,linecolor=black](A)(B)(C)(D)
673 \pspolygon[linewidth=0.9pt,linecolor=black](A')(B')(C')(D')
674 \end{pspicture}
675 \end{LTXexample}
676
677 A change of the shortening factor leads to the following designs.
678
679 \begin{LTXexample}[wide,width=5.5cm]
680 \begin{pspicture}[showgrid=false,shift=-5.0](0.7,-0.4)(7,5.8)
681 %---- Vertices of the square ---
682 \psset{vkf=0.25}
683 \pstransTSK(1,0){4}{A}{A'}
684 \pstransTSK(5,0){4}{B}{B'}
685 \pstransTSK(5,4){4}{C}{C'}
686 \pstransTSK(1,4){4}{D}{D'}
687 \pspolygon[linewidth=0.9pt,linecolor=black](A)(B)(C)(D)
688 \pspolygon[linewidth=0.9pt,linecolor=black](A')(B')(C')(D')
689 \end{pspicture}
690 \end{LTXexample}
691
692 \begin{LTXexample}[wide,width=6.5cm]
693 \begin{pspicture}[showgrid=false,shift=-5.0](0.7,-0.4)(7,5.8)
694 %---- Vertices of the square ---
695 \psset{vkf=0.75}
696 \pstransTSK(1,0){4}{A}{A'}
697 \pstransTSK(5,0){4}{B}{B'}
698 \pstransTSK(5,4){4}{C}{C'}
699 \pstransTSK(1,4){4}{D}{D'}
700 \pspolygon[linewidth=0.9pt,linecolor=black](A)(B)(C)(D)
701 \pspolygon[linewidth=0.9pt,linecolor=black](A')(B')(C')(D')
702 \end{pspicture}
703 \end{LTXexample}
704
705
706 \newpage
707
708
709 \section{The macro \nxLcs{psboxTS}}
710 \begin{BDef}
711 \Lcs{psboxTS}\OptArgs$(x,y,z)$\Largb{\rm{length in }x}\Largb{\rm{width in }y}\Largb{\rm{height in }z}\Largb{\rm{color}}
712 \end{BDef}
713
714
715 With the macro \Lcs{psboxTS} we can easily draw cuboids. For its three coordinates we use the left, bottom vertex in the back and put them in parentheses separated by commas, followed by its length, width and height and last by its color---all these four arguments are put in curly braces.
716
717 With the option \Lkeyset{hideline=true} the hidden lines are shown with the keys \Lkeyset{hidelinewidth=}, \Lkeyset{hidelinestyle=} and \Lkeyset{hidecolor=}.
718
719 With the option \Lkeyset{differentcol=true} we can give the three visible faces different colors. The color of the right side can changed with \Lkeyset{facecolorR=}, the color of the top can changed with \Lkeyset{facecolorT=}. The frontcolor is the color in curly braces.
720
721 This macro and the others as well can be used in combination with the pst-3dplot package with the settings: \Lkeyset{coorType=1}, \Lkeyset{xThreeDunit=vkf} and \Lkeyset{phi = 180 Alpha sub}.
722
723 \begin{LTXexample}[pos=t]
724 \begin{pspicture}[showgrid=false](-2,-2.5)(6,6)
725 \psset{xMin=0,yMin=0,zMin=0,xMax=11,yMax=11,zMax=4,Alpha=155,Beta=20,Dx=1,Dy=1,Dz=1,arrowsize=.2,arrowinset=0.1,coorType=1,xThreeDunit=0.5,phi=180 155 sub}%
726 \pstThreeDPlaneGrid[planeGrid=xy,linewidth=0.3pt,linecolor=gray!70,xsubticks=7,ysubticks=7](0,0)(7,7)%
727 \pstThreeDPlaneGrid[planeGrid=xz,linewidth=0.3pt,linecolor=gray!70,xsubticks=7,ysubticks=5](0,0)(7,5)%
728 \pstThreeDPlaneGrid[planeGrid=yz,linewidth=0.3pt,linecolor=gray!70,xsubticks=7,ysubticks=5](0,0)(7,5)%
729 %--------------------------------------
730 \psboxTS(0,2,3){3}{4}{1}{blue}
731 \psboxTS[hideline=true,dash=2pt 2pt,hidelinewidth=0.5pt](4,0,0){2}{1}{4}{yellow}
732 \psboxTS[opacity=0.75,hideline=true,hidelinewidth=1.2pt,hidelinestyle=dotted,hidecolor=green,dotsep=1.5pt](3,4,0){4}{2}{1}{brown}
733 \psboxTS[differentcol=true,facecolorR=blue,facecolorT=orange](0,0,1){1}{2}{0.5}{green}
734 %--------------------------------------
735 \end{pspicture}
736 \end{LTXexample}
737
738 \newpage
739
740 \section{Macros for circles and arcs}
741
742 \begin{BDef}
743 \Lcs{psCircleTS}\OptArgs\Largb{\rm{Radius}},\\
744 \Lcs{psCircleTSX}\OptArgs\Largb{\rm{Radius}}
745 \end{BDef}
746
747 \begin{BDef}
748 \Lcs{psArcTS}\OptArgs\Largb{\rm{Radius}}\Largb{\rm{Startwinkel}}\Largb{\rm{\"{u}berstrichener Winkel}},\\
749 \Lcs{psArcTSX}\OptArgs\Largb{\rm{Radius}}\Largb{\rm{Startwinkel}}\Largb{\rm{\"{u}berstrichener Winkel}}
750 \end{BDef}
751
752 %\nxLcs{psCircleTS}, \nxLcs{psCircleTSX}, \nxLcs{psarcTS}, \nxLcs{psarcTSX}, \nxLcs{psZylinderTS}}
753
754 \begin{LTXexample}[pos=t]
755 \begin{pspicture}[showgrid=true,shift=-4.9](0.5,-0.5)(14,7.3)
756 \rput(2,4){\psCircleTS[fillstyle=solid,fillcolor=blue,opacity=0.5]{2}}
757 \rput(10,2){\psCircleTSX[fillstyle=solid,fillcolor=red,opacity=0.5]{2}}
758 \rput(5,2){\psArcTS[linecolor=green,linewidth=0.5pt]{2}{0}{90}}
759 \psArcTSX[linecolor=magenta,linewidth=0.5pt,originT={6,4},symX=false]{1.5}{0}{120}
760 \end{pspicture}
761 \end{LTXexample}
762
763 \newpage
764
765 \section{Macro for cylinder}
766
767 \begin{BDef}
768 \Lcs{psZylinderTS}\OptArgs\Largb{\rm{Radius}}\Largb{\rm{H\"{o}he}}
769 \end{BDef}
770
771 \begin{LTXexample}[pos=t]
772 \begin{pspicture}[showgrid=true,shift=-4.9](0.5,-0.5)(14,8.8)
773 \psset{toplinewidth=0.3pt,toplinecolor=cyan}
774 \rput(10,1){%
775 \psZylinderTS[opacity=0.6,fillstyle=gradient,gradbegin=black!90!blue!80,gradend=black!40!blue!30,gradangle=90,%
776 gradmidpoint=0.3,linecolor=cyan,linewidth=0.8pt]{2.5}{6}}
777 {\psset{phi=30,vkf=2 sqrt 2 div,opacity=0.2}
778 \psboxTS[hideline=true](-1,2,2){2}{2}{4}{green}
779 \rput(3,2){%
780 \psZylinderTS[opacity=0.6,fillstyle=gradient,gradbegin=black!90!blue!80,gradend=black!40!blue!30,gradangle=90,%
781 gradmidpoint=0.3,linecolor=cyan,linewidth=0.8pt]{1}{4}}
782 \psboxTS[hideline=false](-1,2,2){2}{2}{4}{green}
783 }
784 \end{pspicture}
785 \end{LTXexample}
786
787 \newpage
788
789 The following additional options are possible for the cylinder so that the top surface of the cylinder can be designed independently.
790
791 \begin{BDef}
792 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{topfillstyle}}],\\
793 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{topmidpoint}}],\\
794 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{topangle}}],\\
795 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{toplinecolor}}],\\
796 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{topfillcolor}}],\\
797 \Lcs{pstransTS}[\OptArg*{\nxLkeyword{toplinewidth}}]
798 \end{BDef}
799
800
801 In addition, with \Lkeyset{hideline=true}, \Lkeyset{hidelinewidth=}, \Lkeyset{hidelinestyle=} and \Lkeyset{hidecolor=} covert line of the cylinder with different attributes are displayed.
802
803 \begin{LTXexample}[pos=t]
804 \begin{pspicture}[showgrid=true](1,-0.3)(16,6)
805 \psset{toplinewidth=0.5pt,opacity=0.3}
806 {\psset{vkf=0.4,phi=33,topfillcolor=red}
807 \psboxTS[linewidth=0.5pt,opacity=0.2,linejoin=1,hideline=true,dash=2pt 2pt,hidelinewidth=0.3pt](-2,2,1){4}{4}{4}{green}
808 \rput(4,1){\psZylinderTS[opacity=0.6,linewidth=0.5pt,fillstyle=gradient,gradbegin=black!90!blue!80,%
809 gradend=black!40!blue!30,gradangle=90,gradmidpoint=0.25]{2}{4}}
810 \psboxTS[linewidth=0.5pt,opacity=0.1,linejoin=1](-2,2,1){4}{4}{4}{green}}
811 {\psset{vkf=0.7,phi=60,topfillstyle=gradient,topmidpoint=0.4,topangle=90}
812 \psboxTS[linewidth=0.5pt,opacity=0.2,linejoin=1,hideline=true,dash=2pt 2pt,hidelinewidth=0.3pt](-2,8,1){4}{4}{4}{cyan}
813 \rput(10,1){\psZylinderTS[hideline=true,hidecolor=orange,dash=2pt 2pt,%
814 hidelinewidth=0.3pt,opacity=0.6,linewidth=0.5pt,fillstyle=gradient,gradbegin=black!90!blue!80,%
815 gradend=black!40!blue!30,gradangle=90,gradmidpoint=0.25]{2}{4}}
816 \psboxTS[linewidth=0.5pt,opacity=0.1,linejoin=1](-2,8,1){4}{4}{4}{cyan}}
817 \rput{-90}(13,1){\psZylinderTS[phi=-30,linewidth=0.5pt,fillstyle=gradient,gradbegin=black!90!green!80,%
818 gradend=black!40!green!30,gradangle=90,gradmidpoint=0.25,topfillstyle=gradient,topmidpoint=0.5,topangle=35]{1}{3}}
819 \end{pspicture}
820 \end{LTXexample}
821
822 \newpage
823
824 \section{Examples}
825
826 \begin{LTXexample}[pos=t]
827 \begin{pspicture}[showgrid=true](0.5,-0.5)(11.5,8.0)
828 {\psset{phi=40,translineA=true,translineB=true}
829 %------ Vertices of the octagon -------------
830 \pstransTS(3,0){A}{A'}
831 \pstransTS(7,0){B}{B'}
832 \pstransTS(9,2){C}{C'}
833 \pstransTS(9,6){D}{D'}
834 \pstransTS(7,8){E}{E'}
835 \pstransTS(3,8){F}{F'}
836 \pstransTS(1,6){G}{G'}
837 \pstransTS(1,2){H}{H'}
838 %---------------------------------------------
839 }
840 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.4,linecolor=blue](A')(B')(C')(D')(E')(F')(G')(H')
841 \pspolygon[fillstyle=solid,fillcolor=yellow!40,opacity=0.2,linewidth=0.9pt,linecolor=red](A)(B)(C)(D)(E)(F)(G)(H)
842 \pcline[linewidth=1.3pt](0,0|O)(12,0|O)
843 \end{pspicture}
844 \end{LTXexample}
845
846 \newpage
847 \begin{LTXexample}[pos=t]
848 \begin{pspicture}[showgrid=true](0.5,-0.5)(10,8.4)
849 {\psset{base=0,translineA,translineB,linecolor=blue,linestyle=dashed,transAcolor=blue,transBcolor=orange,dash=5pt 5pt}
850 \pnode(0,\ba){O}% \ba gives the y-value of the base line
851 %------ Vertices of the "X" -------------
852 \pstransTS(1,0){A}{A'}
853 \pstransTS(2,0){B}{B'}
854 \pstransTS(4,3){C}{C'}
855 \pstransTS(6,0){D}{D'}
856 \pstransTS(7,0){E}{E'}
857 \pstransTS[transAlinestyle=solid,transAcolor=red,transAlinewidth=2pt](4.5,4){F}{F'}
858 \pstransTS[linestyle=solid,linecolor=green](7,8){G}{G'}
859 \pstransTS[transAcolor=red,transBcolor=black,transBlinewidth=1.4pt](6,8){H}{H'}
860 \pstransTS(4,5){I}{I'}
861 \pstransTS(2,8){J}{J'}
862 \pstransTS[linecolor=red](1,8){K}{K'}
863 \pstransTS(3.5,4){L}{L'}
864 %-------------------------------------
865 }
866 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](A')(B')(C')(D')(E')(F')(G')(H')(I')(J')(K')(L')
867 \pspolygon[fillstyle=solid,fillcolor=yellow!30,opacity=0.5,linewidth=0.9pt,linecolor=red](A)(B)(C)(D)(E)(F)(G)(H)(I)(J)(K)(L)
868 \pcline[linewidth=1.3pt](0,0|O)(10,0|O)
869 \end{pspicture}
870 \end{LTXexample}
871
872 \newpage
873 \begin{LTXexample}[pos=t]
874 \psscalebox{0.7}{%
875 \begin{pspicture}[showgrid=false](0.5,-0.5)(10,9.4)
876 \def\lange{2 sqrt 2 mul}
877 {\psset{phi=30,base=0,translineK,translinestyle=dashed,linecolor=blue,linejoin=2,fillstyle=solid,opacity=0.5}
878 %------ Vertices of the "X" -------------
879 \pstransTSK(1,0){\lange}{A}{A'}
880 \pstransTSK(2,0){\lange}{B}{B'}
881 \pstransTSK(4,3){\lange}{C}{C'}
882 \pstransTSK(6,0){\lange}{D}{D'}
883 \pstransTSK(7,0){\lange}{E}{E'}
884 \pstransTSK(4.5,4){\lange}{F}{F'}
885 \pstransTSK(7,8){\lange}{G}{G'}
886 \pstransTSK(6,8){\lange}{H}{H'}
887 \pstransTSK(4,5){\lange}{I}{I'}
888 \pstransTSK(2,8){\lange}{J}{J'}
889 \pstransTSK(1,8){\lange}{K}{K'}
890 \pstransTSK(3.5,4){\lange}{L}{L'}
891 %-------------------------------------
892 \pspolygon[linestyle=dashed](A')(B')(C')(D')(E')(F')(G')(H')(I')(J')(K')(L')
893 \pspolygon[fillcolor=cyan!30,linestyle=none](B)(B')(C')(C)
894 }
895 \psIntersectionPoint(C')(B')(C)(D){S1}
896 \psline(B)(B')(S1)
897 \psIntersectionPoint(H)(I)(I')(J'){S2}
898 \psline(J')(S2)
899 {\psset{phi=30,base=0,translineK,translinestyle=dashed,linecolor=blue,linejoin=2,fillstyle=solid,opacity=0.5}
900 \pspolygon[fillcolor=cyan!30](E)(E')(F')(F)
901 \pspolygon[fillcolor=cyan!30](F)(F')(G')(G)
902 \pspolygon[fillcolor=cyan!30](G)(G')(H')(H)
903 \pspolygon[fillcolor=cyan!30,linestyle=none](I)(I')(J')(J)
904 \pspolygon[fillcolor=cyan!30](J)(J')(K')(K)
905 \pspolygon[fillcolor=orange!60](A)(B)(C)(D)(E)(F)(G)(H)(I)(J)(K)(L)}
906 \end{pspicture}}
907 \end{LTXexample}
908
909 \newpage
910 \begin{LTXexample}[wide,pos=t]
911 \psscalebox{0.5}{%
912 \begin{pspicture}[showgrid=false](0.5,0)(10,5.7)
913 {\psset{base=0,linecolor=blue,linestyle=dashed,dash=5pt 4pt}
914 %------ Vertices of the lower "X" -------------
915 \pstransTS(1,0){A}{A'}
916 \pstransTS(2,0){B}{B'}
917 \pstransTS(4,3){C}{C'}
918 \pstransTS(6,0){D}{D'}
919 \pstransTS(7,0){E}{E'}
920 \pstransTS(4.5,4){F}{F'}
921 \pstransTS(7,8){G}{G'}
922 \pstransTS(6,8){H}{H'}
923 \pstransTS(4,5){I}{I'}
924 \pstransTS(2,8){J}{J'}
925 \pstransTS(1,8){K}{K'}
926 \pstransTS(3.5,4){L}{L'}
927 %------ Vertices of the upper "X" -------------
928 \rput(0,3){% The same "X" shifted 3 units upwards
929 \pstransTS(1,0){A1}{A1'}
930 \pstransTS(2,0){B1}{B1'}
931 \pstransTS(4,3){C1}{C1'}
932 \pstransTS(6,0){D1}{D1'}
933 \pstransTS(7,0){E1}{E1'}
934 \pstransTS(4.5,4){F1}{F1'}
935 \pstransTS(7,8){G1}{G1'}
936 \pstransTS(6,8){H1}{H1'}
937 \pstransTS(4,5){I1}{I1'}
938 \pstransTS(2,8){J1}{J1'}
939 \pstransTS(1,8){K1}{K1'}
940 \pstransTS(3.5,4){L1}{L1'}}
941 %-------------------------------------
942 \pcline(F')(F1')
943 \pcline(H')(H1')
944 \pcline(I')(I1')
945 \pcline(J')(J1')
946 \pcline(K')(K1')
947 \pcline(L')(L1')
948 }
949 \psIntersectionPoint(K')(K1')(A1')(L1'){S1}
950 \psline[linestyle=solid,linecolor=blue](K1')(S1)
951 \psIntersectionPoint(E')(E1')(F')(G'){S2}
952 \psline[linestyle=solid,linecolor=blue](S2)(G')(G1')%(F1')(E1')(E')
953 {%
954 \psset{linejoin=2,fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue}
955 \pspolygon[linestyle=none](K')(L')(L1')(K1')
956 \pspolygon[linestyle=dashed](A')(B')(C')(D')(E')(F')(G')(H')(I')(J')(K')(L')
957 \pspolygon(A')(B')(B1')(A1')
958 \pspolygon(B')(C')(C1')(B1')
959 \pspolygon(C')(D')(D1')(C1')
960 \pspolygon(D')(E')(E1')(D1')
961 \pspolygon[linestyle=none](F')(G')(G1')(F1')
962 \pspolygon[opacity=0.5](A1')(B1')(C1')(D1')(E1')(F1')(G1')(H1')(I1')(J1')(K1')(L1')
963 }
964 \end{pspicture}}
965 \end{LTXexample}
966
967 \newpage
968 \begin{LTXexample}[pos=t,wide]
969 \begin{pspicture}[showgrid=false,shift=-5.0](0.7,-0.4)(7,6)
970 {\psset{phi=30}
971 %------ Eckpunkte vom Aufriss --------------
972 \pstransTSK(1,0){4}{A}{A'}
973 \pstransTSK(5,0){4}{B}{B'}
974 \pstransTSK(5,5){4}{C}{C'}
975 \pstransTSK(1,5){4}{D}{D'}
976 %--------------------------------------------
977 }
978 \psIntersectionPoint(A)(B')(B)(A'){S1}
979 \psIntersectionPoint(C)(D')(D)(C'){S2}
980 \pspolygon[linewidth=0.9pt,linecolor=black](A)(B)(C)(D)
981 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.5,linestyle=none](A)(B)(B')(A')
982 {\psset{linestyle=dashed,dash=4pt 2pt,linewidth=0.9pt,linecolor=black}
983 \pcline(A')(B')
984 \pcline(A')(D')
985 \pcline(A)(A')
986 \pcline(A)(B')
987 \pcline(B)(A')
988 \pcline(D)(C')
989 \pcline(C)(D')
990 \pcline(S1)(S2)
991 }
992 \pcline(B)(B')
993 \pcline(C)(C')
994 \pcline(D)(D')
995 \pcline(B')(C')
996 \pcline(C')(D')
997 \pcline(A)(S2)
998 \pcline(B)(S2)
999 \pcline(B')(S2)
1000 \pcline(A')(S2)
1001 \qdisk(S2){2pt}\uput{0.3}[90](S2){S}
1002 \end{pspicture}
1003 \end{LTXexample}
1004
1005 \begin{LTXexample}[width=6cm]
1006 \begin{pspicture}[showgrid=true](1,-0.3)(7,6)
1007 \pnode(4,3){M}
1008 {\psset{originT={M}}
1009 \multido{\i=0+10}{36}{\psset{phi=45,vkf=0.5,translineA=true,translineB=true}
1010 \pstransTS[linecolor=blue,linewidth=0.5pt,linestyle=dashed](2.5;\i){A\i}{A'\i}
1011 \psdot[dotsize=1.8pt,linecolor=blue](A\i)\psdot[dotsize=1.8pt,linecolor=red](A'\i)
1012 }
1013 }
1014 \end{pspicture}
1015 \end{LTXexample}
1016
1017 \begin{LTXexample}[width=6cm]
1018 \begin{pspicture}[showgrid=false](1,-0.3)(7,6)
1019 \pnode(4,3){M}
1020 {\psset{originT={M}}
1021 \multido{\i=0+5,\n=5+5}{72}{%
1022 \pstransTS[linecolor=blue,linewidth=0.5pt,linestyle=dashed](2.5;\i){A\i}{A'\i}
1023 \pstransTS(2.5;\n){B\n}{B'\n}
1024 \psdot[dotsize=1.8pt,linecolor=blue](A\i)\psdot[dotsize=1.8pt,linecolor=red](A'\i)\psline(A\i)(B\n)\psline[linecolor=orange!50](A'\i)(B'\n)
1025 }
1026 }
1027 \rput(M){\pnode(2.665;7){C'}}
1028 \rput(M){\pnode(2.665;187){D'}}
1029 \pcline[linecolor=cyan](C')(D')
1030 \rput(M){\pnode(0.83;97){E'}}
1031 \rput(M){\pnode(0.83;277){F'}}
1032 \pcline[linecolor=magenta](E')(F')
1033 \end{pspicture}
1034 \end{LTXexample}
1035
1036 \begin{LTXexample}[pos=t]
1037 \begin{pspicture}[showgrid=false](-2,0)(8,6)
1038 \pnode(4.5,1){Z}\psset{originT={Z}}
1039 \pstransTS(2;-60){A'}{A}
1040 \pstransTS(2;0){B'}{B}
1041 \pstransTS(2;60){C'}{C}
1042 \pstransTS(2;120){D'}{D}
1043 \pstransTS(2;180){E'}{E}
1044 \pstransTS(2;240){F'}{F}
1045 \pspolygon[fillstyle=solid,fillcolor=yellow!30,opacity=0.5,linewidth=0.9pt,linecolor=blue,linestyle=none](A)(B)(C)(D)(E)(F)%(G)(H)(I)(J)(K)(L)
1046 %\pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](A')(B')(C')(D')(E')(F')%(G')(H')
1047 \psline[linewidth=0.9pt,linecolor=blue](E)(F)(A)(B)
1048 \psline[linewidth=0.9pt,linecolor=blue,linestyle=dashed](D)(E)
1049
1050 \pnode(4.5,5){Z}\psset{originT={Z}}
1051 \pstransTS(2;-60){I'}{I}
1052 \pstransTS(2;0){J'}{J}
1053 \pstransTS(2;60){K'}{K}
1054 \pstransTS(2;120){L'}{L}
1055 \pstransTS(2;180){M'}{M}
1056 \pstransTS(2;240){N'}{N}
1057 \pspolygon[fillstyle=solid,fillcolor=cyan!60,opacity=0.6,linecolor=blue](A)(B)(J)(I)%(E')(F')%(G')(H')
1058 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=dashed](B)(C)(K)(J)%
1059 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=dashed](C)(D)(L)(K)%
1060 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=none](D)(E)(M)(L)%
1061 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](E)(F)(N)(M)%
1062 \pspolygon[fillstyle=solid,fillcolor=cyan!50,opacity=0.4,linecolor=blue](F)(A)(I)(N)%
1063 \pspolygon[fillstyle=solid,fillcolor=yellow!30,opacity=0.5,linewidth=0.9pt,linecolor=blue](I)(J)(K)(L)(M)(N)%(G)(H)(I)(J)(K)(L)
1064 \end{pspicture}
1065 \end{LTXexample}
1066
1067 \begin{LTXexample}[pos=t,wide]
1068 \begin{pspicture}[showgrid=false](-0.5,0.2)(7,5.6)
1069 \psset{linejoin=2}
1070 \pnode(2.5,1){Z}\psset{originT={Z}}
1071 \pstransTS(2;-90){A'}{A}
1072 \pstransTS(2;-30){B'}{B}
1073 \pstransTS(2;30){C'}{C}
1074 \pstransTS(2;90){D'}{D}
1075 \pstransTS(2;150){E'}{E}
1076 \pstransTS(2;210){F'}{F}
1077 \pspolygon[fillstyle=solid,fillcolor=yellow!30,opacity=0.5,linewidth=0.9pt,linecolor=blue,linestyle=none](A)(B)(C)(D)(E)(F)%(G)(H)(I)(J)(K)(L)
1078 \psline[linewidth=0.9pt,linecolor=blue](B)(C)
1079 \psline[linewidth=0.9pt,linecolor=blue,linestyle=dashed](D)(E)
1080 \pnode(2.5,5){Z}\psset{originT={Z}}
1081 \pstransTS(2;-60){I'}{I}
1082 \pstransTS(2;0){J'}{J}
1083 \pstransTS(2;60){K'}{K}
1084 \pstransTS(2;120){L'}{L}
1085 \pstransTS(2;180){M'}{M}
1086 \pstransTS(2;240){N'}{N}
1087 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](A)(B)(J)(I)%(E')(F')%(G')(H')
1088 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=dashed](B)(C)(K)(J)%
1089 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=dashed](C)(D)(L)(K)%
1090 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=none](D)(E)(M)(L)%
1091 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=dashed](E)(F)(N)(M)%
1092 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](F)(A)(I)(N)%
1093 \pspolygon[fillstyle=solid,fillcolor=yellow!30,opacity=0.5,linewidth=0.9pt,linecolor=blue](I)(J)(K)(L)(M)(N)%(G)(H)(I)(J)(K)(L)
1094 \psIntersectionPoint(C)(K)(B)(J){SBJ}
1095 \psIntersectionPoint(E)(M)(F)(N){SFN}
1096 \psline[linewidth=0.9pt,linecolor=blue](C)(SBJ)
1097 \psline[linewidth=0.9pt,linecolor=blue](SFN)(M)
1098 \end{pspicture}
1099 \end{LTXexample}
1100
1101 \begin{LTXexample}[pos=t,wide]
1102 \begin{pspicture}[showgrid=false](0,0)(6,6)
1103 \pnode(3.5,1){Z}\psset{originT={Z}}
1104 \pstransTS(2;-60){A'}{A}
1105 \pstransTS(2;0){B'}{B}
1106 \pstransTS(2;60){C'}{C}
1107 \pstransTS(2;120){D'}{D}
1108 \pstransTS(2;180){E'}{E}
1109 \pstransTS(2;240){F'}{F}
1110 \pspolygon[fillstyle=solid,fillcolor=yellow!30,opacity=0.5,linewidth=0.9pt,linecolor=blue,linestyle=none](A)(B)(C)(D)(E)(F)%(G)(H)(I)(J)(K)(L)
1111 \psline[linewidth=0.9pt,linecolor=blue](E)(F)(A)(B)
1112 \psline[linewidth=0.9pt,linecolor=blue,linestyle=dashed](D)(E)
1113 \pnode(3.5,5){Z}\psset{originT={Z}}
1114 \pstransTS(1;-60){I'}{I}
1115 \pstransTS(1;0){J'}{J}
1116 \pstransTS(1;60){K'}{K}
1117 \pstransTS(1;120){L'}{L}
1118 \pstransTS(1;180){M'}{M}
1119 \pstransTS(1;240){N'}{N}
1120 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](A)(B)(J)(I)%(E')(F')%(G')(H')
1121 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=dashed](B)(C)(K)(J)%
1122 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=none](C)(D)(L)(K)%
1123 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue,linestyle=none](D)(E)(M)(L)%
1124 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](E)(F)(N)(M)%
1125 \pspolygon[fillstyle=solid,fillcolor=cyan!30,opacity=0.3,linecolor=blue](F)(A)(I)(N)%
1126 \pspolygon[fillstyle=solid,fillcolor=yellow!30,opacity=0.5,linewidth=0.9pt,linecolor=blue](I)(J)(K)(L)(M)(N)%(G)(H)(I)(J)(K)(L)
1127 \psline[linewidth=0.9pt,linecolor=blue,linestyle=dashed](C)(D)(L)
1128 \end{pspicture}
1129 \end{LTXexample}
1130
1131 \begin{LTXexample}[pos=t,wide]
1132 \begin{pspicture}[showgrid=false](0,0)(13,3.5)
1133 \psset{linejoin=2,linewidth=1pt}
1134 \psset{transcolor=black,translinestyle=solid}%
1135 \pstransTSK(0,0){3}{A}{A'}%
1136 \pstransTSK(6,0){3}{B}{B'}%
1137 \pstransTSK(5,3){3}{C}{C'}%
1138 \psline[linestyle=dashed](A')(B')%
1139 \pspolygon[fillstyle=solid,fillcolor=yellow!40,opacity=0.3,linewidth=0.9pt,linecolor=black](A)(B)(C)%
1140 \pspolygon[fillstyle=solid,fillcolor=cyan!40,opacity=0.3,linestyle=none](A')(A)(C)(C')
1141 \pspolygon[fillstyle=solid,fillcolor=cyan!40,opacity=0.3,linestyle=none](B)(B')(C')(C)
1142 \psline(A')(C')(B')%
1143 \pcline[linecolor=red](C)(C|A)
1144 \pstransTS(8,3){A}{A'}
1145 \pstransTS(14,3){B}{B'}
1146 \pstransTS(13,0){C}{C'}
1147 \pspolygon[fillstyle=solid,fillcolor=yellow!40,opacity=0.3,linestyle=none](A')(B')(C')
1148 \psline[linestyle=dashed](A')(B')
1149 \psline(A')(C')(B')
1150 {\psset{base=0,originT={0,2}}
1151 \pstransTS(8,3){D}{D'}
1152 \pstransTS(14,3){E}{E'}
1153 \pstransTS(13,0){F}{F'}
1154 \pstransTS(F|D){K}{K'}
1155 \pspolygon[fillstyle=solid,fillcolor=yellow!40,opacity=0.3](D')(E')(F')
1156 \pspolygon[fillstyle=solid,fillcolor=cyan!40,opacity=0.3,linestyle=none](A')(C')(F')(D')
1157 \pspolygon[fillstyle=solid,fillcolor=cyan!40,opacity=0.3,linestyle=none](C')(B')(E')(F')
1158 \psline[linestyle=dashed](D')(E')
1159 \psline(D')(F')(E')
1160 \psline(C')(F')
1161 }
1162 {\psset{phi=-135,transcolor=black}
1163 \pstransTSK(A'){3}{G'}{G}
1164 \pstransTSK(B'){3}{H'}{H}
1165 \pstransTSK(D'){3}{I'}{I}
1166 \pstransTSK(E'){3}{J'}{J}
1167 \pspolygon(G)(H)(J)(I)
1168 }
1169 \pspolygon(B')(H)(J)(E')
1170 \pspolygon(A')(G)(I)(D')
1171 \pcline[linecolor=red](F')(K')
1172 %}
1173 \end{pspicture}
1174 \end{LTXexample}
1175
1176
1177 \begin{LTXexample}[pos=t,wide]
1178 \psscalebox{0.6}{%
1179 \begin{pspicture}[showgrid=false](-0.5,0)(17,10.4)
1180 \psset{linejoin=2,phi=30,vkf=0.7}
1181
1182 {\psset{base=-3}
1183 \multido{\i=0+1,\n=1+1,\ra=-67.5+22.5,\rb=-45+22.5}{14}{%
1184 \pstransTS[originT={4,3}](6;\ra){D\i}{E\i}
1185 \pstransTS[originT={4,3}](6;\rb){F\n}{G\n}
1186 \pstransTS[originT={4,5}](6;\ra){H\i}{I\i}
1187 \pstransTS[originT={4,5}](6;\rb){J\n}{K\n}
1188 \psline[linecolor=orange!50](E\i)(G\n)
1189 \psline[linecolor=orange!50](I\i)(K\n)
1190 \pspolygon[fillstyle=solid,fillcolor=orange,opacity=1](E\i)(G\n)(K\n)(I\i)
1191 }}
1192
1193 {\psset{translineK=false}%
1194 \pstransTSK(0,0){1}{A1}{B1}
1195 \pstransTSK(2,0){1}{A2}{B2}
1196 \pstransTSK(2,3){1}{A3}{B3}
1197 \pstransTSK(0,2){1}{A4}{B4}
1198 %----------------------------
1199 \pstransTSK(0,0){6}{A1}{C1}
1200 \pstransTSK(2,0){6}{A2}{C2}
1201 \pstransTSK(2,3){6}{A3}{C3}
1202 \pstransTSK(0,2){6}{A4}{C4}
1203 }
1204 \psline[linestyle=dashed](C1)(C4)
1205 \psline[linestyle=dashed](B1)(C1)(C2)
1206 \pspolygon[fillstyle=solid,fillcolor=green!30,opacity=0.7](B1)(B2)(B3)(B4)
1207 \pspolygon[fillstyle=solid,fillcolor=green!30,opacity=0.7](B2)(C2)(C3)(B3)
1208 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=0.7,hatchangle=120,hatchsep=1.5pt](B4)(B3)(C3)(C4)
1209 %----------------------------
1210 \pstransTSK(2,0){6}{A5}{C5}
1211 \pstransTSK(6,0){6}{A6}{C6}
1212 \pstransTSK(6,4){6}{A7}{C7}
1213 \pstransTSK(4,6){6}{A8}{C8}
1214 \pstransTSK(2,4){6}{A9}{C9}
1215 %----------------------------
1216 \pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=0.2](C5)(C6)(C7)(C9)
1217 \pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=0.2](C7)(C8)(C9)
1218 \pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=0.7](A5)(A6)(A7)(A9)
1219 \pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=0.7](A7)(A8)(A9)
1220 \pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=0.7](A6)(C6)(C7)(A7)
1221 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=0.7,hatchangle=45,hatchsep=1.5pt](A7)(C7)(C8)(A8)
1222 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=0.7,hatchangle=135,hatchsep=1.5pt](A9)(A8)(C8)(C9)
1223 %----------------------------
1224 \pstransTSK(6,0){2}{A10}{C10}
1225 \pstransTSK(8,0){2}{A11}{C11}
1226 \pstransTSK(8,8){2}{A12}{C12}
1227 \pstransTSK(6,8){2}{A13}{C13}
1228 \pstransTSK(8.2,8){-0.2}{A14}{B14}
1229 \pstransTSK(5.8,8){-0.2}{A15}{B15}
1230 \pstransTSK(8.2,8){2.2}{A14}{C14}
1231 \pstransTSK(5.8,8){2.2}{A15}{C15}
1232 \pstransTSK[translineK=false](8,10){2}{A16}{C16}
1233 \pstransTSK[translineK=false](6,10){2}{A17}{C17}
1234 \psIntersectionPoint(A16)(C17)(A17)(C16){SB1}
1235 %----------------------------
1236 \pspolygon[fillstyle=solid,fillcolor=cyan!50,opacity=0.2](C10)(C11)(C12)(C13)
1237 \pspolygon[fillstyle=solid,fillcolor=cyan!50,opacity=0.7](A10)(A11)(A12)(A13)
1238 \pspolygon[fillstyle=solid,fillcolor=cyan!50,opacity=0.7](A11)(C11)(C12)(A12)
1239 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=0.2,hatchangle=45,hatchsep=1.5pt](C14)(C15)(SB1)
1240 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=0.2,hatchangle=45,hatchsep=1.5pt](B15)(C15)(SB1)
1241 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=0.7,hatchangle=45,hatchsep=1.5pt](B14)(B15)(SB1)
1242 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=0.7,hatchangle=45,hatchsep=1.5pt](B14)(C14)(SB1)
1243
1244 {\psset{base=-3}
1245 \multido{\i=0+1,\n=1+1,\ra=-67.5+22.5,\rb=-45+22.5}{4}{%
1246 \pstransTS[originT={4,3}](6;\ra){D\i}{E\i}
1247 \pstransTS[originT={4,3}](6;\rb){F\n}{G\n}
1248 \pstransTS[originT={4,5}](6;\ra){H\i}{I\i}
1249 \pstransTS[originT={4,5}](6;\rb){J\n}{K\n}
1250 \psline[linecolor=orange!50](E\i)(G\n)
1251 \psline[linecolor=orange!50](I\i)(K\n)
1252 \pspolygon[fillstyle=solid,fillcolor=orange,opacity=1](E\i)(G\n)(K\n)(I\i)
1253 }}
1254 \end{pspicture}}
1255 \end{LTXexample}
1256
1257
1258 \newpage
1259
1260 \begin{LTXexample}[pos=t,wide]
1261 \psscalebox{0.6}{%
1262 \begin{pspicture}[showgrid=false](-2,-2.5)(6,6)
1263 \psset{xMin=0,yMin=0,zMin=0,xMax=11,yMax=11,zMax=4,Alpha=155,Beta=20,Dx=1,Dy=1,Dz=1,arrowsize=.2,arrowinset=0.1,coorType=1,xThreeDunit=0.5,phi=180 155 sub}%
1264 \pstThreeDPlaneGrid[planeGrid=xy,linewidth=0.3pt,linecolor=gray!70,xsubticks=7,ysubticks=7](0,0)(7,7)%
1265 %--------------------------------------
1266 \multido{\i=0+1}{5}{%
1267 \multido{\n=0+1}{5}{%
1268 \multido{\r=0+1}{2}{%
1269 \psboxTS(\i,\n,\r){1}{1}{1}{blue}}}}
1270 %--------------------------------------
1271 \multido{\i=0+1}{2}{%
1272 \multido{\n=0+1}{5}{%
1273 \multido{\r=2+1}{3}{%
1274 \psboxTS(\i,\n,\r){1}{1}{1}{blue}}}}
1275 %--------------------------------------
1276 \multido{\i=2+1}{3}{%
1277 \multido{\n=0+1}{2}{%
1278 \multido{\r=2+1}{3}{%
1279 \psboxTS(\i,\n,\r){1}{1}{1}{blue}}}}
1280 %\pstPlanePut[plane=xy](6,1,0){\fbox{\Huge\red xy plane}}
1281 \end{pspicture}
1282 }
1283 \end{LTXexample}
1284
1285 \newpage
1286
1287 \begin{LTXexample}[pos=t,wide]
1288 \psscalebox{0.6}{%
1289 \begin{pspicture}[showgrid=false](-2,-2.5)(6,6)
1290 \psset{xMin=0,yMin=0,zMin=0,xMax=11,yMax=11,zMax=4,Alpha=135,Beta=20,Dx=1,Dy=1,Dz=1,arrowsize=.2,arrowinset=0.1,coorType=1,xThreeDunit=0.5,opacity=0.4,hideline=true}%\
1291 \pstThreeDPlaneGrid[planeGrid=xy,linewidth=0.3pt,linecolor=gray!70,xsubticks=7,ysubticks=7](0,0)(7,7)%
1292 %--------------------------------------
1293 \multido{\i=0+1}{6}{%
1294 \multido{\n=0+1}{6}{%
1295 \multido{\r=0+1}{2}{%
1296 \psboxTS(\i,\n,\r){1}{1}{1}{green}}}}
1297 %--------------------------------------
1298 \multido{\i=1+1}{4}{%
1299 \multido{\n=1+1}{4}{%
1300 \multido{\r=2+1}{2}{%
1301 \psboxTS(\i,\n,\r){1}{1}{1}{green}}}}
1302 %--------------------------------------
1303 \multido{\i=2+1}{2}{%
1304 \multido{\n=2+1}{2}{%
1305 \multido{\r=4+1}{2}{%
1306 \psboxTS(\i,\n,\r){1}{1}{1}{green}}}}
1307 \end{pspicture}
1308 }
1309 \end{LTXexample}
1310
1311 \newpage
1312
1313 \pstVerb{/radiusT 2 22.5 cos mul def}
1314 \pstVerb{/deltaDach 10 2 22.5 sin mul sub def}
1315 \pstVerb{/deltaDachT 10 2 22.5 sin mul dup 2 sqrt div add sub def}
1316
1317 \psscalebox{0.6}{%
1318 \begin{pspicture}[showgrid=true](0,-1)(24,20)
1319 \psset{linejoin=2,phi=25,vkf=0.7,opacity=1}
1320
1321 \pstransTS(4,0){E01'}{E01}
1322 \pstransTS(12,0){E02'}{E02}
1323 \pstransTS(12,5){E03'}{E03}
1324 \pstransTS(16,5){E04'}{E04}
1325 \pstransTS(16,11){E05'}{E05}
1326 \pstransTS(12,11){E06'}{E06}
1327 \pstransTS(12,12){E07'}{E07}
1328 \pstransTS(4,12){E08'}{E08}
1329 \pstransTS(4,11){E09'}{E09}
1330 \pstransTS(0,11){E10'}{E010}
1331 \pstransTS(0,5){E011'}{E011}
1332 \pstransTS(4,5){E012'}{E012}
1333 \rput(0,7){%
1334 \pstransTS(4,0){E11'}{E11}
1335 \pstransTS(12,0){E12'}{E12}
1336 \pstransTS(12,5){E13'}{E13}
1337 \pstransTS(16,5){E14'}{E14}
1338 \pstransTS(16,11){E15'}{E15}
1339 \pstransTS(12,11){E16'}{E16}
1340 \pstransTS(12,12){E17'}{E17}
1341 \pstransTS(4,12){E18'}{E18}
1342 \pstransTS(4,11){E19'}{E19}
1343 \pstransTS(0,11){E110'}{E110}
1344 \pstransTS(0,5){E111'}{E111}
1345 \pstransTS(4,5){E112'}{E112}
1346 }
1347 \multido{\i=1+1,\n=2+1}{11}{%
1348 \pspolygon[fillstyle=solid,fillcolor=brown!30](E0\i)(E0\n)(E1\n)(E1\i)
1349 }
1350 \pspolygon[fillstyle=solid,fillcolor=brown!30](E012)(E01)(E11)(E112)
1351
1352 \rput(0,15){%
1353 \pstransTS[originT={8,8},base=-8](0,0){T'3}{T3}
1354 }
1355 \rput(0,19){%
1356 \pstransTS[originT={8,1},base=-1](0,0){TV'3}{TV3}
1357 }
1358
1359 \rput(0,10){%
1360 \multido{\i=0+1,\r=-90+90}{4}{%
1361 \pstransTS[originT={8,8},base=-8](!radiusT \r\space PtoC){DM'\i}{DM\i}
1362 }
1363 \pstransTS(16,8){DMa1'}{DMa1}
1364 \pstransTS(8,12){DMa2'}{DMa2}
1365 \pstransTS(0,8){DMa3'}{DMa3}
1366 \pstransTS(8,0){DMa4'}{DMa4}
1367 }
1368
1369 \rput(!0 deltaDach){%
1370 \multido{\i=1+1,\r=-22.5+45}{8}{%
1371 \pstransTS[originT={8,8},base=-8](2;\r){DMb\i'}{DMb\i}
1372 }
1373 }
1374 \rput(!0 deltaDachT){%
1375 \multido{\i=1+1,\r=-45+90}{4}{%
1376 \pstransTS[originT={8,8},base=-8](! radiusT \r\space PtoC){DMc\i'}{DMc\i}
1377 }
1378 }
1379 \pspolygon[fillstyle=solid,fillcolor=BrickRed](DMa3)(E110)(E19)(DMc3)(DMb5)(DM3)% hinters Dach linkes Seitenschiff
1380 \pspolygon[fillstyle=solid,fillcolor=BrickRed](DMa2)(E18)(E19)(DMc3)(DMb4)(DM2)% hinters Dach links
1381 \pspolygon[fillstyle=solid,fillcolor=BrickRed](DMa2)(E17)(E16)(DMc2)(DMb3)(DM2)% hinters Dach rechts
1382 \pspolygon[fillstyle=solid,fillcolor=BrickRed](DMa1)(E15)(E16)(DMc2)(DMb2)(DM1)% hinters Dach rechtes Seitenschiff
1383
1384 %--- Hinterer Turm -----------------------------------
1385 \multido{\i=0+1,\n=1+1,\ra=22.5+45,\rb=67.5+45}{8}{%
1386 \rput(0,7){%
1387 \pstransTS[originT={8,8},base=-8](2;\ra){T1'\i}{T1\i}
1388 \pstransTS[originT={8,8},base=-8](2;\rb){Tb1'\n}{Tb1\n}
1389 }
1390 %-------------------------------------------------
1391 \rput(0,13){%
1392 \pstransTS[originT={8,8},base=-8](2;\ra){T2'\i}{T2\i}
1393 \pstransTS[originT={8,8},base=-8](2;\rb){Tb2'\n}{Tb2\n}
1394 \pstransTS[originT={8,8},base=-8](2.1;\ra){E'\i}{E\i}
1395 \pstransTS[originT={8,8},base=-8](2.1;\rb){F'\n}{F\n}
1396 }
1397 %\psline(T2\i)(Tb2\n)
1398 \pspolygon[fillstyle=solid,fillcolor=brown!30](T1\i)(Tb1\n)(Tb2\n)(T2\i) % Seitenteile des hinteren Turms
1399 \pspolygon[fillstyle=solid,fillcolor=BrickRed](T3)(E\i)(F\n)% Dach des hinteren Turms
1400 }
1401 %--------------------------------------------------------------
1402 \pspolygon[fillstyle=solid,fillcolor=BrickRed,opacity=1](T3)(E6)(F7)% Letztes Dachteil des hinteren Turms
1403
1404 \pspolygon[fillstyle=solid,fillcolor=BrickRed](DMa3)(E111)(E112)(DMc4)(DMb6)(DM3)% vorderes Dach linkes Seitenschiff
1405 \pspolygon[fillstyle=solid,fillcolor=BrickRed](DMa1)(E14)(E13)(DMc1)(DMb1)(DM1)% vorderes Dach rechtes Seitenschiff
1406
1407
1408
1409 %--- Vorderer Turm -----------------------------------
1410 \multido{\i=0+1,\n=1+1,\rA=22.5+45,\rB=67.5+45}{8}{%
1411 \pstransTS[originT={8,1},base=-1](2;\rA){A'\i}{A\i}
1412 \pstransTS[originT={8,1},base=-1](2;\rB){B'\n}{B\n}
1413 \rput(0,13){%
1414 \pstransTS[originT={8,1},base=-1](2;\rA){C'\i}{C\i}
1415 \pstransTS[originT={8,1},base=-1](2;\rB){D'\n}{D\n}
1416 \pstransTS[originT={8,1},base=-1](2.1;\rA){E'\i}{E\i}
1417 \pstransTS[originT={8,1},base=-1](2.1;\rB){F'\n}{F\n}
1418 }
1419 \pspolygon[fillstyle=solid,fillcolor=brown!30](A\i)(B\n)(D\n)(C\i) % Seitenteile des vorderen Turms
1420 \pspolygon[fillstyle=solid,fillcolor=BrickRed](TV3)(E\i)(F\n) % Dach des vorderen Turms
1421 }
1422 \pspolygon[fillstyle=solid,fillcolor=BrickRed,opacity=1](TV3)(E6)(F7)% Letztes Dachteil des vorderen Turms
1423
1424 \psIntersectionPoint(A4)(A5)(E01)(E02){SP01}%linker unterer Schnittpunkt der Au{\ss}enwand mit dem vorderen Turm
1425 \psIntersectionPoint(A6)(A7)(E01)(E02){SP02}%rechter unterer Schnittpunkt der Au{\ss}enwand mit dem vorderen Turm
1426 \pspolygon[fillstyle=solid,fillcolor=brown!30](E01)(SP01)(SP01|0,9.4)(E11)
1427 \pspolygon[fillstyle=solid,fillcolor=brown!30](E02)(E12)(SP02|0,9.4)(SP02)
1428 \pspolygon[fillstyle=solid,fillcolor=brown!30](E02)(E03)(E13)(E12)
1429 \pspolygon[fillstyle=solid,fillcolor=brown!30](E03)(E04)(E14)(E13)
1430 \pspolygon[fillstyle=solid,fillcolor=brown!30](E04)(E05)(E15)(DMa1)(E14)
1431
1432 \pspolygon[fillstyle=solid,fillcolor=BrickRed](C7|0,10)(SP02|0,9.4)(E12)(E13)(DMc1)(DMb8)%(DM0)% vorderes Dach rechts
1433 \end{pspicture}
1434 }
1435
1436
1437
1438 \psscalebox{1}{%
1439 \begin{pspicture}[showgrid=false](-0.5,-3)(12,14.4)
1440 \psset{linejoin=2,phi=35,vkf=0.5}
1441 \pstransTSK[translineK=false](-3,0){11}{GR1}{GR1'}
1442 \pstransTSK[translineK=false](11,0){11}{GR2}{GR2'}
1443 \pstransTSK[translineK=false](-3,0){-8}{GR3}{GR3'}
1444 \pstransTSK[translineK=false](11,0){-8}{GR4}{GR4'}
1445 \pspolygon[fillstyle=solid,fillcolor=green!60!black!80,linestyle=none](GR1')(GR2')(GR4')(GR3')
1446
1447 {\psset{base=-3}
1448 \multido{\i=0+1,\n=1+1,\ra=-45+22.5,\rb=-22.5+22.5}{12}{%
1449 \pstransTS[originT={4,3}](6;\ra){D\i}{E\i}
1450 \pstransTS[originT={4,3}](6;\rb){F\n}{G\n}
1451 \pstransTS[originT={4,4}](6;\ra){H\i}{I\i}
1452 \pstransTS[originT={4,4}](6;\rb){J\n}{K\n}
1453 \psline(E\i)(G\n)
1454 \psline(I\i)(K\n)
1455 \pspolygon[fillstyle=solid,fillcolor=gray,opacity=1](E\i)(G\n)(K\n)(I\i)
1456 }}
1457
1458 {\psset{translineK=false}%
1459 \pstransTSK(0,0){1}{A1}{B1}
1460 \pstransTSK(2,0){1}{A2}{B2}
1461 \pstransTSK(2,3){1}{A3}{B3}
1462 \pstransTSK(0,2){1}{A4}{B4}
1463 %----------------------------
1464 \pstransTSK(0,0){6}{A1}{C1}
1465 \pstransTSK(2,0){6}{A2}{C2}
1466 \pstransTSK(2,3){6}{A3}{C3}
1467 \pstransTSK(0,2){6}{A4}{C4}
1468 }
1469 \psline[linestyle=dashed](C1)(C4)
1470 \psline[linestyle=dashed](B1)(C1)(C2)
1471 \pspolygon[fillstyle=solid,fillcolor=green!30,opacity=1](B1)(B2)(B3)(B4)
1472 \pspolygon[fillstyle=solid,fillcolor=green!30,opacity=1](B2)(C2)(C3)(B3)
1473 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=1,hatchangle=-63.5,hatchsep=1.5pt](B4)(B3)(C3)(C4)
1474 %----------------------------
1475 \pstransTSK(2,0){6}{A5}{C5}
1476 \pstransTSK(6,0){6}{A6}{C6}
1477 \pstransTSK(6,4){6}{A7}{C7}
1478 \pstransTSK(4,6){6}{A8}{C8}
1479 \pstransTSK(2,4){6}{A9}{C9}
1480 %----------------------------
1481 \pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=1](C5)(C6)(C7)(C9)
1482 \pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=1](C7)(C8)(C9)
1483 \pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=1](A6)(C6)(C7)(A7)
1484 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=1,hatchangle=135,hatchsep=1.5pt](A9)(A8)(C8)(C9)
1485 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=1,hatchangle=45,hatchsep=1.5pt](A7)(C7)(C8)(A8)
1486 \pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=1](A5)(A6)(A7)(A8)(A9)
1487 %\pspolygon[fillstyle=solid,fillcolor=yellow!50,opacity=1](A7)(A8)(A9)
1488 %----------------------------
1489 \pstransTSK(6,0){2}{A10}{C10}
1490 \pstransTSK(8,0){2}{A11}{C11}
1491 \pstransTSK(8,10){2}{A12}{C12}
1492 \pstransTSK(6,10){2}{A13}{C13}
1493 \pstransTSK(8.1,10){-0.1}{A14}{B14}
1494 \pstransTSK(5.9,10){-0.1}{A15}{B15}
1495 \pstransTSK(8.1,10){2.1}{A14}{C14}
1496 \pstransTSK(5.9,10){2.1}{A15}{C15}
1497 \pstransTSK[translineK=false](8,11.5){2}{A16}{C16}
1498 \pstransTSK[translineK=false](6,11.5){2}{A17}{C17}
1499 \psIntersectionPoint(A16)(C17)(A17)(C16){SB1}
1500 %----------------------------
1501 \pspolygon[fillstyle=solid,fillcolor=cyan!50,opacity=1](C10)(C11)(C12)(C13)
1502 \pspolygon[fillstyle=solid,fillcolor=cyan!50,opacity=1](A10)(A11)(A12)(A13)
1503 \pspolygon[fillstyle=solid,fillcolor=cyan!50,opacity=1](A11)(C11)(C12)(A12)
1504 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=1,hatchangle=45,hatchsep=1.5pt](C14)(C15)(SB1)
1505 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=1,hatchangle=45,hatchsep=1.5pt](B15)(C15)(SB1)
1506 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=1,hatchangle=45,hatchsep=1.5pt](B14)(B15)(SB1)
1507 \pspolygon[fillstyle=vlines*,fillcolor=BrickRed,opacity=1,hatchangle=45,hatchsep=1.5pt](B14)(C14)(SB1)
1508
1509 {\psset{base=-3,opacity=1}
1510 \multido{\i=0+1,\n=1+1,\ra=-45+22.5,\rb=-22.5+22.5}{3}{%
1511 \pstransTS[originT={4,3}](6;\ra){D\i}{E\i}
1512 \pstransTS[originT={4,3}](6;\rb){F\n}{G\n}
1513 \pstransTS[originT={4,4}](6;\ra){H\i}{I\i}
1514 \pstransTS[originT={4,4}](6;\rb){J\n}{K\n}
1515 \psline(E\i)(G\n)
1516 \psline(I\i)(K\n)
1517 \pspolygon[fillstyle=solid,fillcolor=gray](E\i)(G\n)(K\n)(I\i)
1518 }}
1519
1520 %----------- T\"{u}r Nebengeb\"{a}ude -------------------------
1521 \pstransTSK[translineK=false](1,0){1}{TL}{TL'}
1522 \rput(TL'){%
1523 \pscustom[fillstyle=solid,fillcolor=brown]{%
1524 \psline(0.2,0)(-0.2,0)(-0.2,0.4)
1525 \psarcn(0.2,0.4){0.4}{180}{120}
1526 \psarcn(-0.2,0.4){0.4}{60}{0}
1527 \closepath%
1528 }
1529 \psline[linewidth=0.5pt](0,0)(0,0.75)
1530 \pscircle[linewidth=0.25pt](0.04,0.35){0.025}
1531 \pscircle[linewidth=0.25pt](-0.04,0.35){0.025}
1532 }
1533 %----------- Haupt-T\"{u}r ---------------------------------
1534 \rput(4,0){%
1535 \psscalebox{2.5 2}%
1536 {%\psset{unit=2}%
1537 \psset{linewidth=0.25pt}
1538 \pscustom[fillstyle=solid,fillcolor=brown]{%
1539 \psline(0.2,0)(-0.2,0)(-0.2,0.4)
1540 \psarcn(0.2,0.4){0.4}{180}{120}
1541 \psarcn(-0.2,0.4){0.4}{60}{0}
1542 \closepath%
1543 }
1544 \psline[linewidth=0.25pt](0,0)(0,0.75)
1545 \pscircle[linewidth=0.25pt](0.04,0.35){0.025}
1546 \pscircle[linewidth=0.25pt](-0.04,0.35){0.025}
1547 }}
1548
1549 %------- Uhr -------------------------
1550 \pnode(7,7.8){UZ}
1551
1552 {\psset{originT={UZ},base=1,deltaphi=0}
1553 \pstransTSX(0,0){U1}{U1'}
1554 \pstransTSX(0.3;50){zg1}{zg1'}
1555 \pstransTSX(0.5;-36){zg2}{zg2'}
1556
1557 \multido{\i=0+5,\n=5+5}{72}{%
1558 \pstransTSX(0.5;\i){A\i}{A'\i}
1559 \pstransTSX(0.5;\n){B\n}{B'\n}
1560 \psline(A'\i)(B'\n)}
1561 \psline[linecolor=yellow!90!black!70]{c-c}(U1')(zg1')
1562 \psline[linecolor=yellow!90!black!70]{c-c}(U1')(zg2')
1563
1564 \multido{\i=0+30,\n=0+30}{12}{%
1565 %\psset{translineA=true,translineB=true}
1566 \pstransTSX(0.43;\i){A\i}{A'\i}
1567 \pstransTSX(0.57;\n){B\n}{B'\n}
1568 \psline(A'\i)(B'\n)
1569 \psline(A\i)(B\n)}
1570
1571 \pscircle(UZ){0.5}
1572 \rput(UZ){%
1573 \psline[linecolor=yellow!90!black!70]{c-c}(U1)(zg1)
1574 \psline[linecolor=yellow!90!black!70]{c-c}(U1)(zg2)
1575 }
1576
1577 %------- Turmfenster und \"{O}ffnungen oben ------------------------
1578
1579 \pstransTSX(-0.15,0.75){FU1}{FU1'}
1580 \pstransTSX(0.15,0.75){FU2}{FU2'}
1581 \pstransTSX(0.15,1.5){FU3}{FU3'}
1582 \pstransTSX(-0.15,1.5){FU4}{FU4'}
1583 \pspolygon[fillstyle=solid,fillcolor=black!80](FU1)(FU2)(FU3)(FU4)
1584 \pspolygon[fillstyle=solid,fillcolor=black!80](FU1')(FU2')(FU3')(FU4')
1585
1586 \pstransTSX(-0.65,0.75){FUL1}{FUL1'}
1587 \pstransTSX(-0.35,0.75){FUL2}{FUL2'}
1588 \pstransTSX(-0.35,1.5){FUL3}{FUL3'}
1589 \pstransTSX(-0.65,1.5){FUL4}{FUL4'}
1590 \pspolygon[fillstyle=solid,fillcolor=black!80](FUL1)(FUL2)(FUL3)(FUL4)
1591 \pspolygon[fillstyle=solid,fillcolor=black!80](FUL1')(FUL2')(FUL3')(FUL4')
1592
1593 \pstransTSX(0.65,0.75){FUR1}{FUR1'}
1594 \pstransTSX(0.35,0.75){FUR2}{FUR2'}
1595 \pstransTSX(0.35,1.5){FUR3}{FUR3'}
1596 \pstransTSX(0.65,1.5){FUR4}{FUR4'}
1597 \pspolygon[fillstyle=solid,fillcolor=black!80](FUR1)(FUR2)(FUR3)(FUR4)
1598 \pspolygon[fillstyle=solid,fillcolor=black!80](FUR1')(FUR2')(FUR3')(FUR4')
1599
1600 \pstransTSX(-0.05,-2){FU1}{FU1'}
1601 \pstransTSX(0.05,-2){FU2}{FU2'}
1602 \pstransTSX(0.05,-2.3){FU3}{FU3'}
1603 \pstransTSX(-0.05,-2.3){FU4}{FU4'}
1604 \pspolygon[fillstyle=solid,fillcolor=black!80](FU1)(FU2)(FU3)(FU4)
1605 \pspolygon[fillstyle=solid,fillcolor=black!80](FU1')(FU2')(FU3')(FU4')
1606
1607 \pstransTSX(-0.05,-4){FU1}{FU1'}
1608 \pstransTSX(0.05,-4){FU2}{FU2'}
1609 \pstransTSX(0.05,-4.3){FU3}{FU3'}
1610 \pstransTSX(-0.05,-4.3){FU4}{FU4'}
1611 \pspolygon[fillstyle=solid,fillcolor=black!80](FU1)(FU2)(FU3)(FU4)
1612 \pspolygon[fillstyle=solid,fillcolor=black!80](FU1')(FU2')(FU3')(FU4')
1613
1614 \pstransTSX(-0.05,-6){FU1}{FU1'}
1615 \pstransTSX(0.05,-6){FU2}{FU2'}
1616 \pstransTSX(0.05,-6.3){FU3}{FU3'}
1617 \pstransTSX(-0.05,-6.3){FU4}{FU4'}
1618 \pspolygon[fillstyle=solid,fillcolor=black!80](FU1)(FU2)(FU3)(FU4)
1619 \pspolygon[fillstyle=solid,fillcolor=black!80](FU1')(FU2')(FU3')(FU4')
1620
1621 }
1622
1623 %------- Turm-T\"{u}r ---------------------------
1624 \rput(7,0){%
1625 \pscustom[fillstyle=solid,fillcolor=brown]{%
1626 \psline(0.2,0)(-0.2,0)(-0.2,0.4)
1627 \psarcn(0.2,0.4){0.4}{180}{120}
1628 \psarcn(-0.2,0.4){0.4}{60}{0}
1629 \closepath%
1630 }
1631 \psline[linewidth=0.5pt](0,0)(0,0.75)
1632 \pscircle[linewidth=0.25pt](0.04,0.35){0.025}
1633 \pscircle[linewidth=0.25pt](-0.04,0.35){0.025}
1634 }
1635
1636
1637 %---------- rundes Haupt-Fenster ----------------------
1638 \pscircle[fillstyle=solid,fillcolor=black!70](4,2.7){0.45}
1639
1640 %------- Kreuz -----------------------------------------
1641 \psline[linewidth=2.5pt]{c-c}(4,3.5)(4,5)
1642 \psline[linewidth=2.5pt]{c-c}(3.58,4.5)(4.42,4.5)
1643
1644 %---------- Weg -----------------------------------------
1645 \pstransTSK[translineK=false](3.5,0){-8}{W1}{W1'}
1646 \pstransTSK[translineK=false](4.5,0){-8}{W2}{W2'}
1647 \pspolygon[fillstyle=solid,fillcolor=gray!50,linestyle=none](W1)(W1')(W2')(W2)
1648
1649
1650 {\psset{translineK=false,linestyle=none}
1651 \multido{\i=1+1,\n=1+1}{8}{%
1652 \pstransTSK(3.5,0){1 \i\space sub}{WM1a\i}{WM1a'\i}
1653 \pstransTSK(3.5,0){0.5 \i\space sub}{WM1\i}{WM1'\i}
1654 \pstransTSK(3.75,0){1 \i\space sub}{WM2a\i}{WM2a'\i}
1655 \pstransTSK(3.75,0){0.7 \i\space sub}{WM2\i}{WM2'\i}
1656 \pstransTSK(4.0,0){1 \i\space sub}{WM3a\i}{WM3a'\i}
1657 \pstransTSK(4.0,0){0.5 \i\space sub}{WM3\i}{WM3'\i}
1658 \pspolygon[fillstyle=solid,fillcolor=green!50,opacity=1](WM1a'\i)(WM1'\i)(WM2'\i)(WM2a'\i)
1659 \pspolygon[fillstyle=solid,fillcolor=black!60,opacity=1](WM1'\i)(WM2'\i)(WM3'\i)
1660 \pspolygon[fillstyle=solid,fillcolor=blue!50,opacity=1](WM2a'\i)(WM2'\i)(WM3'\i)(WM3a'\i)
1661 \pstransTSK(4,0){0.5 \n\space sub}{WM4a\n}{WM4a'\n}
1662 \pstransTSK(4,0){-\n}{WM4\n}{WM4'\n}
1663 \pstransTSK(4.25,0){0.5 \n\space sub}{WM5a\n}{WM5a'\n}
1664 \pstransTSK(4.25,0){.2 \n\space sub}{WM5\n}{WM5'\n}
1665 \pstransTSK(4.5,0){0.5 \n\space sub}{WM6a\n}{WM6a'\n}
1666 \pstransTSK(4.5,0){-\n}{WM6\n}{WM6'\n}
1667 \pspolygon[fillstyle=solid,fillcolor=green!50,opacity=1](WM4a'\n)(WM4'\n)(WM5'\n)(WM5a'\n)
1668 \pspolygon[fillstyle=solid,fillcolor=black!60,opacity=1](WM4'\n)(WM5'\n)(WM6'\n)
1669 \pspolygon[fillstyle=solid,fillcolor=blue!50,opacity=1](WM5a'\n)(WM5'\n)(WM6'\n)(WM6a'\n)
1670 }}
1671 \end{pspicture}
1672 }
1673
1674
1675 \def\colA{black!20}
1676 \def\colB{black!50}
1677 \def\colC{black!30}
1678 \def\Pfeiler{%
1679 %--------- Pfeiler -------------
1680 \pstransTSK(4,0){8}{A}{A'}
1681 \pstransTSK(10,0){8}{B}{B'}
1682 \pstransTSK(9,10){8}{C}{C'}
1683 \pstransTSK(5,10){8}{D}{D'}
1684 \pstransTSK(5,13){8}{E}{E'}
1685 \pstransTSK(9,13){8}{F}{F'}
1686 \pstransTSK(14,18){8}{G}{G'}
1687 \pstransTSK(14,21){8}{H}{H'}
1688 \pstransTSK(0,21){8}{I}{I'}
1689 \pstransTSK(0,18){8}{J}{J'}
1690 \pstransTSK(0,13){8}{M1}{M1'}
1691 \pstransTSK(14,13){8}{M2}{M2'}
1692 %----------------------------------------
1693 \pspolygon[fillcolor=\colA](A)(B)(C)(D)
1694 \pspolygon[fillcolor=\colB](B)(B')(C')(C)
1695 \pspolygon[fillcolor=\colA](D)(C)(F)(E)
1696 \pspolygon[fillcolor=\colB](C)(C')(F')(F)
1697 %----------------------------------------
1698 \pscustom[fillcolor=\colB]{%
1699 \psarcn(M2'){5}{180}{90}
1700 \psline(F|G')(F)(F')
1701 }
1702 %----------------------------------------
1703 \pscustom[fillcolor=\colA]{%
1704 \psarc(M2){5}{90}{180}
1705 \psarc(M1){5}{0}{90}
1706 \psline(I)(H)
1707 }
1708 %----------------------------------------
1709 \pspolygon[fillcolor=\colB](G)(G')(H')(H)
1710 \pspolygon[fillcolor=\colC](I)(H)(H')(I')
1711 }
1712
1713 \begin{pspicture}[showgrid=false](0,-.5)(19,14)
1714 \psset{linejoin=2,transcolor=black,translineK=false,arrowlength=2,arrowsize=0.15,arrowinset=0.02,fillstyle=solid,unit=0.6}
1715 \Pfeiler
1716 \psdot(M2)
1717 \rput(M2){\pnode(5;30){R}}
1718 \pcline{->}(M2)(R)
1719 \naput[nrot=:U,labelsep=1pt]{$r=5,0\,\text{m}$}
1720 \pcline[linestyle=dashed]([nodesep=-1.1]J)(J)
1721 \pcline[linestyle=dashed]([nodesep=-1.1]I)(I)
1722 \pcline[linestyle=dashed]([nodesep=-1.8]E)(E)
1723 \pcline[linestyle=dashed]([nodesep=-1.8]D)(D)
1724 \pcline[linestyle=dashed]([nodesep=-0.8]A)(A)
1725 \pcline[linestyle=dashed]([offset=-0.8]A)(A)
1726 \pcline[linestyle=dashed]([offset=-0.8]B)(B)
1727 \pcline[linestyle=dashed]([nodesep=0.8]B)(B)
1728 \pcline[linestyle=dashed]([nodesep=0.8]B')(B')
1729 \pcline[linestyle=dashed]([nodesep=0.8]C)(C)
1730 \pcline[linestyle=dashed]([nodesep=0.8]C')(C')
1731 \pcline[offset=-0.7]{<->}(I)(J)
1732 \ncput*{$3\,\text{m}$}
1733 \pcline[offset=1.5]{<->}(D)(E)
1734 \ncput*{$3\,\text{m}$}
1735 \pcline[offset=.5]{<->}(A)([nodesep=-1]D)
1736 \ncput*{$10\,\text{m}$}
1737 \pcline[offset=-.5]{<->}(A)(B)
1738 \ncput*{$6,0\,\text{m}$}
1739 \pcline{<->}([nodesep=0.7]B)([nodesep=0.7]B')
1740 \ncput*[nrot=:U]{$8,0\,\text{m}$}
1741 \pcline{<->}([nodesep=0.7]C)([nodesep=0.7]C')
1742 \ncput*[nrot=:U,fillcolor=black!50]{$8,0\,\text{m}$}
1743 \pcline[offset=0.5]{<->}(D)(C)
1744 \ncput*[fillcolor=black!20]{$4,0\,\text{m}$}
1745 %----------------------------------------
1746 \def\colA{white}
1747 \def\colB{white}
1748 \def\colC{white}
1749 \rput(14,0){%
1750 \Pfeiler
1751 \pcline[linestyle=dashed]([nodesep=0.8]G)(G)
1752 \pcline[linestyle=dashed]([nodesep=0.8]G')(G')
1753 \pcline{<->}([nodesep=0.7]G)([nodesep=0.7]G')
1754 \ncput*[nrot=:U]{$8,0\,\text{m}$}
1755 }
1756 \end{pspicture}
1757
1758
1759
1760 \begin{pspicture}[showgrid=false](-0.5,-0.5)(15,11)
1761 \psset{linejoin=2,transcolor=black}
1762 %--------- Torbogen -------------
1763 \pstransTSK(0,0){5}{A}{A'}
1764 \pstransTSK(1.5,0){5}{B}{B'}
1765 \pstransTSK[translineK=false](6.5,2.5){5}{C}{C'}
1766 \pstransTSK(11.5,0){5}{D}{D'}
1767 \pstransTSK(13,0){5}{E}{E'}
1768 \pstransTSK(0,9){5}{F}{F'}
1769 \pstransTSK(13,9){5}{G}{G'}
1770 \pscustom[fillstyle=solid,fillcolor=brown!90]{%
1771 \psline(A)(B)(B')
1772 \psarcn(C'){5}{180}{110}
1773 \psline(F)(A)
1774 }
1775 \pscustom[fillstyle=solid,fillcolor=brown!60]{%
1776 \psline(A)(B)
1777 \psarcn(C){5}{180}{0}
1778 \psline(D)(E)(G)(F)(A)
1779 }
1780 \psdot[dotstyle=o,dotsize=5pt](C)
1781 \psdot[dotstyle=o,dotsize=5pt](C')
1782 \pspolygon[fillstyle=solid,fillcolor=brown!90](E)(E')(G')(G)
1783 \pspolygon[fillstyle=solid,fillcolor=brown!40](F)(G)(G')(F')
1784 \psline(B|C)([nodesep=0.3]B|C)
1785 \psline(D|C)([nodesep=-0.3]D|C)
1786 \psline(B'|C')([nodesep=0.3]B'|C')
1787 \end{pspicture}
1788
1789 \begin{pspicture}[showgrid=false](0.75,-.5)(19,5)
1790 \psscalebox{0.2}{%
1791 \psset{linejoin=2,transcolor=black,translineK=false,arrowlength=2,arrowsize=0.15,arrowinset=0.02,fillstyle=solid,linecolor=black!60}
1792 \rput(0,0){\Pfeiler}\rput(14,0){\Pfeiler}\rput(28,0){\Pfeiler}\rput(42,0){\Pfeiler}\rput(56,0){\Pfeiler}\rput(70,0){\Pfeiler}\rput(84,0){\Pfeiler}
1793 }
1794 \end{pspicture}
1795
1796
1797 \clearpage
1798 \section{List of all optional arguments for \texttt{pst-perspective}}
1799
1800 \xkvview{family=pst-perspective,columns={key,type,default}}
1801
1802 \bgroup
1803 \raggedright
1804 \nocite{*}
1805 \bibliographystyle{plain}
1806 \bibliography{pst-perspective-doc}
1807 \egroup
1808
1809 \printindex
1810 \end{document}