3 <title>Statistics - 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=
"Hidden-surface-removal.html#Hidden-surface-removal" title=
"Hidden surface removal">
9 <link rel=
"prev" href=
"Hidden-surface-removal.html#Hidden-surface-removal" title=
"Hidden surface removal">
10 <link rel=
"next" href=
"Bugs-and-anomalies.html#Bugs-and-anomalies" title=
"Bugs and anomalies">
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=
"Statistics"></a>Next:
<a rel=
"next" accesskey=
"n" href=
"Bugs-and-anomalies.html#Bugs-and-anomalies">Bugs and anomalies
</a>,
50 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Hidden-surface-removal.html#Hidden-surface-removal">Hidden surface removal
</a>,
51 Up:
<a rel=
"up" accesskey=
"u" href=
"Hidden-surface-removal.html#Hidden-surface-removal">Hidden surface removal
</a>
55 <!-- node-name, next, previous, up -->
56 <h5 class=
"subsubsection">4.4.3.1 Statistics
</h5>
58 <p>For the curious,
<code>sketch
</code> writes one line of depth sort
59 statistics. Here is an example for a large collection of triangles.
60 <pre class=
"verbatim">
61 remark, node=
34824 probe=
581.9 swap=
5 split=
2 (in=
4 out=
6) ols=
24851/
0
63 It means that
34,
824 objects were depth sorted after culling.
64 For each, an average of
581.9 others had to be checked to
65 ensure that the initial, approximate ordering was correct. Among all
66 these checks, only
5 resulted in swaps to reorder the initial
67 sort. In two cases, a correct ordering could not be determined, so
68 binary space partitions
69 <a name=
"index-binary-space-partition-503"></a>were constructed for splitting. A total of
4
70 objects (triangles in this case) were inserted in the partitions, and
71 6 polygons were produced. Finally,
24,
851 “last
72 resort
” polygon overlap checks were performed after simpler, faster
73 checks failed to yield conclusive results. The final /
0 is for
74 line-polygon overlap checks. For comparison, the statistics for the
75 last figure in
<a href=
"Overview.html#Overview">Overview
</a> follow.
76 <pre class=
"verbatim">
77 remark, node=
27 probe=
14.6 swap=
36 split=
15 (in=
30 out=
45) ols=
0/
69
79 Note that there was proportionally much more swapping and splitting
80 activity in this highly connected scene.