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 = {