-
Notifications
You must be signed in to change notification settings - Fork 56
/
voronoi_mountains.html
160 lines (133 loc) · 4.04 KB
/
voronoi_mountains.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<html>
<head>
<title>
VORONOI_MOUNTAINS - 3D Voronoi Diagram
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
VORONOI_MOUNTAINS <br> 3D Voronoi Diagram
</h1>
<hr>
<p>
<b>VORONOI_MOUNTAINS</b>
is a MATLAB program which
makes a 3D surface plot of a Voronoi diagram.
</p>
<p>
The Voronoi diagram divides up points in the plane by associating
each point with the closest of a set of generator points. This
process partitions the plane into polygonal regions. If we then
associate with each point (X,Y) the distance Z(X,Y) to the nearest
generator, then the corresponding surface is made by patching
together parts of cones.
</p>
<p>
If we flip this surface over, the generators become the "peaks"
of a chain of mountains; the lines of the Voronoi diagram become
the bottoms of valleys, which are straight in the XY plane,
although their height varies parabolically.
</p>
<p>
Using MATLAB's 3D plotting features, including the 3D rotation
and zoom, it is possible to examine such a plot and gain a
better understanding of some of the features of a Voronoi diagram.
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files described and made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>VORONOI_MOUNTAINS</b> is available in
<a href = "../../m_src/voronoi_mountains/voronoi_mountains.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../m_src/matlab_surf/matlab_surf.html">
MATLAB_SURF</a>,
a MATLAB library which
demonstrates the MATLAB surf() function for displaying a 3D surface
of the form Z=F(X,Y).
</p>
<p>
<a href = "../../m_src/voronoi_plot/voronoi_plot.html">
VORONOI_PLOT</a>,
a MATLAB program which
plots the Voronoi neighborhoods of points using L1, L2, LInfinity
or arbitrary LP norms;
</p>
<h3 align = "center">
Reference:
</h3>
<p>
<ol>
<li>
Franz Aurenhammer,<br>
Voronoi diagrams -
a study of a fundamental geometric data structure,<br>
ACM Computing Surveys,<br>
Volume 23, Number 3, pages 345-405, September 1991.
</li>
</ol>
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "voronoi_mountains.m">voronoi_mountains.m</a>,
the source code;
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "voronoi_mountains_test.m">voronoi_mountains_test.m</a>,
code that calls <b>voronoi_mountains</b> with the diamond
points or a random set of points;
</li>
<li>
<a href = "diamond.txt">diamond.txt</a>,
a set of 9 points with a simple Voronoi diagram.
</li>
<li>
<a href = "diamond_diagram.png">diamond_diagram.png</a>,
the flat Voronoi diagram of the set of points.
</li>
<li>
<a href = "diamond_mountains.png">diamond_mountains.png</a>,
a still overhead image of the 3D mountain plot for the diamond
points. The "cool" colormap is used.
</li>
<li>
<a href = "random_mountains.png">random_mountains.png</a>,
a still side image of the 3D mountain plot for 10 random points.
The "prism" colormap is used.
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../m_src.html">
the MATLAB source codes</a>.
</p>
<hr>
<i>
Last revised on 03 March 2011.
</i>
<!-- John Burkardt -->
</body>
</html>