update examples; cleanup; save/load

This commit is contained in:
m-schuetz 2019-11-05 17:26:32 +01:00
parent 22e82bde66
commit 794923bbca
53 changed files with 878 additions and 185 deletions

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -36,7 +36,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area">
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');">
<div id="cesiumContainer" style="position: absolute; width: 100%; height: 100%; background-color:green"></div>
</div>
<div id="potree_sidebar_container"> </div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -31,7 +31,7 @@
<script src="../libs/plasio/js/laslaz.js"></script>
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area">
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');">
</div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -38,7 +38,7 @@
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area">
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');">
<div id="cesiumContainer" style="position: absolute; width: 100%; height: 100%; background-color:green"></div>
</div>
<div id="potree_sidebar_container"> </div>

View File

@ -37,7 +37,7 @@
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area">
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');">
<div id="cesiumContainer" style="position: absolute; width: 100%; height: 100%; background-color:green"></div>
</div>
<div id="potree_sidebar_container"> </div>

View File

@ -37,7 +37,7 @@
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area">
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');">
<div id="cesiumContainer" style="position: absolute; width: 100%; height: 100%; background-color:green"></div>
</div>
<div id="potree_sidebar_container"> </div>

View File

@ -62,7 +62,6 @@
viewer.setEDLEnabled(true);
viewer.setFOV(60);
viewer.setPointBudget(2 * 1000 * 1000);
viewer.setPointBudget(1000);
viewer.loadGUI(() => {
$("#menu_filters").next().show();

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -36,7 +36,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
<input id="tiffTest" type="button" value="tiff test" />
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
<input id="tiffTest" type="button" value="tiff test" />
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
<input id="tiffTest" type="button" value="tiff test" />
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area">
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');">
<input type="button" id="animation_toggle" value="pause"
style="position: absolute; bottom: 20px; left: 45%; width: 20%; height: 30px; z-index: 10000"/>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Potree Viewer</title>
<link rel="stylesheet" type="text/css" href="../build/potree/potree.css">
<link rel="stylesheet" type="text/css" href="../libs/jquery-ui/jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="../libs/openlayers3/ol.css">
<link rel="stylesheet" type="text/css" href="../libs/spectrum/spectrum.css">
<link rel="stylesheet" type="text/css" href="../libs/jstree/themes/mixed/style.css">
</head>
<body>
<script src="../libs/jquery/jquery-3.1.1.min.js"></script>
<script src="../libs/spectrum/spectrum.js"></script>
<script src="../libs/jquery-ui/jquery-ui.min.js"></script>
<script src="../libs/three.js/build/three.min.js"></script>
<script src="../libs/three.js/extra/lines.js"></script>
<script src="../libs/other/BinaryHeap.js"></script>
<script src="../libs/tween/tween.min.js"></script>
<script src="../libs/d3/d3.js"></script>
<script src="../libs/proj4/proj4.js"></script>
<script src="../libs/openlayers3/ol.js"></script>
<script src="../libs/i18next/i18next.js"></script>
<script src="../libs/jstree/jstree.js"></script>
<script src="../build/potree/potree.js"></script>
<script src="../libs/plasio/js/laslaz.js"></script>
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>
<script>
window.viewer = new Potree.Viewer(document.getElementById("potree_render_area"));
viewer.setDescription("Potree projects that were exported (Scene → Export → Potree) can be loaded with viewer.loadProject(url). ");
viewer.loadGUI(() => {
viewer.setLanguage('en');
$("#menu_tools").next().show();
$("#menu_clipping").next().show();
viewer.toggleSidebar();
});
viewer.loadProject("./resources/sorvilier.json");
</script>
</body>
</html>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -36,7 +36,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -32,7 +32,7 @@
<script src="../libs/other/stats.min.js"></script>
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -0,0 +1,508 @@
{
"type": "Potree",
"version": 1.7,
"settings": {
"pointBudget": 1000000,
"fov": 60,
"edlEnabled": true,
"edlRadius": 1.4,
"edlStrength": 0.4,
"background": "gradient",
"minNodeSize": 30,
"showBoundingBoxes": false
},
"view": {
"position": [
589974.341,
231698.397,
986.146
],
"target": [
589851.587,
231428.213,
715.634
]
},
"classification": {
"0": {
"visible": true,
"name": "never classified",
"color": [
0.5,
0.5,
0.5,
1
]
},
"1": {
"visible": true,
"name": "unclassified",
"color": [
0.5,
0.5,
0.5,
1
]
},
"2": {
"visible": true,
"name": "ground",
"color": [
0.63,
0.32,
0.18,
1
]
},
"3": {
"visible": true,
"name": "low vegetation",
"color": [
0,
1,
0,
1
]
},
"4": {
"visible": true,
"name": "medium vegetation",
"color": [
0,
0.8,
0,
1
]
},
"5": {
"visible": true,
"name": "high vegetation",
"color": [
0,
0.6,
0,
1
]
},
"6": {
"visible": true,
"name": "building",
"color": [
1,
0.66,
0,
1
]
},
"7": {
"visible": true,
"name": "low point(noise)",
"color": [
1,
0,
1,
1
]
},
"8": {
"visible": true,
"name": "key-point",
"color": [
1,
0,
0,
1
]
},
"9": {
"visible": true,
"name": "water",
"color": [
0,
0,
1,
1
]
},
"12": {
"visible": true,
"name": "overlap",
"color": [
1,
1,
0,
1
]
},
"DEFAULT": {
"visible": true,
"name": "default",
"color": [
0.3,
0.6,
0.6,
0.5
]
}
},
"pointclouds": [
{
"name": "sigeom.sa",
"url": "../pointclouds/vol_total/cloud.js",
"position": [
589500,
231300,
722.505
],
"rotation": [
0,
0,
0,
"XYZ"
],
"scale": [
1,
1,
1
],
"activeAttributeName": "RGBA"
}
],
"measurements": [
{
"uuid": "CCFEDDB1-7CEE-4B2C-BBFD-64405DED63C3",
"name": "Measure_0",
"points": [
[
589803.18,
231357.35,
745.38
],
[
589795.74,
231323.42,
746.21
],
[
589822.5,
231315.9,
744.45
]
],
"showDistances": true,
"showCoordinates": false,
"showArea": false,
"closed": false,
"showAngles": false,
"showHeight": false,
"color": [
1,
0,
0
]
},
{
"uuid": "92086379-896A-4608-9584-855A04B915D0",
"name": "Angle Sample",
"points": [
[
589866.11,
231372.25,
737.41
],
[
589842.15,
231366.82,
743.61
],
[
589860.61,
231348.01,
740.33
]
],
"showDistances": false,
"showCoordinates": false,
"showArea": false,
"closed": true,
"showAngles": true,
"showHeight": false,
"color": [
1,
0,
0
]
},
{
"uuid": "D62705BF-C151-49FD-991B-9CEFD223FAFB",
"name": "Canopy",
"points": [
[
589853.73,
231300.24,
775.48
]
],
"showDistances": false,
"showCoordinates": true,
"showArea": false,
"closed": true,
"showAngles": false,
"showHeight": false,
"color": [
1,
0,
0
]
},
{
"uuid": "19D13159-B509-4CB0-8CA2-A58FB60B6D50",
"name": "Tree Height",
"points": [
[
589849.69,
231327.26,
766.32
],
[
589840.96,
231329.53,
744.52
]
],
"showDistances": false,
"showCoordinates": false,
"showArea": false,
"closed": false,
"showAngles": false,
"showHeight": true,
"color": [
1,
0,
0
]
},
{
"uuid": "E46A0D60-EA59-4589-88AA-788DE0A91DF4",
"name": "Area",
"points": [
[
589899.37,
231300.16,
750.25
],
[
589874.6,
231326.06,
743.4
],
[
589911.61,
231352.57,
743.58
],
[
589943.5,
231300.08,
754.62
]
],
"showDistances": true,
"showCoordinates": false,
"showArea": true,
"closed": true,
"showAngles": false,
"showHeight": false,
"color": [
1,
0,
0
]
}
],
"volumes": [
{
"uuid": "1A553B0B-D35B-4B26-84BD-F8CFD287A200",
"type": "BoxVolume",
"name": "Test Volume",
"position": [
589688.5173246722,
231341.79786558595,
792.7726157084892
],
"rotation": [
0,
0,
0.6338484063020134,
"XYZ"
],
"scale": [
87.70990081104037,
65.01472874807978,
95.53770288101325
],
"visible": true,
"clip": true
}
],
"cameraAnimations": [],
"profiles": [
{
"uuid": "C08F6835-4E6E-47BB-8D13-7428BAEA48CE",
"name": "Profile_0",
"points": [
[
589641.6098756103,
231453.76974998094,
760.4950016784668
],
[
589514.4799995422,
231309.46000003815,
775.6249989318848
],
[
589512.4600000381,
231504.9597490845,
764.6350010681152
]
],
"height": 20,
"width": 6
}
],
"annotations": {
"items": [
{
"uuid": "96E6ECB5-BED1-4903-B8C9-252AC78E864D",
"title": "Sorvilier",
"description": "",
"position": [
589847.17,
231436.78,
892.6
],
"offset": [
0,
0,
0
],
"cameraPosition": [
590034.03,
231814.02,
961.68
]
},
{
"uuid": "D94E1D0B-7AA5-46FB-A513-A42282D3BD18",
"title": "Trees",
"description": "Point cloud of a small section in Sorvilier, Switzerland. <br>\n\t\t\t\tCourtesy of sigeom.sa",
"position": [
589850.15,
231300.1,
770.94
],
"offset": [
0,
0,
0
]
},
{
"uuid": "8B6543FC-64CA-4FD6-9C8D-ACE446D4A711",
"title": "About Annotations",
"description": "<ul><li>Click on the annotation label to move a predefined view.</li> \n\t\t\t\t<li>Click on the icon to execute the specified action.</li>\n\t\t\t\tIn this case, the action will bring you to another scene and point cloud.</ul>",
"position": [
590043.63,
231490.79,
740.78
],
"offset": [
0,
0,
0
],
"cameraPosition": [
590105.53,
231541.63,
782.05
]
},
{
"uuid": "EE329482-3EF6-448C-A12B-46BF95143F79",
"title": "About Annotations 2",
"description": "\n\t\t\t\tSuitable annotation positions and views can be obtained by \n\t\t\t\tlooking up the current camera position and target in the \"Scene\" panel, \n\t\t\t\tor by evaluating following lines in your browser's developer console:<br><br>\n\t\t\t\t<code>viewer.scene.view.position</code><br>\n\t\t\t\t<code>viewer.scene.view.getPivot()</code><br>\n\t\t\t\t",
"position": [
589621,
231437,
784
],
"offset": [
0,
0,
0
],
"cameraPosition": [
589585.81,
231463.63,
804
]
},
{
"uuid": "B5B39D1C-7161-46DD-B3E0-F3FB41C32AB8",
"title": "About Annotations 1",
"description": "\n\t\t\t\tAnnotations mark and describe locations. \n\t\t\t\tThey can move users to a predefined location on click, \n\t\t\t\tand provide action buttons to offer easily accessible \n\t\t\t\tfunctionality at certain points of interest.\n\t\t\t\t",
"position": [
589980,
231236.83,
783.89
],
"offset": [
0,
0,
0
]
},
{
"uuid": "8F6A7FC5-6BA0-4B48-9C06-2DE3063BC628",
"title": "About Annotations 2",
"description": "\n\t\t\t\tSuitable annotation positions and views can be obtained by \n\t\t\t\tlooking up the current camera position and target in the \"Scene\" panel, \n\t\t\t\tor by evaluating following lines in your browser's developer console:<br><br>\n\t\t\t\t<code>viewer.scene.view.position</code><br>\n\t\t\t\t<code>viewer.scene.view.getPivot()</code><br>\n\t\t\t\t",
"position": [
589880,
231236.83,
783.89
],
"offset": [
0,
0,
0
]
},
{
"uuid": "E914DFBE-2C31-4100-B86F-97420B31B5C4",
"title": "Actions:&nbsp;",
"description": "This annotation has actions that switch between elevation and color rendering modes.",
"position": [
589769.27,
231236.83,
783.89
],
"offset": [
0,
0,
0
]
}
],
"hierarchy": {
"0": {},
"1": {},
"2": {},
"3": {},
"4": {},
"5": {},
"6": {}
}
},
"objects": []
}

View File

@ -38,7 +38,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -34,7 +34,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -38,7 +38,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -38,7 +38,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -38,7 +38,7 @@
<!-- INCLUDE SETTINGS HERE -->
<div class="potree_container" style="position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; ">
<div id="potree_render_area"></div>
<div id="potree_render_area" style="background-image: url('../build/potree/resources/images/background.jpg');"></div>
<div id="potree_sidebar_container"> </div>
</div>

View File

@ -53,10 +53,10 @@ export * from "./utils/Profile.js";
export * from "./utils/ProfileTool.js";
export * from "./utils/ScreenBoxSelectTool.js";
export * from "./utils/SpotLightHelper.js";
export * from "./utils/toInterleavedBufferAttribute.js";
export * from "./utils/TransformationTool.js";
export * from "./utils/Volume.js";
export * from "./utils/VolumeTool.js";
export * from "./utils/Compass.js";
export * from "./viewer/viewer.js";
export * from "./viewer/Scene.js";

View File

@ -36,15 +36,6 @@
// print(rgb)
let Gradients = {
RAINBOW: [
[0, new THREE.Color(0.278, 0, 0.714)],
[1 / 6, new THREE.Color(0, 0, 1)],
[2 / 6, new THREE.Color(0, 1, 1)],
[3 / 6, new THREE.Color(0, 1, 0)],
[4 / 6, new THREE.Color(1, 1, 0)],
[5 / 6, new THREE.Color(1, 0.64, 0)],
[1, new THREE.Color(1, 0, 0)]
],
// From chroma spectral http://gka.github.io/chroma.js/
SPECTRAL: [
[0, new THREE.Color(0.3686, 0.3098, 0.6353)],
@ -136,6 +127,15 @@ let Gradients = {
[0.93, new THREE.Color(0.81608, 0.18462, 0.01809)],
[1.00, new THREE.Color(0.66449, 0.08436, 0.00424)],
],
RAINBOW: [
[0, new THREE.Color(0.278, 0, 0.714)],
[1 / 6, new THREE.Color(0, 0, 1)],
[2 / 6, new THREE.Color(0, 1, 1)],
[3 / 6, new THREE.Color(0, 1, 0)],
[4 / 6, new THREE.Color(1, 1, 0)],
[5 / 6, new THREE.Color(1, 0.64, 0)],
[1, new THREE.Color(1, 0, 0)]
],
CONTOUR: [
[0.00, new THREE.Color(0, 0, 0)],
[0.03, new THREE.Color(0, 0, 0)],

View File

@ -814,23 +814,23 @@ void main() {
// CLIPPING
// doClipping();
doClipping();
// #if defined(num_clipspheres) && num_clipspheres > 0
// for(int i = 0; i < num_clipspheres; i++){
// vec4 sphereLocal = uClipSpheres[i] * mvPosition;
#if defined(num_clipspheres) && num_clipspheres > 0
for(int i = 0; i < num_clipspheres; i++){
vec4 sphereLocal = uClipSpheres[i] * mvPosition;
// float distance = length(sphereLocal.xyz);
float distance = length(sphereLocal.xyz);
// if(distance < 1.0){
// float w = distance;
// vec3 cGradient = texture2D(gradient, vec2(w, 1.0 - w)).rgb;
if(distance < 1.0){
float w = distance;
vec3 cGradient = texture2D(gradient, vec2(w, 1.0 - w)).rgb;
// vColor = cGradient;
// //vColor = cGradient * 0.7 + vColor * 0.3;
// }
// }
// #endif
vColor = cGradient;
//vColor = cGradient * 0.7 + vColor * 0.3;
}
}
#endif
#if defined(num_shadowmaps) && num_shadowmaps > 0

View File

@ -25,6 +25,8 @@ export class CameraAnimation extends EventDispatcher{
this.controlPoints = [];
this.uuid = THREE.Math.generateUUID();
this.node = new THREE.Object3D();
this.node.name = "camera animation";
this.viewer.scene.scene.add(this.node);

View File

@ -911,7 +911,7 @@ export class Utils {
const llP1 = transform.forward(p1.toArray());
const llP2 = transform.forward(p2.toArray());
const dir = [llP2[0] - llP1[0], llP2[1] - llP1[1]];
const azimuth = -Math.atan2(dir[1], dir[0]) - Math.PI / 2;
const azimuth = Math.atan2(dir[1], dir[0]) - Math.PI / 2;
return azimuth;
}else{
@ -948,6 +948,65 @@ export class Utils {
});
}
static createSvgGradient(scheme){
// this is what we are creating:
//
//<svg width="1em" height="3em" xmlns="http://www.w3.org/2000/svg">
// <defs>
// <linearGradient id="gradientID" gradientTransform="rotate(90)">
// <stop offset="0%" stop-color="rgb(93, 78, 162)" />
// ...
// <stop offset="100%" stop-color="rgb(157, 0, 65)" />
// </linearGradient>
// </defs>
//
// <rect width="100%" height="100%" fill="url('#myGradient')" stroke="black" stroke-width="0.1em"/>
//</svg>
const gradientId = `${Math.random()}_${Date.now()}`;
const svgn = "http://www.w3.org/2000/svg";
const svg = document.createElementNS(svgn, "svg");
svg.setAttributeNS(null, "width", "2em");
svg.setAttributeNS(null, "height", "3em");
{ // <defs>
const defs = document.createElementNS(svgn, "defs");
const linearGradient = document.createElementNS(svgn, "linearGradient");
linearGradient.setAttributeNS(null, "id", gradientId);
linearGradient.setAttributeNS(null, "gradientTransform", "rotate(90)");
for(let i = scheme.length - 1; i >= 0; i--){
const stopVal = scheme[i];
const percent = parseInt(100 - stopVal[0] * 100);
const [r, g, b] = stopVal[1].toArray().map(v => parseInt(v * 255));
const stop = document.createElementNS(svgn, "stop");
stop.setAttributeNS(null, "offset", `${percent}%`);
stop.setAttributeNS(null, "stop-color", `rgb(${r}, ${g}, ${b})`);
linearGradient.appendChild(stop);
}
defs.appendChild(linearGradient);
svg.appendChild(defs);
}
const rect = document.createElementNS(svgn, "rect");
rect.setAttributeNS(null, "width", `100%`);
rect.setAttributeNS(null, "height", `100%`);
rect.setAttributeNS(null, "fill", `url("#${gradientId}")`);
rect.setAttributeNS(null, "stroke", `black`);
rect.setAttributeNS(null, "stroke-width", `0.1em`);
svg.appendChild(rect);
return svg;
}
}
Utils.screenPass = new function () {

62
src/utils/Compass.js Normal file
View File

@ -0,0 +1,62 @@
import {Utils} from "../utils.js";
export class Compass{
constructor(viewer){
this.viewer = viewer;
this.visible = false;
this.dom = this.createElement();
viewer.addEventListener("update", () => {
const direction = viewer.scene.view.direction.clone();
direction.z = 0;
direction.normalize();
// const north = new THREE.Vector3(0, 1, 0);
// const angleNorth = Math.atan2(north.y, north.x);
// const angleDir = Math.atan2(direction.y, direction.x);
// const azimuth = angleDir - angleNorth;
const camera = viewer.scene.getActiveCamera();
const p1 = camera.getWorldPosition(new THREE.Vector3());
const p2 = p1.clone().add(direction);
const projection = viewer.getProjection();
const azimuth = Utils.computeAzimuth(p1, p2, projection);
this.dom.css("transform", `rotateZ(${azimuth}rad)`);
});
this.dom.click( () => {
viewer.setTopView();
});
const renderArea = $(viewer.renderArea);
renderArea.append(this.dom);
this.setVisible(this.visible);
}
setVisible(visible){
this.visible = visible;
const value = visible ? "" : "none";
this.dom.css("display", value);
}
isVisible(){
return this.visible;
}
createElement(){
const style = `style="position: absolute; top: 10px; right: 10px; z-index: 10000; width: 64px;"`;
const img = $(`<img src="${Potree.resourcePath}/images/compas.svg" ${style} />`);
return img;
}
};

View File

@ -1,31 +0,0 @@
import {PointAttribute} from "../loader/PointAttributes.js";
export function toInterleavedBufferAttribute(pointAttribute){
let att = null;
if (pointAttribute.name === PointAttribute.POSITION_CARTESIAN.name) {
att = new Potree.InterleavedBufferAttribute("position", 12, 3, "FLOAT", false);
} else if (pointAttribute.name === PointAttribute.COLOR_PACKED.name) {
att = new Potree.InterleavedBufferAttribute("color", 4, 4, "UNSIGNED_BYTE", true);
} else if (pointAttribute.name === PointAttribute.INTENSITY.name) {
att = new Potree.InterleavedBufferAttribute("intensity", 4, 1, "FLOAT", false);
} else if (pointAttribute.name === PointAttribute.CLASSIFICATION.name) {
att = new Potree.InterleavedBufferAttribute("classification", 4, 1, "FLOAT", false);
} else if (pointAttribute.name === PointAttribute.RETURN_NUMBER.name) {
att = new Potree.InterleavedBufferAttribute("returnNumber", 4, 1, "FLOAT", false);
} else if (pointAttribute.name === PointAttribute.NUMBER_OF_RETURNS.name) {
att = new Potree.InterleavedBufferAttribute("numberOfReturns", 4, 1, "FLOAT", false);
} else if (pointAttribute.name === PointAttribute.SOURCE_ID.name) {
att = new Potree.InterleavedBufferAttribute("pointSourceID", 4, 1, "FLOAT", false);
} else if (pointAttribute.name === PointAttribute.NORMAL_SPHEREMAPPED.name) {
att = new Potree.InterleavedBufferAttribute("normal", 12, 3, "FLOAT", false);
} else if (pointAttribute.name === PointAttribute.NORMAL_OCT16.name) {
att = new Potree.InterleavedBufferAttribute("normal", 12, 3, "FLOAT", false);
} else if (pointAttribute.name === PointAttribute.NORMAL.name) {
att = new Potree.InterleavedBufferAttribute("normal", 12, 3, "FLOAT", false);
}
return att;
};

View File

@ -26,8 +26,14 @@ function loadPointCloud(viewer, data){
function loadMeasurement(viewer, data){
const duplicate = viewer.scene.measurements.find(measure => measure.uuid === data.uuid);
if(duplicate){
return;
}
const measure = new Measure();
measure.uuid = data.uuid;
measure.name = data.name;
measure.showDistances = data.showDistances;
measure.showCoordinates = data.showCoordinates;
@ -47,8 +53,15 @@ function loadMeasurement(viewer, data){
}
function loadVolume(viewer, data){
const duplicate = viewer.scene.volumes.find(volume => volume.uuid === data.uuid);
if(duplicate){
return;
}
let volume = new Potree[data.type];
volume.uuid = data.uuid;
volume.name = data.name;
volume.position.set(...data.position);
volume.rotation.set(...data.rotation);
@ -61,8 +74,14 @@ function loadVolume(viewer, data){
function loadCameraAnimation(viewer, data){
const duplicate = viewer.scene.cameraAnimations.find(a => a.uuid === data.uuid);
if(duplicate){
return;
}
const animation = new CameraAnimation(viewer);
animation.uuid = data.uuid;
animation.name = data.name;
animation.duration = data.duration;
animation.t = data.t;
@ -93,7 +112,6 @@ function loadSettings(viewer, data){
viewer.setBackground(data.background);
viewer.setMinNodeSize(data.minNodeSize);
viewer.setShowBoundingBox(data.showBoundingBoxes);
}
function loadView(viewer, view){
@ -102,11 +120,13 @@ function loadView(viewer, view){
}
function loadAnnotationItem(item){
const annotation = new Annotation({
position: item.position,
title: item.title,
});
annotation.uuid = item.uuid;
annotation.offset.set(...item.offset);
return annotation;
@ -120,9 +140,19 @@ function loadAnnotations(viewer, data){
const {items, hierarchy} = data;
const annotations = items.map(loadAnnotationItem);
const existingAnnotations = [];
viewer.scene.annotations.traverseDescendants(annotation => {
existingAnnotations.push(annotation);
});
for(const annotation of annotations){
for(const item of items){
const duplicate = existingAnnotations.find(ann => ann.uuid === item.uuid);
if(duplicate){
continue;
}
const annotation = loadAnnotationItem(item);
viewer.scene.annotations.add(annotation);
}
@ -130,16 +160,24 @@ function loadAnnotations(viewer, data){
function loadProfile(viewer, data){
// const {name, points} = data;
const {name, points} = data;
// let profile = new Potree.Profile();
// profile.name = "Elevation Profile";
// profile.setWidth(6)
// profile.addMarker(new THREE.Vector3(2561699.409, 1205164.310, 478.648));
// profile.addMarker(new THREE.Vector3(2561659.311, 1205242.101, 491.235));
const duplicate = viewer.scene.profiles.find(profile => profile.uuid === data.uuid);
if(duplicate){
return;
}
let profile = new Potree.Profile();
profile.name = name;
profile.uuid = data.uuid;
profile.setWidth(data.width);
for(const point of points){
profile.addMarker(new THREE.Vector3(...point));
}
// viewer.scene.addProfile(profile);
viewer.scene.addProfile(profile);
}
function loadClassification(viewer, data){
@ -153,8 +191,7 @@ function loadClassification(viewer, data){
}
export function loadSaveData(viewer, data){
export function loadProject(viewer, data){
if(data.type !== "Potree"){
console.error("not a valid Potree project");
@ -188,5 +225,4 @@ export function loadSaveData(viewer, data){
loadAnnotations(viewer, data.annotations);
loadClassification(viewer, data.classification);
}

View File

@ -194,7 +194,7 @@ export class PropertiesPanel{
<li>
<span>Gradient Scheme:</span>
<div id="elevation_gradient_scheme_selection" style="display: flex">
<div id="elevation_gradient_scheme_selection" style="display: flex; padding: 1em 0em">
</div>
</li>
</div>
@ -359,6 +359,11 @@ export class PropertiesPanel{
options.push(...attributes.map(a => a.name));
const intensityIndex = options.indexOf("intensity");
if(intensityIndex >= 0){
options.splice(intensityIndex + 1, 0, "intensity gradient");
}
options.push(
"elevation",
"color",
@ -386,7 +391,9 @@ export class PropertiesPanel{
const attribute = pointcloud.getAttribute(selectedValue);
if(attribute !== null && attribute.name === "intensity"){
const isIntensity = attribute !== null
&& (attribute.name === "intensity" || attribute.name === "intensity gradient");
if(isIntensity){
if(pointcloud.material.intensityRange[0] === Infinity){
pointcloud.material.intensityRange = attribute.range;
}
@ -458,7 +465,7 @@ export class PropertiesPanel{
blockColor.css('display', 'block');
} else if (selectedValue === 'intensity') {
blockIntensity.css('display', 'block');
} else if (selectedValue === 'Intensity Gradient') {
} else if (selectedValue === 'intensity gradient') {
blockIntensity.css('display', 'block');
} else if (selectedValue === "indices" ){
blockIndex.css('display', 'block');
@ -486,23 +493,21 @@ export class PropertiesPanel{
}
{
let schemes = [
{name: "SPECTRAL", icon: `${Potree.resourcePath}/icons/gradients_spectral.png`},
{name: "YELLOW_GREEN", icon: `${Potree.resourcePath}/icons/gradients_yellow_green.png`},
{name: "PLASMA", icon: `${Potree.resourcePath}/icons/gradients_plasma.png`},
{name: "GRAYSCALE", icon: `${Potree.resourcePath}/icons/gradients_grayscale.png`},
{name: "RAINBOW", icon: `${Potree.resourcePath}/icons/gradients_rainbow.png`},
];
const schemes = Object.keys(Potree.Gradients).map(name => ({name: name, values: Gradients[name]}));
let elSchemeContainer = panel.find("#elevation_gradient_scheme_selection");
for(let scheme of schemes){
let elScheme = $(`
<span style="flex-grow: 1;">
<img src="${scheme.icon}" class="button-icon" style="max-width: 100%" />
</span>
`);
const svg = Potree.Utils.createSvgGradient(scheme.values);
svg.setAttributeNS(null, "class", `button-icon`);
elScheme.append($(svg));
elScheme.click( () => {
material.gradient = Gradients[scheme.name];
});

View File

@ -16,6 +16,7 @@ function createPointcloudData(pointcloud) {
function createProfileData(profile){
const data = {
uuid: profile.uuid,
name: profile.name,
points: profile.points.map(p => p.toArray()),
height: profile.height,
@ -27,6 +28,7 @@ function createProfileData(profile){
function createVolumeData(volume){
const data = {
uuid: volume.uuid,
type: volume.constructor.name,
name: volume.name,
position: volume.position.toArray(),
@ -41,14 +43,6 @@ function createVolumeData(volume){
function createCameraAnimationData(animation){
// const controlPoints = [];
// for(const cp of animation.controlPoints){
// const cpdata = {};
// control
// }
const controlPoints = animation.controlPoints.map( cp => {
const cpdata = {
position: cp.position.toArray(),
@ -59,6 +53,7 @@ function createCameraAnimationData(animation){
});
const data = {
uuid: animation.uuid,
name: animation.name,
duration: animation.duration,
t: animation.t,
@ -71,7 +66,9 @@ function createCameraAnimationData(animation){
}
function createMeasurementData(measurement){
const data = {
uuid: measurement.uuid,
name: measurement.name,
points: measurement.points.map(p => p.position.toArray()),
showDistances: measurement.showDistances,
@ -87,7 +84,9 @@ function createMeasurementData(measurement){
}
function createAnnotationData(annotation){
const data = {
uuid: annotation.uuid,
title: annotation.title,
description: annotation.description,
position: annotation.position.toArray(),
@ -211,9 +210,6 @@ function createViewData(viewer){
}
function createClassificationData(viewer){
//const data = {};
const classifications = viewer.classifications;
const data = classifications;
@ -221,7 +217,7 @@ function createClassificationData(viewer){
return data;
}
export function createSaveData(viewer) {
export function saveProject(viewer) {
const scene = viewer.scene;

View File

@ -319,7 +319,7 @@ export class Sidebar{
let elDownloadPotree = elExport.find("img[name=potree_export_button]").parent();
elDownloadPotree.click( (event) => {
let data = Potree.createSaveData(this.viewer);
let data = Potree.saveProject(this.viewer);
let dataString = JSON.stringify(data, null, "\t")
let url = window.URL.createObjectURL(new Blob([dataString], {type: 'data:application/octet-stream'}));
@ -1334,14 +1334,22 @@ export class Sidebar{
() => { this.viewer.fitToScreen(); }
));
elNavigation.append(this.createToolIcon(
Potree.resourcePath + "/icons/navigation_cube.svg",
"[title]tt.navigation_cube_control",
() => {this.viewer.toggleNavigationCube()}
));
elNavigation.append(this.createToolIcon(
Potree.resourcePath + "/images/compas.svg",
"Compass",
() => {
const visible = !this.viewer.compass.isVisible();
this.viewer.compass.setVisible(visible);
}
));
elNavigation.append("<br>");

View File

@ -22,6 +22,7 @@ import {VolumeTool} from "../utils/VolumeTool.js";
import {InputHandler} from "../navigation/InputHandler.js";
import {NavigationCube} from "./NavigationCube.js";
import {Compass} from "../utils/Compass.js";
import {OrbitControls} from "../navigation/OrbitControls.js";
import {FirstPersonControls} from "../navigation/FirstPersonControls.js";
import {EarthControls} from "../navigation/EarthControls.js";
@ -93,20 +94,8 @@ export class Viewer extends EventDispatcher{
this.edlRadius = 1.4;
this.edlOpacity = 1.0;
this.useEDL = false;
this.description = "";
// this.classifications = {
// 0: { visible: true, name: 'never classified' , color: [0.5, 0.5, 0.5, 1.0] },
// 1: { visible: true, name: 'unclassified' , color: [0.5, 0.5, 0.5, 1.0] },
// 2: { visible: true, name: 'ground' , color: [0.63, 0.32, 0.18, 1.0] },
// 3: { visible: true, name: 'low vegetation' , color: [0.0, 1.0, 0.0, 1.0] },
// 4: { visible: true, name: 'medium vegetation' , color: [0.0, 0.8, 0.0, 1.0] },
// 5: { visible: true, name: 'high vegetation' , color: [0.0, 0.6, 0.0, 1.0] },
// 6: { visible: true, name: 'building' , color: [1.0, 0.66, 0.0, 1.0] },
// 7: { visible: true, name: 'low point(noise)' , color: [1.0, 0.0, 1.0, 1.0] },
// 8: { visible: true, name: 'key-point' , color: [1.0, 0.0, 0.0, 1.0] },
// 9: { visible: true, name: 'water' , color: [0.0, 0.0, 1.0, 1.0] },
// 12: { visible: true, name: 'overlap' , color: [1.0, 1.0, 0.0, 1.0] },
// };
this.classifications = ClassificationScheme.DEFAULT;
this.moveSpeed = 10;
@ -141,6 +130,7 @@ export class Viewer extends EventDispatcher{
this.clippingTool = null;
this.transformationTool = null;
this.navigationCube = null;
this.compass = null;
this.skybox = null;
this.clock = new THREE.Clock();
@ -201,6 +191,8 @@ export class Viewer extends EventDispatcher{
this.transformationTool = new TransformationTool(this);
this.navigationCube = new NavigationCube(this);
this.navigationCube.visible = false;
this.compass = new Compass(this);
this.createControls();
@ -395,7 +387,7 @@ export class Viewer extends EventDispatcher{
getBackground () {
return this.background;
};
}
setBackground(bg){
if (this.background === bg) {
@ -411,8 +403,15 @@ export class Viewer extends EventDispatcher{
}
setDescription (value) {
$('#potree_description')[0].innerHTML = value;
};
this.description = value;
$('#potree_description').html(value);
//$('#potree_description').text(value);
}
getDescription(){
return this.description;
}
setShowBoundingBox (value) {
if (this.showBoundingBox !== value) {
@ -904,6 +903,34 @@ export class Viewer extends EventDispatcher{
pointcloud.material.useOrthographicCamera = mode == CameraMode.ORTHOGRAPHIC;
}
}
getProjection(){
const pointcloud = this.scene.pointclouds[0];
if(pointcloud){
return pointcloud.projection;
}else{
return null;
}
}
async loadProject(url){
const response = await fetch(url);
const json = await response.json();
// const json = JSON.parse(text);
if(json.type === "Potree"){
Potree.loadProject(viewer, json);
}
Potree.loadProject(this, url);
}
saveProject(){
return Potree.saveProject(this);
}
loadSettingsFromURL(){
if(Utils.getParameterByName("pointSize")){
@ -1195,7 +1222,7 @@ export class Viewer extends EventDispatcher{
const json = JSON.parse(text);
if(json.type === "Potree"){
Potree.loadSaveData(viewer, json);
Potree.loadProject(viewer, json);
}
}catch(e){
console.error("failed to parse the dropped file as JSON");

View File

@ -1,38 +1,3 @@
// let pointFormatReaders = {
// 0: function(dv) {
// return {
// "position": [ dv.getInt32(0, true), dv.getInt32(4, true), dv.getInt32(8, true)],
// "intensity": dv.getUint16(12, true),
// "classification": dv.getUint8(16, true)
// };
// },
// 1: function(dv) {
// return {
// "position": [ dv.getInt32(0, true), dv.getInt32(4, true), dv.getInt32(8, true)],
// "intensity": dv.getUint16(12, true),
// "classification": dv.getUint8(16, true)
// };
// },
// 2: function(dv) {
// return {
// "position": [ dv.getInt32(0, true), dv.getInt32(4, true), dv.getInt32(8, true)],
// "intensity": dv.getUint16(12, true),
// "classification": dv.getUint8(16, true),
// "color": [dv.getUint16(20, true), dv.getUint16(22, true), dv.getUint16(24, true)]
// };
// },
// 3: function(dv) {
// return {
// "position": [ dv.getInt32(0, true), dv.getInt32(4, true), dv.getInt32(8, true)],
// "intensity": dv.getUint16(12, true),
// "classification": dv.getUint8(16, true),
// "color": [dv.getUint16(28, true), dv.getUint16(30, true), dv.getUint16(32, true)]
// };
// }
// };
//
//
function readUsingTempArrays(event) {