From 8750e0683cbe10c89972f24c80681d0daa128a2e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 28 六月 2022 09:31:38 +0800
Subject: [PATCH] #

---
 static/js/object/StoreShelf.js |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/static/js/object/StoreShelf.js b/static/js/object/StoreShelf.js
index b1761e0..2e449c4 100644
--- a/static/js/object/StoreShelf.js
+++ b/static/js/object/StoreShelf.js
@@ -21,19 +21,13 @@
         transparent: false,
         opacity: 0.7
     });
-    //瀹氫箟涓�涓粍鍚堜綋
-    // let group = new THREE.Group();
 
     // 璐ф灦鎬婚珮
     let shelfHeight=this.bottomHight+(this.binYNum)*this.binHeight;
-    // 璐ф灦鎬诲
-    let shelfWidth=this.binZNum*this.binWidth;
     // 鏀灦妯″瀷 + 鏉愯川
     let rackBoxGeometry=new THREE.BoxGeometry(this.rackLengh,shelfHeight,this.rackWidth);
-    let rackObject=new THREE.Mesh(rackBoxGeometry, shelfMat, 0);
     // 鎵樻澘妯″瀷 + 鏉愯川
     let planeBoxGeometry = new THREE.BoxGeometry(this.binLength, 2, this.binWidth+this.rackWidth);  // 瑕嗙洊澶氫竴鏍规敮鏋跺搴�
-    let planeObject=new THREE.Mesh(planeBoxGeometry, shelfMat, 0);
 
     // Y杞村畾浣�
     let positionY = this.positionY + shelfHeight / 2;
@@ -47,17 +41,6 @@
     let transform = new THREE.Object3D();
     // 鍒濆鍖栨敮鏋舵ā鍨�
     for(let i=0;i<=this.binZNum;i++) {
-        // let leftRack = rackObject.clone();
-        // let positionZ = - ( this.positionZ + i*this.binWidth );
-        // leftRack.position.set(leftPositionX,positionY,positionZ);
-        // leftRack.updateMatrix();
-        // group.add(leftRack);
-        //
-        // let rightRack = rackObject.clone();
-        // rightRack.position.set(rightPositionX,positionY,positionZ);
-        // rightRack.updateMatrix();
-        // group.add(rightRack);
-
         let positionZ = - ( this.positionZ + i*this.binWidth );
         // -----
         let leftClone = rackBoxGeometry.clone();
@@ -75,13 +58,6 @@
     // 鍒濆鍖栨墭鏉挎ā鍨�
     for(let i = 0;i < this.binZNum;i++) {
         for (let j = 0;j <= this.binYNum;j++) {
-            // let plane = planeObject.clone();
-            // let positionY= this.positionY + this.bottomHight + j*this.binHeight + 1;
-            // let positionZ= - ( this.positionZ + i * this.binWidth + this.binWidth/2 );
-            // plane.position.set(this.positionX-this.rackLengh/2,positionY,positionZ);
-            // plane.updateMatrix();
-            // group.add(plane);
-
             let clone = planeBoxGeometry.clone();
             let positionY= this.positionY + this.bottomHight + j*this.binHeight + 1;
             let positionZ= - ( this.positionZ + i * this.binWidth + this.binWidth/2 );

--
Gitblit v1.9.1