Clean up of unrequired code.

This commit is contained in:
Efruz Yıldırır 2023-07-30 19:49:22 +03:00
parent a4dd8490eb
commit d56fc46366
4 changed files with 0 additions and 18 deletions

View file

@ -116,7 +116,6 @@ window.ThreeD = (function () {
const setResolutionScale = function (scale) {
options.resolutionScale = scale;
console.log("New res:",scale);
redraw();
};
@ -169,7 +168,6 @@ window.ThreeD = (function () {
};
const toggle3dSubdivision = function(){
console.log("toggle 3d subdivision");
options.subdivide = !options.subdivide;
redraw();
}
@ -505,8 +503,6 @@ window.ThreeD = (function () {
}
geometry.setAttribute('position',vertices);
geometry.computeVertexNormals();
//This takes too long
if (mesh) scene.remove(mesh);
if(options.subdivide){
const subdivideParams = {

View file

@ -1096,12 +1096,10 @@ function toggle3dOptions() {
options3dGlobeResolution.value = ThreeD.options.resolution;
options3dSunColor.value = ThreeD.options.sunColor;
options3dSubdivide.value = ThreeD.options.subdivide;
console.log("options3dSunColor.value =",ThreeD.options.sunColor);
}
function changeHeightScale() {
options3dScaleRange.value = options3dScaleNumber.value = this.value;
console.log(this);
ThreeD.setScale(+this.value);
}
@ -1137,7 +1135,6 @@ function toggle3dOptions() {
}
function toggle3dSubdivision(){
console.log(options.subdivide);
ThreeD.toggle3dSubdivision();
}