| 1 |
<h2>DESCRIPTION</h2> |
| 2 |
|
| 3 |
Visualization program which loads the isosurfaces previously calculated |
| 4 |
using <em>r3.mkdspf</em> and displays them according to commands given at the prompt. |
| 5 |
<em>r3.mkdspf</em> creates a dspf file from the 3D raster and <em>r3.showdspf</em> uses this |
| 6 |
dspf file to draw isosurfaces and 3D raster map to draw planes and everything |
| 7 |
related (boxes, etc). |
| 8 |
|
| 9 |
<p>Upon initialization of the program, two graphics windows are |
| 10 |
opened, one for the color table and the other for data display. The |
| 11 |
display window initially contains a red bounding box. Command options |
| 12 |
are then printed to the terminal and user is prompted for drawing |
| 13 |
instructions: |
| 14 |
|
| 15 |
<p><pre> |
| 16 |
THE INTERACTIVE OPTIONS ARE: |
| 17 |
|
| 18 |
?, (l #), L, (t #), (T # #), I, +, - |
| 19 |
(x #) (y #) (z #) r (X #) (Y #) (Z #) |
| 20 |
(B(x,y,z)#), (E(x,y,z)#), S, R, F, C, c, s, b, g, n, p[#], d, D, w, Q, h |
| 21 |
|
| 22 |
USAGE AND MEANING: |
| 23 |
|
| 24 |
<b>?</b> lists available thresholds |
| 25 |
<b>l index# [index#...]</b> add threshold to display list |
| 26 |
<b>L</b> draw current display list |
| 27 |
<b>t index#</b> reset so only this threshold is displayed |
| 28 |
<b>T index# index#</b> show thresholds between hi & lo |
| 29 |
<b>I</b> toggle thresholds INSIDE hi/lo or OUTSIDE hi/lo |
| 30 |
<b>+(+++)</b> display thresholds with consecutively increasing index# |
| 31 |
<b>-(---)</b> display thresholds with consecutively decreasing index# |
| 32 |
|
| 33 |
<b>x int#</b> absolute rotation around x-axis in degrees(int) |
| 34 |
<b>y int#</b> absolute rotation around y-axis in degrees(int) |
| 35 |
<b>z int#</b> absolute rotation around z-axis in degrees(int) |
| 36 |
<b>r</b> rotate_model |
| 37 |
<b>X int#</b> scale model in x |
| 38 |
<b>Y int#</b> scale model in y |
| 39 |
<b>Z int#</b> scale model in z |
| 40 |
|
| 41 |
<b>B(x,y,z)int#</b> begin display along (x,y,z) axis at # |
| 42 |
<b>E(x,y,z)int#</b> end display along (x,y,z)axis # |
| 43 |
<b>S int#</b> specular highlight control |
| 44 |
<b>R</b> resets display along axis to show all data |
| 45 |
<b>F <em>grid3name colortablename</em></b> load new color file |
| 46 |
|
| 47 |
<b>C</b> toggles the clear flag |
| 48 |
<b>c</b> clears the display (no thresholds) |
| 49 |
<b>s</b> swaps buffers |
| 50 |
<b>b</b> toggles draw a box |
| 51 |
<b>g</b> toggles grid |
| 52 |
<b>n</b> toggles surface normal direction |
| 53 |
|
| 54 |
<b>p</b> draw all walls |
| 55 |
<b>p#</b> draw a wall: 1-top, 2-bottom, 3-east, 4-west, 5-north, 6-south |
| 56 |
|
| 57 |
<b>d</b> draw (implement the option) |
| 58 |
<b>D</b> draw a solid defined by T(isosurface + parts of walls) |
| 59 |
|
| 60 |
<b>w</b> dump image to a file |
| 61 |
<b>Q</b> QUIT |
| 62 |
<b>h</b> help |
| 63 |
|
| 64 |
enter desired manipulations then press return |
| 65 |
>> |
| 66 |
|
| 67 |
</pre> |
| 68 |
<p> |
| 69 |
<h3>Hints:</h3> |
| 70 |
<ul> |
| 71 |
<li>To navigate around the data, use the <em>r</em> command, then place |
| 72 |
the mouse pointer in the graphics window and drag with the left mouse |
| 73 |
to rotate the bounding box. To zoom in and out, drag right or left |
| 74 |
with the middle mouse. When satisfied with the new viewing |
| 75 |
position, click with the right mouse.</li> |
| 76 |
|
| 77 |
<li>To quickly view a series of isosurfaces, enter a series of <em>+</em> or <em>-</em> |
| 78 |
characters, i.e. <em>+++++++</em></li> |
| 79 |
|
| 80 |
<li>Scripts using above commands on separate lines may be |
| 81 |
directed to <em>r3.showdspf</em> as standard input. |
| 82 |
Use the <em>#</em> sign as the first character on a line to indicate a comment.</li> |
| 83 |
</ul> |
| 84 |
|
| 85 |
<h2>EXAMPLES</h2> |
| 86 |
|
| 87 |
After generating a "dspf" control file with <em>r3.mkdspf</em> start |
| 88 |
<em>r3.showdspf</em>. Display/add the layers using <em>+</em>. |
| 89 |
|
| 90 |
<p>List available thresholds with <em>?</em>. Use <em>l</em> to select isosurfaces (available |
| 91 |
number can be adjusted with <em>r3.mkdspf</em>) and <em>L</em> to display: |
| 92 |
<br> |
| 93 |
<code>l 1 2 3 4 5<br> L </code> |
| 94 |
|
| 95 |
<p>To select and display a single threshold (here: 2), use:<br> |
| 96 |
<code>t 2</code> |
| 97 |
|
| 98 |
<p>To select and display a range of thresholds (here: 3-5), use:<br> |
| 99 |
<code>T 3 5<br> |
| 100 |
D</code> |
| 101 |
|
| 102 |
<p>To draw a box, enter<br> |
| 103 |
<code>p</code><br> |
| 104 |
the p# to plot a selected wall (here top wall):<br> |
| 105 |
<code>p1</code> |
| 106 |
|
| 107 |
<p>Tp draw a cut-off box, define it's position<br> |
| 108 |
<code>Ex20</code><br> |
| 109 |
<code>p</code><br> |
| 110 |
Here Ex20 defines the x coordinate of the end of the box. |
| 111 |
|
| 112 |
<p>In general - <em>p</em> draws a side of a box, <em>E</em>, <em>B</em>, define where that box starts or |
| 113 |
ends, so to make a fence diagram, the user draws sides of a series of boxes |
| 114 |
which have their starting (or ending) side shifting by a given interval. |
| 115 |
(this way the user can draw even more complex fence diagrams which have |
| 116 |
perpendicular fences, by using Ey or By). It is sufficient to use only <em>E</em> or |
| 117 |
<em>B</em> depending whether fence are drawn by using the end side or front side of a |
| 118 |
box). |
| 119 |
|
| 120 |
<p>To draw a fence, a sequence like this would be needed<br> |
| 121 |
<code>Ex10<br> |
| 122 |
p5<br> |
| 123 |
Ex15<br> |
| 124 |
p5<br> |
| 125 |
Ex20<br> |
| 126 |
p5<br> |
| 127 |
Ex25<br> |
| 128 |
p5<br> |
| 129 |
</code> |
| 130 |
|
| 131 |
or the same would be<br> |
| 132 |
<code>Bx10<br> |
| 133 |
p6<br> |
| 134 |
Bx15<br> |
| 135 |
p6<br> |
| 136 |
Bx20<br> |
| 137 |
p6</code> |
| 138 |
|
| 139 |
<p>The <em>p</em> is needed for the fence diagram, solids and boxes. |
| 140 |
|
| 141 |
<h2>SEE ALSO</h2> |
| 142 |
|
| 143 |
<em><a href="r3.mkdspf.html">r3.mkdspf</a></em> |
| 144 |
|
| 145 |
<h2>AUTHOR</h2> |
| 146 |
|
| 147 |
Bill Brown, <a href="mailto:[email protected]">[email protected]</a> |