3 <title>Swept points - 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=
"Sweeps.html#Sweeps" title=
"Sweeps">
9 <link rel=
"prev" href=
"Sweeps.html#Sweeps" title=
"Sweeps">
10 <link rel=
"next" href=
"Swept-lines.html#Swept-lines" title=
"Swept lines">
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=
"Swept-points"></a>Next:
<a rel=
"next" accesskey=
"n" href=
"Swept-lines.html#Swept-lines">Swept lines
</a>,
50 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Sweeps.html#Sweeps">Sweeps
</a>,
51 Up:
<a rel=
"up" accesskey=
"u" href=
"Sweeps.html#Sweeps">Sweeps
</a>
55 <!-- node-name, next, previous, up -->
56 <h5 class=
"subsubsection">3.2.6.1 Swept points
</h5>
58 <p><a name=
"index-swept-point-283"></a><a name=
"index-point-sweep-284"></a>If
<var>swept_object
</var> is a point list and there is no closure tag,
59 <a name=
"index-_003c_003e_0040r_007b_002c-closure-tag_007d-285"></a><a name=
"index-closure-tag_002c-_0040code_007b_003c_003e_007d-286"></a>then
<code>sweep
</code> connects
<var>n
</var>+
1 successive copies of each
60 point (including the original) with straight line segments to form a
61 polyline. If there are m points in the original point list,
62 <a name=
"index-point-list-287"></a>then m polylines with
<var>n
</var> segments each are formed by the
63 sweep. In this manner,
<code>sweep
</code> forms a set of one-dimensional
64 objects (polylines) from zero-dimensional ones (points).
66 <p>When there
<em>is
</em> a closure tag,
67 <a name=
"index-_003c_003e_0040r_007b_002c-closure-tag_007d-288"></a><a name=
"index-closure-tag_002c-_0040code_007b_003c_003e_007d-289"></a><code>sweep
</code> connects
<var>n
</var>
68 successive copies of each point (including the original) with straight
69 line segments and finally connects the last copy back to the original
70 to form a polygon with
<var>n
</var> sides. If there are m points in
71 the original point list, then m polygons with
<var>n
</var> sides
72 each are formed by the sweep. In this manner,
<code>sweep
</code> forms a
73 set of two-dimensional objects (polygons) from zero-dimensional ones
77 <a name=
"index-options_002c-sweep-290"></a>of the
<code>sweep
</code> are copied directly to the resulting