Loading src/main/resources/templates/js/pointCloud.js +7 −1 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
src/main/resources/templates/js/pointCloud.js +7 −1 Original line number Diff line number Diff line Loading @@ -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); Loading