3 <title>Sweeps - Sketch
</title>
4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"Sketch">
6 <meta name=
"generator" content=
"makeinfo 4.7">
7 <link title=
"Top" rel=
"start" href=
"index.html#Top">
8 <link rel=
"up" href=
"Drawables.html#Drawables" title=
"Drawables">
9 <link rel=
"prev" href=
"Specials.html#Specials" title=
"Specials">
10 <link rel=
"next" href=
"Blocks.html#Blocks" title=
"Blocks">
11 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home" title=
"Texinfo Homepage">
13 Copyright (C) 2005, 2006, 2007, 2008 Eugene K. Ressler.
15 This manual is for `sketch', version 0.2 (build 161),
16 Tuesday, September 08, 2009, a program that converts descriptions of simple
17 three-dimensional scenes into static drawings. This version generates
18 `PSTricks' or `PGF/TikZ' code suitable for use with the
19 TeX document processing system.
21 `Sketch' is free software; you can redistribute it and/or modify
22 it under the terms of the GNU General Public License as published by
23 the Free Software Foundation; either version 3, or (at your option)
26 Sketch is distributed in the hope that it will be useful,
27 but WITHOUT ANY WARRANTY; without even the implied warranty of
28 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 GNU General Public License for more details.
31 You should have received a copy of the GNU General Public License
32 along with `sketch'; see the file COPYING.txt. If not, see
33 http://www.gnu.org/copyleft.-->
34 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
35 <style type=
"text/css"><!--
36 pre
.display
{ font-family:inherit
}
37 pre
.format
{ font-family:inherit
}
38 pre
.smalldisplay
{ font-family:inherit
; font-size:smaller
}
39 pre
.smallformat
{ font-family:inherit
; font-size:smaller
}
40 pre
.smallexample
{ font-size:smaller
}
41 pre
.smalllisp
{ font-size:smaller
}
42 span
.sc
{ font-variant:small-caps
}
43 span
.roman
{ font-family: serif
; font-weight: normal
; }
49 <a name=
"Sweeps"></a>Next:
<a rel=
"next" accesskey=
"n" href=
"Blocks.html#Blocks">Blocks
</a>,
50 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Specials.html#Specials">Specials
</a>,
51 Up:
<a rel=
"up" accesskey=
"u" href=
"Drawables.html#Drawables">Drawables
</a>
55 <!-- node-name, next, previous, up -->
56 <h4 class=
"subsection">3.2.6 Sweeps
</h4>
58 <p><a name=
"index-sweep-278"></a><strong>Syntax:
</strong>
59 <pre class=
"example"> sweep {
<var>n
</var>,
<var>T_1
</var>,
<var>T_2
</var>, ...,
<var>T_r
</var> }[
<var>options
</var>]
<var>swept_object
</var>
60 sweep {
<var>n
</var><>,
<var>T_1
</var>,
<var>T_2
</var>, ...,
<var>T_r
</var> }[
<var>options
</var>]
<var>swept_object
</var>
62 <p class=
"noindent">The sweep connects
<var>n
</var> (or perhaps
<var>n
</var>+
1) copies of
63 <var>swept_object
</var>
64 <a name=
"index-swept-object-279"></a>in order to create a new object of higher
65 dimension. The
<var>T_i
</var> (for i between
1 and
67 <a name=
"index-transform-280"></a>The k'th copy of
<var>swept_object
</var> is produced by applying the
68 following transform to the original.
69 <pre class=
"example"> <var>T_1
</var>^k then
<var>T_2
</var>^k then ... then
<var>T_r
</var>^k
71 <p class=
"noindent">Here
<var>T
</var>^k means
“transform
<var>T
</var> applied k
72 times.
” The original object is the zero'th copy, with k=
0 and
73 effectively no transform applied (T^
0=I, the identity
76 <p>The method of connecting the copies depends on the type of
77 <var>swept_object
</var> and on whether the closure tag
78 <a name=
"index-_003c_003e_0040r_007b_002c-closure-tag_007d-281"></a><a name=
"index-closure-tag_002c-_0040code_007b_003c_003e_007d-282"></a><span class=
"samp"><></span> is present
81 <p>An example of a sweep where r=
2 is the Mobius figure at
82 <a href=
"More-to-learn.html#More-to-learn">More to learn
</a>.
85 <li><a accesskey=
"1" href=
"Swept-points.html#Swept-points">Swept points
</a>: Swept points make lines or polygons.
86 <li><a accesskey=
"2" href=
"Swept-lines.html#Swept-lines">Swept lines
</a>: Swept lines make open or closed surfaces.
87 <li><a accesskey=
"3" href=
"Swept-polygons.html#Swept-polygons">Swept polygons
</a>: Swept polygons make closed surfaces.
88 <li><a accesskey=
"4" href=
"Swept-blocks.html#Swept-blocks">Swept blocks
</a>: Swept block == block of sweeps.
89 <li><a accesskey=
"5" href=
"Sweep-face-splitting.html#Sweep-face-splitting">Sweep face splitting
</a>: Fixing warped faces with triangles.