From 776f00336ed11e748c1da7d0d64ca2ac944359e3 Mon Sep 17 00:00:00 2001 From: Sven Schneider <sven.schneider@hft-stuttgart.de> Date: Thu, 9 Jun 2022 11:08:10 +0200 Subject: [PATCH] uploaded siimualted point cloud from BHT to cesium Ion and added the assett in Testgebiete.js , also updated Testgebiete.html with a switch to toggle PC on/off --- public/.gitignore | 1 + public/Testgebiete.html | 8 ++++++++ public/Testgebiete.js | 31 +++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) diff --git a/public/.gitignore b/public/.gitignore index 3ee6bcb..0fbe4b6 100644 --- a/public/.gitignore +++ b/public/.gitignore @@ -3,3 +3,4 @@ npm-debug.log .DS_Store /*.env /.vscode +desktop.ini \ No newline at end of file diff --git a/public/Testgebiete.html b/public/Testgebiete.html index 1b51054..0edab92 100644 --- a/public/Testgebiete.html +++ b/public/Testgebiete.html @@ -157,6 +157,14 @@ </label> </td> </tr> + <tr> + <td style=" padding-bottom: 10px;"><strong>BHT Point Cloud</strong> </td> + <td style=" padding-bottom: 10px; padding-left: 15px;"><label class="switch"> + <input type="checkbox" onclick="toggleBHTpointcloud()" unchecked> + <span class="slider round"></span> + </label> + </td> + </tr> </tbody> </table> diff --git a/public/Testgebiete.js b/public/Testgebiete.js index f627290..09e81cf 100644 --- a/public/Testgebiete.js +++ b/public/Testgebiete.js @@ -194,6 +194,27 @@ var BHT_Tileset = viewer.scene.primitives.add( }); +//////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////// +// Beuth HS PointCloud Tileset. Erstellt von PCT, virtuelle Befliegung (Sim) +//////////////////////////////////////////////////////////////////////////////////// + +var BHT_PC = viewer.scene.primitives.add( + new Cesium.Cesium3DTileset({ + url: Cesium.IonResource.fromAssetId(1112349), + show: false, + }) +); + +BHT_PC.style = new Cesium.Cesium3DTileStyle({ + // color: "color('blue',0.3)", + // color: "color('red')" , + pointSize: 2 +}); + +//////////////////////////////////////////////// + + //////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////// // HFT PointCloud Tileset. Von Eberhard Guelch, nur monochrome @@ -261,6 +282,16 @@ hftInnehofRGB_PC.style = new Cesium.Cesium3DTileStyle({ ////////////////////////// Control Pointclouds and Tileset with switches +var toggleBHTpointcloud = function () { + if (BHT_PC.show === true) { + BHT_PC.show = false + } + else { + BHT_PC.show = true + } +} + + var toggleLargePC = function () { if (hftLargePC.show === true) { hftLargePC.show = false -- GitLab