initial setup of thesis repository
[cluster_expansion_thesis.git] / little_helpers / tikz / sketch-0.2.161 / Doc / sketch / Repeated-objects.html
bloba6aa8f7416cd3d84ba99c6ee661663cf7fc17b49
1 <html lang="en">
2 <head>
3 <title>Repeated objects - 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="Introduction-by-example.html#Introduction-by-example" title="Introduction by example">
9 <link rel="prev" href="Object-transforms.html#Object-transforms" title="Object transforms">
10 <link rel="next" href="Swept-objects.html#Swept-objects" title="Swept objects">
11 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12 <!--
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)
24 any later version.
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; }
44 --></style>
45 </head>
46 <body>
47 <div class="node">
48 <p>
49 <a name="Repeated-objects"></a>Next:&nbsp;<a rel="next" accesskey="n" href="Swept-objects.html#Swept-objects">Swept objects</a>,
50 Previous:&nbsp;<a rel="previous" accesskey="p" href="Object-transforms.html#Object-transforms">Object transforms</a>,
51 Up:&nbsp;<a rel="up" accesskey="u" href="Introduction-by-example.html#Introduction-by-example">Introduction by example</a>
52 <hr><br>
53 </div>
55 <!-- node-name, next, previous, up -->
56 <h3 class="section">2.6 Repeated objects</h3>
58 <p>To draw seven instances of the tetrahedron, each differing from the
59 last by the same transform, replace the last two commands of the
60 previous example with
61 <a name="index-repeat-88"></a><a name="index-rotate-89"></a><a name="index-translate-90"></a>
62 <pre class="verbatim">
63 repeat { 7, rotate(15, (0,0,0), [1,0,0]) % copy in new position
64 then translate([2,0,0]) } {pierced_tetrahedron}
65 </pre>
66 And the result<small class="enddots">....</small>
68 <div align="center"><img src="ex060.png" alt="ex060.png"></div>
70 </body></html>