#
luxiaotao1123
2021-12-17 c1a770f7d71370878bc3d28f5248881b698d7718
#
4个文件已修改
23 ■■■■ 已修改文件
static/js/app.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/object/CrnTask.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/object/StoreCrn.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/object/StoreShelf.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/app.js
@@ -192,7 +192,7 @@
                initStore();
                if (Store3DData !== null) {
                    for(var group of Store3DData.data.store.groups) {
                        let crn = new StoreCrn(group.crn, object);
                        new StoreCrn(group.crn, object);
                        for (var line of group.lines) {
                            let shelf = new StoreShelf(line);
                            object.addObject(shelf);
static/js/object/CrnTask.js
@@ -134,14 +134,12 @@
                    ])
                })
            }
            curves.map((value, index) => {
                console.log(value.part + " --> " + JSON.stringify(value.route.points))
            });
            curves[0].start = true;
            console.log(curves);
            // new Route();    // load
            // console.log(that.curve);
            // console.log("pre" + JSON.stringify(that.prePosition));
            // console.log(JSON.stringify(that.position));
        }
    }
@@ -161,7 +159,6 @@
                        }
                    } else {
                        let point = curves[i].route.getPoint(curves[i].progress);
                        console.log(point)
                        if ( point && point.x ) {
                            switch (curves[i].part) {
                                case 'body':
static/js/object/StoreCrn.js
@@ -5,7 +5,7 @@
    this.crnLoadLength = option.crnLoad.length||60;//库位长度
    this.crnLoadWidth = option.crnLoad.width||60;//库位宽
    this.crnLoadHeight = option.crnLoad.height||40;//库位高
    this.crnForkLength = option.crnFork.length||80;//库位长度
    this.crnForkLength = option.crnFork.length||50;//库位长度
    this.crnForkWidth = option.crnFork.width||20;//库位宽
    this.crnForkHeight = option.crnFork.height||30;//库位高
static/js/object/StoreShelf.js
@@ -13,7 +13,11 @@
    this.rackWidth = 3;//支架的宽度,默认设定为3
    // 材质
    let shelfMat = new THREE.MeshLambertMaterial({color:0x175EC0});//定义支架和托盘的材质
    let shelfMat = new THREE.MeshLambertMaterial({
        color: 0x175EC0,
        transparent: true,
        opacity: .2
    });//定义支架和托盘的材质
    //定义一个组合体
    let group = new THREE.Group();