From c337cc2f63bfa52cac10bf56fdb82e9695e9c64e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 09 十二月 2021 16:02:45 +0800
Subject: [PATCH] #
---
static/js/object/StoreShelf0.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/static/js/object/StoreShelf0.js b/static/js/object/StoreShelf0.js
index 8426485..c30aae0 100644
--- a/static/js/object/StoreShelf0.js
+++ b/static/js/object/StoreShelf0.js
@@ -30,21 +30,21 @@
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+this.rackLengh, 2, this.binWidth+this.rackWidth);
+ 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;
//宸︿晶鏀灦鏌辩殑X杞村畾浣�
- let leftPositionX=this.positionX-this.binLength/2-this.rackLengh/2;
+ let leftPositionX=this.positionX-this.binLength/2;
//鍙充晶鏀灦鏌辩殑X杞村畾浣�
- let rightPositionX=this.positionX+this.binLength/2-this.rackLengh/2;
+ let rightPositionX=this.positionX+this.binLength/2 - this.rackLengh; // 缂╄繘鏀灦闀垮害
// 鍒濆鍖栨敮鏋舵ā鍨�
for(let i=0;i<=this.binZNum;i++) {
let leftRack = rackObject.clone();
- let positionZ = this.positionZ - shelfWidth/2 + i*this.binWidth + this.rackWidth/2;
+ let positionZ = this.positionZ - shelfWidth/2 + i*this.binWidth;
leftRack.position.set(leftPositionX,positionY,positionZ);
leftRack.updateMatrix();
group.add(leftRack);
@@ -59,7 +59,7 @@
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 - shelfWidth/2 + i * this.binWidth + this.binWidth / 2+this.rackWidth/2;
+ let positionZ= this.positionZ - shelfWidth/2 + i * this.binWidth + this.binWidth/2;
plane.position.set(this.positionX-this.rackLengh/2,positionY,positionZ);
plane.updateMatrix();
group.add(plane);
--
Gitblit v1.9.1