3 <title>Limits on error detection - 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=
"Caveats.html#Caveats" title=
"Caveats">
9 <link rel=
"prev" href=
"Caveats.html#Caveats" title=
"Caveats">
10 <link rel=
"next" href=
"Clipping.html#Clipping" title=
"Clipping">
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=
"Limits-on-error-detection"></a>Next:
<a rel=
"next" accesskey=
"n" href=
"Clipping.html#Clipping">Clipping
</a>,
50 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Caveats.html#Caveats">Caveats
</a>,
51 Up:
<a rel=
"up" accesskey=
"u" href=
"Caveats.html#Caveats">Caveats
</a>
55 <!-- node-name, next, previous, up -->
56 <h4 class=
"subsection">4.4.1 Limits on
<code>sketch
</code> error detection
</h4>
58 <p><code>Sketch
</code> catches many kinds of errors, but not all. For example,
59 options that sketch does not recognize, even incorrect ones, are
60 quietly copied to
<code>PSTricks
</code> commands in the output. It is also
61 unfortunately easy to produce
<code>sketch
</code> inputs that lead to no
62 picture at all (improper vertex ordering causes everything to be
63 culled), to pictures that are too big or too small for
<code>PSTricks
</code>
64 to draw (due to limits of TeX math), and pictures that look nothing
65 like what was intended. A picture with one of these problems can be
66 difficult to
“debug.
” We offer the following suggestions.
68 <li>Follow the suggested incremental development method described in
69 <a href=
"Overview.html#Overview">Overview
</a>.
70 <li>Always maintain one or two back-versions of a drawing so that it is
71 easy to fall back to a known-good increment.
72 <li>When using
<code>perspective
</code>, ensure all finally transformed objects
73 satisfy z
<0 and, in fact, do not come very close to the origin
75 <li>Temporarily use
<code>cull=false
</code> to see where vertex ordering
77 <li>Use temporary changes of color of one or more objects to ensure that
78 your understanding of the scene geometry is correct.
79 <li>If
<code>PSTricks
</code> complains about something, inspect the output