forked from IceCreamYou/THREE.Terrain
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
134 lines (129 loc) · 7.66 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Terrain</title>
<meta name="description" content="A demo of the THREE.Terrain library.">
<link rel="icon" href="demo/img/favicon.png"/>
<link rel="stylesheet" href="demo/index.css">
</head>
<body>
<canvas id="heightmap"></canvas>
<div id="show-analytics" class="visible">Analyze</div>
<div id="analytics" class="">
<h2>Analytics</h2>
<a href="https://github.com/IceCreamYou/THREE.Terrain/wiki/Analytics" class="help" target="_blank">?</a>
<div class="colgroup">
<div class="column">
<h3>Summary</h3>
<table class="analytics-group">
<tbody>
<tr class="stat"><td class="label">Elevation dispersion</td><td class="summary-value" data-property="elevation.stdev"></td></tr>
<tr class="stat"><td class="label">Elevation skew</td><td class="summary-value" data-property="elevation.pearsonSkew"></td></tr>
<tr class="stat"><td class="label">Jaggedness</td><td class="summary-value" data-property="roughness.jaggedness"></td></tr>
</tbody>
</table>
</div>
<div class="column">
<h3 class="collapse"> </h3>
<table class="analytics-group">
<tbody>
<tr class="stat"><td class="label">Slope dispersion</td><td class="summary-value" data-property="slope.stdev"></td></tr>
<tr class="stat"><td class="label">Slope skew</td><td class="summary-value" data-property="slope.groeneveldMeedenSkew"></td></tr>
<tr class="stat"><td class="label">Ruggedness</td><td class="summary-value" data-property="roughness.terrainRuggednessIndex"></td></tr>
</tbody>
</table>
</div>
</div>
<div class="colgroup">
<div class="column">
<h3>Elevation</h3>
<table class="analytics-group">
<tbody>
<tr class="stat"><td class="label">Sample size</td><td class="value" data-property="elevation.sampleSize"></td></tr>
<tr class="stat"><td class="label">Min</td><td class="value" data-property="elevation.min"></td></tr>
<tr class="stat"><td class="label">Max</td><td class="value" data-property="elevation.max"></td></tr>
<tr class="stat"><td class="label">Range</td><td class="value" data-property="elevation.range"></td></tr>
<tr class="stat"><td class="label">Midrange</td><td class="value" data-property="elevation.midrange"></td></tr>
<tr class="stat"><td class="label">Median</td><td class="value" data-property="elevation.median"></td></tr>
<tr class="stat"><td class="label">IQR</td><td class="value" data-property="elevation.iqr"></td></tr>
<tr class="stat"><td class="label">Mean</td><td class="value" data-property="elevation.mean"></td></tr>
<tr class="stat"><td class="label">Std dev</td><td class="value" data-property="elevation.stdev"></td></tr>
<tr class="stat"><td class="label">MAD</td><td class="value" data-property="elevation.mad"></td></tr>
<tr class="stat"><td class="label">Mode</td><td class="value" data-property="elevation.modes"></td></tr>
<tr class="stat"><td class="label">Pearson skew</td><td class="value" data-property="elevation.pearsonSkew"></td></tr>
<tr class="stat"><td class="label">G&M skew</td><td class="value" data-property="elevation.groeneveldMeedenSkew"></td></tr>
<tr class="stat"><td class="label">Kurtosis</td><td class="value" data-property="elevation.kurtosis"></td></tr>
<!-- <tr class="stat empty"><td class=""> </td><td class=""> </td></tr> -->
</tbody>
</table>
<div class="histogram-container">
<canvas id="elevation-graph" class="histogram"></canvas>
<div class="graph-label">Elevation Histogram</div>
</div>
</div>
<div class="column">
<h3>Slope</h3>
<table class="analytics-group">
<tbody>
<tr class="stat"><td class="label">Sample size</td><td class="value" data-property="slope.sampleSize"></td></tr>
<tr class="stat"><td class="label">Min</td><td class="value degree" data-property="slope.min"></td></tr>
<tr class="stat"><td class="label">Max</td><td class="value degree" data-property="slope.max"></td></tr>
<tr class="stat"><td class="label">Range</td><td class="value degree" data-property="slope.range"></td></tr>
<tr class="stat"><td class="label">Midrange</td><td class="value degree" data-property="slope.midrange"></td></tr>
<tr class="stat"><td class="label">Median</td><td class="value degree" data-property="slope.median"></td></tr>
<tr class="stat"><td class="label">IQR</td><td class="value degree" data-property="slope.iqr"></td></tr>
<tr class="stat"><td class="label">Mean</td><td class="value degree" data-property="slope.mean"></td></tr>
<tr class="stat"><td class="label">Std dev</td><td class="value degree" data-property="slope.stdev"></td></tr>
<tr class="stat"><td class="label">MAD</td><td class="value degree" data-property="slope.mad"></td></tr>
<tr class="stat"><td class="label">Mode</td><td class="value degree" data-property="slope.modes"></td></tr>
<tr class="stat"><td class="label">Pearson skew</td><td class="value" data-property="slope.pearsonSkew"></td></tr>
<tr class="stat"><td class="label">G&M skew</td><td class="value" data-property="slope.groeneveldMeedenSkew"></td></tr>
<tr class="stat"><td class="label">Kurtosis</td><td class="value" data-property="slope.kurtosis"></td></tr>
</tbody>
</table>
<div class="histogram-container">
<canvas id="slope-graph" class="histogram"></canvas>
<div class="graph-label">Slope Histogram</div>
</div>
</div>
</div>
<div class="colgroup">
<div class="column">
<h3>Roughness metrics</h3>
<table class="analytics-group">
<tbody>
<tr class="stat"><td class="label">2D to 3D area ratio</td><td class="value" data-property="roughness.planimetricAreaRatio"></td></tr>
<tr class="stat"><td class="label">Ruggedness Index</td><td class="value" data-property="roughness.terrainRuggednessIndex"></td></tr>
<tr class="stat"><td class="label">Jaggedness</td><td class="value percent" data-property="roughness.jaggedness"></td></tr>
</tbody>
</table>
</div>
<div class="column">
<h3>Fitted Plane</h3>
<table class="analytics-group">
<tbody>
<tr class="stat"><td class="label">Slope</td><td class="value degree" data-property="fittedPlane.slope"></td></tr>
<tr class="stat"><td class="label">Var. explained</td><td class="value percent" data-property="fittedPlane.pctExplained"></td></tr>
</tbody>
</table>
</div>
</div>
<div>
<a href="#" class="close">Close</a>
</div>
</div>
<div id="code"><a href="https://github.com/IceCreamYou/THREE.Terrain" target="_blank">Fork me on Github</a></div>
<div id="fpscontrols">W = Forward, S = Back, A = Left, D = Right, R = Up, F = Down, Q = Freeze, Mouse = Look</div>
<script src="demo/libs/stats.min.js"></script>
<script src="demo/libs/dat.gui.min.js"></script>
<script src="demo/libs/three.min.js"></script>
<script src="demo/libs/CanvasRenderer.js"></script>
<script src="demo/libs/Projector.js"></script>
<script src="demo/libs/FirstPersonControls.js"></script>
<script src="dist/THREE.Terrain.umd.js"></script>
<script src="demo/index.js"></script>
<script>setup();</script>
</body>
</html>