From d477b10510e419645b1670520eadeb80e5a51a71 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 23 十二月 2021 14:46:12 +0800
Subject: [PATCH] #

---
 static/js/object/StoreConvey.js |   34 +++++++++-------------------------
 1 files changed, 9 insertions(+), 25 deletions(-)

diff --git a/static/js/object/StoreConvey.js b/static/js/object/StoreConvey.js
index 88aade4..f01560d 100644
--- a/static/js/object/StoreConvey.js
+++ b/static/js/object/StoreConvey.js
@@ -2,9 +2,9 @@
 import {OBJLoader} from "../lib/OBJLoader.js";
 import {Color} from "../three.module.js";
 
-const xOffset = -1658;
-const yOffset = -553;
-const zOffset = -1800;
+const xOffset = 35;
+const yOffset = 44;
+const zOffset = 28;
 
 const xOffset0 = -1407;
 const yOffset0 = 0;
@@ -29,7 +29,7 @@
                     chain.traverse (function (child) {
                         if (child instanceof THREE.Mesh) {
                             child.material = new THREE.MeshLambertMaterial({
-                                color: 0xF5F5F5
+                                color: 0xAAAAAA
                             });
                         }
                     });
@@ -55,7 +55,6 @@
                             offset = 90;
                         }
                         clone.position.x = xOffset0 + 56 + offset + Math.floor(i/2)*230;
-                        console.log(clone.position.x)
                         clone.position.y = yOffset0;
                         clone.position.z = zOffset0 + 39 + 82;
                         object.addObject( clone );
@@ -69,23 +68,8 @@
                             offset = 90;
                         }
                         clone.position.x = xOffset0 + 56 + offset + Math.floor(i/2)*230;
-                        console.log(clone.position.x)
                         clone.position.y = yOffset0 + 310;
                         clone.position.z = zOffset0 + 39;
-                        object.addObject( clone );
-                    }
-
-                    for (let i = 0; i<24; i++) {
-                        let clone = chain.clone();
-                        // roller.name = option.crnNo + "-body";
-                        let offset = 0;
-                        if (i % 2 === 0) {
-                            offset = 90;
-                        }
-                        clone.position.x = xOffset0 + 56 + offset + Math.floor(i/2)*230;
-                        console.log(clone.position.x)
-                        clone.position.y = yOffset0 + 310;
-                        clone.position.z = zOffset0 + 39 + 82;
                         object.addObject( clone );
                     }
 
@@ -105,17 +89,17 @@
                     roller.traverse (function (child) {
                         if (child instanceof THREE.Mesh) {
                             child.material = new THREE.MeshLambertMaterial({
-                                color: 0xCD6839
+                                color: 0xAAAAAA
                             });
                         }
                     });
 
-                    roller.scale.set(1000, 1000, 1000);
-                    roller.rotateY(- Math.PI / 2);
+                    roller.scale.set(55, 45, 55);
+                    // roller.rotateY(- Math.PI / 2);
                     // roller.name = option.crnNo + "-body";
-                    roller.position.x = xOffset;
+                    roller.position.x = xOffset + 60;
                     roller.position.y = yOffset;
-                    roller.position.z = zOffset;
+                    roller.position.z = zOffset + 140;
                     // object.addObject( roller );
 
     			}, null, null );

--
Gitblit v1.9.1