Commit d3a68c7d authored by Samuel John Gulinello's avatar Samuel John Gulinello
Browse files

Update pointCloud.js

parent ab73c94d
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -4,6 +4,12 @@ async function drawPointCloud(object) {
    .then(responseText => {
      let pointCloudData = parseJSONToPointCloud(responseText, object);

      // Remove existing canvas element if any
      let existingCanvas = document.querySelector('canvas');
      if (existingCanvas) {
        existingCanvas.parentNode.removeChild(existingCanvas);
      }

      // Use three.js to render the point cloud
      let scene = new THREE.Scene();
      let camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);