From 9f9caa7f80efd00bda9e445973b30a4d60eaed12 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期六, 11 十二月 2021 16:06:35 +0800
Subject: [PATCH] #

---
 static/js/app.js |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/static/js/app.js b/static/js/app.js
index 5b4915f..6bede19 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -29,6 +29,7 @@
 			this.initLight();
 			this.initFloor();
 			this.initModel();
+			this.initModel0();
 			this.initStoreObjects(this);
 		}
 		this.animate = function () {
@@ -56,7 +57,7 @@
 			// this.camera.position.z = 600;
 			// //鐩告満鐨勬湞鍚�
 			// this.camera.lookAt(0, 0, 0);
-			this.camera.position.set( - 550, 2070, 4550 );
+			this.camera.position.set( - 350, 1070, 1550 );
 			this.camera.lookAt( this.scene.position );
 			//灏嗙浉鏈烘斁鍒板満鏅腑
 			this.scene.add(this.camera);
@@ -185,6 +186,7 @@
 				initStore();
 				if (Store3DData !== null) {
 					for(var group of Store3DData.data.store.groups) {
+						let crn = new StoreCrn(group.crn, object);
 						for (var line of group.lines) {
 							let shelf = new StoreShelf(line);
 							object.addObject(shelf);
@@ -258,6 +260,9 @@
 				}
 			}
 		}
+		this.initModel0 = function () {
+
+		}
 		this.getExistedGoodType=function(state){
 			for (let i=0;i<this.goodTypes.length;i++) {
 				let type=this.goodTypes[i];
@@ -301,11 +306,11 @@
 						.setMaterials( materials )
 						.setPath( '../static/model/obj/' )
 						.load( '璐у弶.obj', function ( object ) {
-							// object.position.z = -500;
-							// object.position.x = -2060;
-							object.position.z = 0;
-							object.position.x = 0;
-							object.position.y = 0;
+							object.position.z = -500;
+							object.position.x = -2060;
+							// object.position.z = 0;
+							// object.position.x = 0;
+							// object.position.y = 0;
 							object.scale.set(0.025, 0.025, 0.025);
 							object.rotateY(- Math.PI / 2)
 							that.addObject( object );

--
Gitblit v1.9.1