﻿//添加模型 
/*
type:类型（见TypeConfig.json文件）
name:名称（命名规则）名称+桩号 ，所有特殊符号用下划线替换
position:在三维中的位置，可通过任意添加一个位置，然后调整到合适位置，格式{x:0,y:0,z:0}
scale:模型的缩放，格式{x:1,y:1,z:1} x y z的值大于0
rotation:模型旋转，格式{x:0,y:0,z:0} x y z的值取值范围是0到Math.PI*2
callBack:添加成功后回调
*/
ModelBussiness.prototype.addModel = function (type, name, position, scale, rotation, callBack) {
    var _this = this;
    var json = _this.createModel(type, name, position, scale, rotation);
    WT3DObj.commonFunc.loadModelsByJsons([json], { x: 0, y: 0, z: 0 }, { x: 0, y: 0, z: 0 }, true, true, function () {
        if (callBack) {
            callBack();
        }
    });
}
ModelBussiness.prototype.createModel = function (type, name, position, scale, rotation) {
    var modelJson = "";
    switch (type) {
        case "FXD"://风向袋
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "GroupObj", "scale": { "x": 1, "y": 1, "z": 1 }, "position": { "x": 0, "y": 795, "z": 27.605 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN0", "objType": "torus", "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/eee.png", "opacity": 1 }, "segments": 64, "radialSegments": 8, "arc": 6.283185307179586, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "scale": { "x": 1, "y": 1, "z": 1 }, "position": { "x": 0, "y": 0, "z": 0 }, "radius": 30, "tuberadius": 1, "showSortNub": 10, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "phiLength": 6.283185307179586, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN1", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 0 }, "points": [{ "x": 30, "y": 0, "z": 0 }, { "x": 30, "y": 20, "z": 0 }, { "x": 26, "y": 60, "z": 0 }], "style": { "skinColor": 14024704, "imgurl": "../img/3dImg/greenHourse.png", "side": 2, "opacity": 1 }, "segments": 2, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948963 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN2", "objType": "Lathe", "position": { "x": 0, "y": -9.952, "z": 134.963 }, "points": [{ "x": 20, "y": 0, "z": 0 }, { "x": 16, "y": 40, "z": 0 }, { "x": 14, "y": 45, "z": 0 }, { "x": 10, "y": 48, "z": 0 }, { "x": 0, "y": 50, "z": 0 }], "style": { "skinColor": 14024704, "imgurl": "../img/3dImg/greenHourse.png", "side": 2, "opacity": 1 }, "segments": 4, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.8325957166894158 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN3", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 18.284 }, "points": [{ "x": 30.5, "y": 0, "z": 0 }, { "x": 30.5, "y": 2, "z": 0 }], "style": { "skinColor": 16777215, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN4", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 37.95 }, "points": [{ "x": 29, "y": 0, "z": 0 }, { "x": 28, "y": 2, "z": 0 }], "style": { "skinColor": 16777215, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN5", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 58.831 }, "points": [{ "x": 26.5, "y": 0, "z": 0 }, { "x": 26, "y": 2, "z": 0 }], "style": { "skinColor": 16777215, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN6", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 59.093 }, "points": [{ "x": 26, "y": 0, "z": 0 }, { "x": 24, "y": 40, "z": 0 }], "style": { "skinColor": 14024704, "imgurl": "../img/3dImg/greenHourse.png", "repeatx": true, "width": 1, "repeaty": true, "height": 0.5, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.6580627891411337 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN7", "objType": "Lathe", "position": { "x": 0, "y": -3.211, "z": 96.987 }, "points": [{ "x": 24, "y": 0, "z": 0 }, { "x": 20, "y": 40, "z": 0 }], "style": { "skinColor": 14024704, "imgurl": "../img/3dImg/greenHourse.png", "repeatx": true, "width": 1, "repeaty": true, "height": 0.5, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.7453292569354542 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN8", "objType": "Lathe", "position": { "x": 0, "y": -1.687, "z": 79.849 }, "points": [{ "x": 25.5, "y": 0, "z": 0 }, { "x": 25, "y": 2, "z": 0 }], "style": { "skinColor": 16777215, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.6580627893946132 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN9", "objType": "Lathe", "position": { "x": 0, "y": -3.364, "z": 99.02 }, "points": [{ "x": 25, "y": 0, "z": 0 }, { "x": 24.5, "y": 2, "z": 0 }], "style": { "skinColor": 16777215, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.6580627893946132 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN10", "objType": "Lathe", "position": { "x": 0, "y": -6.575, "z": 118.041 }, "points": [{ "x": 22.5, "y": 0, "z": 0 }, { "x": 22, "y": 2, "z": 0 }], "style": { "skinColor": 16777215, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.7453292519943295 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN11", "objType": "Lathe", "position": { "x": 0, "y": -9.886, "z": 135.558 }, "points": [{ "x": 20.5, "y": 0, "z": 0 }, { "x": 20, "y": 2, "z": 0 }], "style": { "skinColor": 16777215, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.7453292519943295 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN12", "objType": "Lathe", "position": { "x": 0, "y": -15.692, "z": 156.843 }, "points": [{ "x": 18, "y": 0, "z": 0 }, { "x": 17.5, "y": 2, "z": 0 }], "style": { "skinColor": 16777215, "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.8325957166894158 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN13", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 30, "y": 0, "z": -30 }, { "x": 60, "y": 0, "z": 0 }], "position": { "x": -30, "y": 0, "z": 0 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 10395294, "opacity": 1 }, "segments": 2, "radialSegments": 2, "closed": false, "radius": 1, "showSortNub": 18, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN14", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": -30, "z": -30 }, { "x": 0, "y": -60, "z": 0 }], "position": { "x": 0, "y": 30, "z": 0 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 10395294, "opacity": 1 }, "segments": 2, "radialSegments": 2, "closed": false, "radius": 1, "showSortNub": 18, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 0 }, "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 3, "y": 0, "z": 0 }, { "x": 3, "y": 800, "z": 0 }, { "x": 0, "y": 800, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/rack_inside2.jpg", "side": 2, "opacity": 1 }, "segments": 3, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 20, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 13, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
            }
            break;
        case "QXG"://气象仪
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "Lathe", "position": { "x": 0, "y": -119.325, "z": 0 }, "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 15, "y": 0, "z": 0 }, { "x": 15, "y": 40, "z": 0 }, { "x": 30, "y": 40, "z": 0 }, { "x": 30, "y": 45, "z": 0 }], "style": { "skinColor": 12434877, "imgurl": "../img/3dImg/rack_inside.jpg", "side": 2, "opacity": 1 }, "segments": 4, "radialSegments": 8, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "Lathe", "position": { "x": 0, "y": 84.598, "z": 0 }, "points": [{ "x": 8, "y": -180, "z": 0 }, { "x": 8, "y": 180, "z": 0 }], "style": { "skinColor": 12434877, "imgurl": "../img/3dImg/rack_inside.jpg", "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 8, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": -0.39460149058339794 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN2", "objType": "cube2", "length": 30, "width": 40, "height": 50, "x": 70.099, "y": 71.541, "z": 177.996, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_fore": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_behind": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_left": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_right": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" } } }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "thick": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN3", "objType": "cube2", "length": 30, "width": 40, "height": 50, "x": -64.693, "y": 70.497, "z": -166.306, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_fore": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_behind": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_left": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_right": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" } } }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "thick": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN4", "objType": "ExtrudeGeometry", "position": { "x": 74.916, "y": 61.682, "z": 139.772 }, "style": { "skinColor": 12434877, "imgurl": "../img/3dImg/rack_inside.jpg", "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 0, "y": 20, "type": "nomal" }, { "x": 10, "y": 20, "type": "nomal" }, { "x": 10, "y": 10, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "extrudeSettings": { "amount": 8, "curveSegments": 1, "steps": 5, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 5, "extrudePathPoints": [] }, "showSortNub": 11, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": -1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN5", "objType": "ExtrudeGeometry", "position": { "x": -65.954, "y": 61.682, "z": -128.981 }, "style": { "skinColor": 12434877, "imgurl": "../img/3dImg/rack_inside.jpg", "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 0, "y": 20, "type": "nomal" }, { "x": 10, "y": 20, "type": "nomal" }, { "x": 10, "y": 10, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "extrudeSettings": { "amount": 8, "curveSegments": 1, "steps": 5, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 5, "extrudePathPoints": [] }, "showSortNub": 11, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN6", "objType": "cube2", "length": 120, "width": 200, "height": 150, "x": 0, "y": 0, "z": 0, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_fore": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_behind": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_left": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" }, "skin_right": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg" } } }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "thick": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 6 };
            }
            break;
        case "YKSXJ"://遥控摄像机
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "Lathe", "position": { "x": -4.81, "y": -148.729, "z": 7.596 }, "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 50, "y": 0, "z": 0 }, { "x": 20, "y": 8, "z": 0 }, { "x": 40, "y": 50, "z": 0 }, { "x": 40, "y": 60, "z": 0 }, { "x": 0, "y": 60, "z": null }], "style": { "skinColor": 14277081, "imgurl": "../img/3dImg/outside_lightmap.jpg", "side": 2, "opacity": 1 }, "segments": 5, "radialSegments": 12, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 17, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "ExtrudeGeometry", "position": { "x": -28.635, "y": -68.313, "z": 1.137 }, "style": { "skinColor": 13619151, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.0001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1.25, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 5, "y": 0, "type": "nomal" }, { "x": 10, "y": 0, "type": "bezier3" }, { "x": 15, "y": 30, "type": "bezier3" }, { "x": 15, "y": 60, "type": "bezier3" }, { "x": 0, "y": 60, "type": "absarc", "radius": 15, "startAngle": 0, "endAngle": 3.141592653589793, "Clockwise": false }, { "x": -15, "y": 60, "type": "bezier3" }, { "x": -30, "y": 50, "type": "bezier3" }, { "x": -10, "y": 0, "type": "bezier3" }], "holes": [] }, "extrudeSettings": { "amount": 50, "curveSegments": 4, "steps": 1, "bevelEnabled": false, "bevelThickness": 20, "bevelSize": 20, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN2", "objType": "GroupObj", "scale": { "x": 1, "y": 1, "z": 1 }, "position": { "x": -44.165, "y": 14.423, "z": -139.657 }, "rotation": [{ "direction": "x", "degree": -0.12060225131280818 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "childrens": [{ "show": true, "uuid": "", "name": "gudingshexiangji3_6OBJCREN0", "objType": "ExtrudeGeometry", "position": { "x": 54.819, "y": 2.894, "z": 251.879 }, "style": { "skinColor": 14078157, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.0001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1.65, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 5, "type": "nomal" }, { "x": 40, "y": 5, "type": "nomal" }, { "x": 45, "y": 10, "type": "nomal" }, { "x": 50, "y": 10, "type": "nomal" }, { "x": 50, "y": 80, "type": "nomal" }, { "x": -30, "y": 80, "type": "nomal" }, { "x": -30, "y": 10, "type": "nomal" }, { "x": -25, "y": 10, "type": "nomal" }, { "x": -20, "y": 5, "type": "nomal" }], "holes": [] }, "extrudeSettings": { "amount": 250, "curveSegments": 1, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -3.141592653589793 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": -3.141592653589793 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "gudingshexiangji3_6OBJCREN1", "objType": "ExtrudeGeometry", "position": { "x": 88.725, "y": 2.771, "z": 114.089 }, "style": { "skinColor": 13619151, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.0001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1.65, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 60, "y": 0, "type": "nomal" }, { "x": 60, "y": 50, "type": "nomal" }, { "x": 0, "y": 50, "type": "nomal" }], "holes": [] }, "extrudeSettings": { "amount": 2, "curveSegments": 1, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": -3.141592653589793 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "gudingshexiangji3_6OBJCREN2", "objType": "ExtrudeGeometry", "position": { "x": -10.96, "y": 4.567, "z": 133.821 }, "style": { "skinColor": 13619151, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.0001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1.65, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 10, "y": 0, "type": "nomal" }, { "x": 10, "y": 0, "type": "bezier3" }, { "x": 0, "y": 50, "type": "bezier3" }, { "x": 5, "y": 80, "type": "bezier3" }, { "x": 0, "y": 80, "type": "absarc", "radius": 5, "startAngle": 0, "endAngle": 3.141592653589793, "Clockwise": false }, { "x": -5, "y": 80, "type": "bezier3" }, { "x": 0, "y": 50, "type": "bezier3" }, { "x": -10, "y": 0, "type": "bezier3" }], "holes": [] }, "extrudeSettings": { "amount": 2, "curveSegments": 4, "steps": 1, "bevelEnabled": false, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 3.141592653589793 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "gudingshexiangji3_6OBJCREN3", "objType": "ExtrudeGeometry", "position": { "x": 87.849, "y": 5.113, "z": 141.049 }, "style": { "skinColor": 13619151, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.0001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1.65, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 10, "y": 0, "type": "nomal" }, { "x": 10, "y": 0, "type": "bezier3" }, { "x": 0, "y": 50, "type": "bezier3" }, { "x": 5, "y": 80, "type": "bezier3" }, { "x": 0, "y": 80, "type": "absarc", "radius": 5, "startAngle": 0, "endAngle": 3.141592653589793, "Clockwise": false }, { "x": -5, "y": 80, "type": "bezier3" }, { "x": 0, "y": 50, "type": "bezier3" }, { "x": -10, "y": 0, "type": "bezier3" }], "holes": [] }, "extrudeSettings": { "amount": 2, "curveSegments": 4, "steps": 1, "bevelEnabled": false, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 3.141592653589793 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "gudingshexiangji3_6OBJCREN4", "objType": "ShapeGeometry", "position": { "x": -32.512, "y": 86.93, "z": 253.187 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.001, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 50, "y": 0, "type": "nomal" }, { "x": 50, "y": 250, "type": "nomal" }, { "x": 45, "y": 250, "type": "nomal" }, { "x": 10, "y": 280, "type": "nomal" }, { "x": 0, "y": 280, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948963 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "gudingshexiangji3_6OBJCREN5", "objType": "ShapeGeometry", "position": { "x": -32.297, "y": 86.51, "z": 253.187 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.007, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 140, "y": 0, "type": "nomal" }, { "x": 140, "y": 280, "type": "nomal" }, { "x": 0, "y": 280, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948963 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "gudingshexiangji3_6OBJCREN6", "objType": "ShapeGeometry", "position": { "x": 107.28, "y": 86.93, "z": 253.187 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.01, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 50, "y": 0, "type": "nomal" }, { "x": 50, "y": 250, "type": "nomal" }, { "x": 45, "y": 250, "type": "nomal" }, { "x": 10, "y": 280, "type": "nomal" }, { "x": 0, "y": 280, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "name": "gudingshexiangji3_6OBJCREN7", "objType": "cylinder", "radiusTop": 25, "radiusBottom": 20, "height": 10, "segmentsX": 16, "segmentsY": 0, "openEnded": false, "position": { "x": 16.909, "y": 46.007, "z": 1.254 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16776960, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/camera.png" }, "skin_down": { "skinColor": 1841947, "side": 1, "opacity": 1 }, "skin_side": { "skinColor": 4538946, "opacity": 1 } } }, "showSortNub": 10, "show": true, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "name": "gudingshexiangji3_6OBJCREN8", "objType": "cylinder", "radiusTop": 15, "radiusBottom": 10, "height": 10, "segmentsX": 16, "segmentsY": 0, "openEnded": false, "position": { "x": 74.328, "y": 40.085, "z": 1.254 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16776960, "skin": { "skin_up": { "skinColor": 9539985, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/camera.png" }, "skin_down": { "skinColor": 1841947, "side": 1, "opacity": 1 }, "skin_side": { "skinColor": 4538946, "opacity": 1 } } }, "showSortNub": 10, "show": true, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 6 };
            }
            break;
        case "WBJCY"://微波车辆检测器
            {
                modelJSon = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "GroupObj", "scale": { "x": 1, "y": 1, "z": 1.4 }, "position": { "x": 0, "y": -1.719, "z": 0 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 0 }, "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 20, "y": 0, "z": 0 }, { "x": 20, "y": 2, "z": 0 }, { "x": 22, "y": 2, "z": 0 }, { "x": 22, "y": 4, "z": 0 }, { "x": 20, "y": 4, "z": null }, { "x": 20, "y": 15, "z": null }, { "x": 0, "y": 15, "z": null }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/inside_lightmap.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 3, "side": 2, "opacity": 1 }, "segments": 7, "radialSegments": 4, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0.7576823348757783 }, { "direction": "y", "degree": 0.23120376601168885 }, { "direction": "z", "degree": -1.3331522958433486 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "ExtrudeGeometry", "position": { "x": -7.471, "y": 5.086, "z": -16.187 }, "style": { "skinColor": 14345446, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 3, "y": 0, "type": "nomal" }, { "x": 0, "y": 8, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "extrudeSettings": { "amount": 15, "curveSegments": 1, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 13, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -3.141592653589793 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN2", "objType": "ExtrudeGeometry", "position": { "x": 0.11, "y": 8.731, "z": -33.618 }, "style": { "skinColor": 14345446, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 8, "y": 0, "type": "nomal" }, { "x": 5, "y": 1, "type": "nomal" }, { "x": -5, "y": 1, "type": "nomal" }, { "x": -8, "y": 0, "type": "nomal" }], "holes": [] }, "extrudeSettings": { "amount": 15, "curveSegments": 1, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 13, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948963 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN3", "objType": "ExtrudeGeometry", "position": { "x": 0, "y": 0, "z": -31.719 }, "style": { "skinColor": 14345446, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 5, "y": 0, "type": "nomal" }, { "x": 5, "y": 2, "type": "nomal" }, { "x": -5, "y": 2, "type": "nomal" }, { "x": -5, "y": 0, "type": "nomal" }], "holes": [] }, "extrudeSettings": { "amount": 15, "curveSegments": 1, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 13, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 6 }
            }
            break;
        case "MJSQBB"://门架式情报板
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "Lathe", "position": { "x": 0, "y": 200, "z": 0 }, "points": [{ "x": 5, "y": -600, "z": 0 }, { "x": 5, "y": 600, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 3, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "Lathe", "position": { "x": 0, "y": 260, "z": 0 }, "points": [{ "x": 5, "y": -600, "z": 0 }, { "x": 5, "y": 600, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 3, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN2", "objType": "Lathe", "position": { "x": 60, "y": 260, "z": 0 }, "points": [{ "x": 5, "y": -600, "z": 0 }, { "x": 5, "y": 600, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 3, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN3", "objType": "Lathe", "position": { "x": 60, "y": 200, "z": 0 }, "points": [{ "x": 5, "y": -600, "z": 0 }, { "x": 5, "y": 600, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 1, "radialSegments": 3, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN4", "objType": "Lathe", "position": { "x": 0, "y": -35, "z": -600 }, "points": [{ "x": 8, "y": -300, "z": 0 }, { "x": 8, "y": 300, "z": 0 }, { "x": 0, "y": 300, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 2, "radialSegments": 6, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN5", "objType": "Lathe", "position": { "x": 60, "y": -35, "z": -600 }, "points": [{ "x": 8, "y": -300, "z": 0 }, { "x": 8, "y": 300, "z": 0 }, { "x": 0, "y": 300, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 2, "radialSegments": 6, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN6", "objType": "Lathe", "position": { "x": 60, "y": -35, "z": 600 }, "points": [{ "x": 8, "y": -300, "z": 0 }, { "x": 8, "y": 300, "z": 0 }, { "x": 0, "y": 300, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 2, "radialSegments": 6, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN7", "objType": "Lathe", "position": { "x": 0, "y": -35, "z": 600 }, "points": [{ "x": 8, "y": -300, "z": 0 }, { "x": 8, "y": 300, "z": 0 }, { "x": 0, "y": 300, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 2, "radialSegments": 6, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN8", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 60, "z": 50 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 60, "z": 150 }, { "x": 0, "y": 0, "z": 200 }, { "x": 0, "y": 60, "z": 250 }, { "x": 0, "y": 0, "z": 300 }, { "x": 0, "y": 60, "z": 350 }, { "x": 0, "y": 0, "z": 400 }, { "x": 0, "y": 60, "z": 450 }, { "x": 0, "y": 0, "z": 500 }, { "x": 0, "y": 60, "z": 550 }, { "x": 0, "y": 0, "z": 600 }, { "x": 0, "y": 60, "z": 650 }, { "x": 0, "y": 0, "z": 700 }, { "x": 0, "y": 60, "z": 750 }, { "x": 0, "y": 0, "z": 800 }, { "x": 0, "y": 60, "z": 850 }, { "x": 0, "y": 0, "z": 900 }, { "x": 0, "y": 60, "z": 950 }, { "x": 0, "y": 0, "z": 1000 }, { "x": 0, "y": 60, "z": 1050 }, { "x": 0, "y": 0, "z": 1100 }, { "x": 0, "y": 60, "z": 1150 }, { "x": 0, "y": 0, "z": 1200 }], "position": { "x": 0, "y": 201.42, "z": -600 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16772846, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 24, "radialSegments": 3, "closed": false, "radius": 2, "showSortNub": 14, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN9", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 60, "z": 50 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 60, "z": 150 }, { "x": 0, "y": 0, "z": 200 }, { "x": 0, "y": 60, "z": 250 }, { "x": 0, "y": 0, "z": 300 }, { "x": 0, "y": 60, "z": 350 }, { "x": 0, "y": 0, "z": 400 }, { "x": 0, "y": 60, "z": 450 }, { "x": 0, "y": 0, "z": 500 }, { "x": 0, "y": 60, "z": 550 }, { "x": 0, "y": 0, "z": 600 }, { "x": 0, "y": 60, "z": 650 }, { "x": 0, "y": 0, "z": 700 }, { "x": 0, "y": 60, "z": 750 }, { "x": 0, "y": 0, "z": 800 }, { "x": 0, "y": 60, "z": 850 }, { "x": 0, "y": 0, "z": 900 }, { "x": 0, "y": 60, "z": 950 }, { "x": 0, "y": 0, "z": 1000 }, { "x": 0, "y": 60, "z": 1050 }, { "x": 0, "y": 0, "z": 1100 }, { "x": 0, "y": 60, "z": 1150 }, { "x": 0, "y": 0, "z": 1200 }], "position": { "x": 60, "y": 201.42, "z": -600 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16772846, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 24, "radialSegments": 3, "closed": false, "radius": 2, "showSortNub": 14, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN10", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 60, "z": 50 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 60, "z": 150 }, { "x": 0, "y": 0, "z": 200 }, { "x": 0, "y": 60, "z": 250 }, { "x": 0, "y": 0, "z": 300 }, { "x": 0, "y": 60, "z": 350 }, { "x": 0, "y": 0, "z": 400 }, { "x": 0, "y": 60, "z": 450 }, { "x": 0, "y": 0, "z": 500 }, { "x": 0, "y": 60, "z": 550 }, { "x": 0, "y": 0, "z": 600 }, { "x": 0, "y": 60, "z": 650 }, { "x": 0, "y": 0, "z": 700 }, { "x": 0, "y": 60, "z": 750 }, { "x": 0, "y": 0, "z": 800 }, { "x": 0, "y": 60, "z": 850 }, { "x": 0, "y": 0, "z": 900 }, { "x": 0, "y": 60, "z": 950 }, { "x": 0, "y": 0, "z": 1000 }, { "x": 0, "y": 60, "z": 1050 }, { "x": 0, "y": 0, "z": 1100 }, { "x": 0, "y": 60, "z": 1150 }, { "x": 0, "y": 0, "z": 1200 }], "position": { "x": 59.771, "y": 260.427, "z": -600 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 1.5707963267948966 }], "style": { "skinColor": 16772846, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 24, "radialSegments": 3, "closed": false, "radius": 2, "showSortNub": 14, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN11", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 60, "z": 50 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 60, "z": 150 }, { "x": 0, "y": 0, "z": 200 }, { "x": 0, "y": 60, "z": 250 }, { "x": 0, "y": 0, "z": 300 }, { "x": 0, "y": 60, "z": 350 }, { "x": 0, "y": 0, "z": 400 }, { "x": 0, "y": 60, "z": 450 }, { "x": 0, "y": 0, "z": 500 }, { "x": 0, "y": 60, "z": 550 }, { "x": 0, "y": 0, "z": 600 }, { "x": 0, "y": 60, "z": 650 }, { "x": 0, "y": 0, "z": 700 }, { "x": 0, "y": 60, "z": 750 }, { "x": 0, "y": 0, "z": 800 }, { "x": 0, "y": 60, "z": 850 }, { "x": 0, "y": 0, "z": 900 }, { "x": 0, "y": 60, "z": 950 }, { "x": 0, "y": 0, "z": 1000 }, { "x": 0, "y": 60, "z": 1050 }, { "x": 0, "y": 0, "z": 1100 }, { "x": 0, "y": 60, "z": 1150 }, { "x": 0, "y": 0, "z": 1200 }], "position": { "x": 59.771, "y": 200.782, "z": -600 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 1.5707963267948966 }], "style": { "skinColor": 16772846, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 24, "radialSegments": 3, "closed": false, "radius": 2, "showSortNub": 14, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN12", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 60, "z": 50 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 60, "z": 150 }, { "x": 0, "y": 0, "z": 200 }, { "x": 0, "y": 60, "z": 250 }, { "x": 0, "y": 0, "z": 300 }, { "x": 0, "y": 60, "z": 350 }, { "x": 0, "y": 0, "z": 400 }, { "x": 0, "y": 60, "z": 450 }, { "x": 0, "y": 0, "z": 500 }, { "x": 0, "y": 60, "z": 550 }, { "x": 0, "y": 0, "z": 600 }, { "x": 0, "y": 60, "z": 650 }, { "x": 0, "y": 0, "z": 700 }, { "x": 0, "y": 60, "z": 750 }, { "x": 0, "y": 0, "z": 800 }, { "x": 0, "y": 60, "z": 850 }, { "x": 0, "y": 0, "z": 900 }, { "x": 0, "y": 60, "z": 950 }, { "x": 0, "y": 0, "z": 1000 }, { "x": 0, "y": 60, "z": 1050 }, { "x": 0, "y": 0, "z": 1100 }, { "x": 0, "y": 60, "z": 1150 }, { "x": 0, "y": 0, "z": 1200 }], "position": { "x": 56.642, "y": 262.261, "z": -600 }, "scale": { "x": 1, "y": 1, "z": 0.5 }, "rotation": [{ "direction": "x", "degree": 1.5707963267948963 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 1.5707963267948963 }], "style": { "skinColor": 16772846, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 24, "radialSegments": 3, "closed": false, "radius": 2, "showSortNub": 14, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN13", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 60, "z": 50 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 60, "z": 150 }, { "x": 0, "y": 0, "z": 200 }, { "x": 0, "y": 60, "z": 250 }, { "x": 0, "y": 0, "z": 300 }, { "x": 0, "y": 60, "z": 350 }, { "x": 0, "y": 0, "z": 400 }, { "x": 0, "y": 60, "z": 450 }, { "x": 0, "y": 0, "z": 500 }, { "x": 0, "y": 60, "z": 550 }, { "x": 0, "y": 0, "z": 600 }, { "x": 0, "y": 60, "z": 650 }, { "x": 0, "y": 0, "z": 700 }, { "x": 0, "y": 60, "z": 750 }, { "x": 0, "y": 0, "z": 800 }, { "x": 0, "y": 60, "z": 850 }, { "x": 0, "y": 0, "z": 900 }, { "x": 0, "y": 60, "z": 950 }, { "x": 0, "y": 0, "z": 1000 }, { "x": 0, "y": 60, "z": 1050 }, { "x": 0, "y": 0, "z": 1100 }, { "x": 0, "y": 60, "z": 1150 }, { "x": 0, "y": 0, "z": 1200 }], "position": { "x": 56.642, "y": 262.261, "z": 600 }, "scale": { "x": 1, "y": 1, "z": 0.5 }, "rotation": [{ "direction": "x", "degree": 1.5707963267948963 }, { "direction": "y", "degree": 5.551115123125783e-17 }, { "direction": "z", "degree": 1.5707963267948963 }], "style": { "skinColor": 16772846, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 24, "radialSegments": 3, "closed": false, "radius": 2, "showSortNub": 14, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN14", "objType": "cube2", "length": 5, "width": 700, "height": 80, "x": 0, "y": 302.141, "z": 0, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_fore": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_behind": { "skinColor": 7566195, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_left": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_right": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" } } }, "showSortNub": 20, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "thick": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN15", "objType": "cube2", "length": 5, "width": 700, "height": 80, "x": 60, "y": 302.141, "z": 0, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_fore": { "skinColor": 7566195, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_behind": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_left": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_right": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" } } }, "showSortNub": 20, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "thick": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN16", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 80, "z": 0 }, { "x": 0, "y": 80, "z": 220 }, { "x": 0, "y": 0, "z": 220 }, { "x": 0, "y": 30, "z": 220 }, { "x": 0, "y": 30, "z": 0 }, { "x": 0, "y": 60, "z": 0 }, { "x": 0, "y": 60, "z": 220 }, { "x": 0, "y": 60, "z": 180 }, { "x": 0, "y": 80, "z": 180 }, { "x": 0, "y": 0, "z": 180 }, { "x": 0, "y": 0, "z": 140 }, { "x": 0, "y": 80, "z": 140 }, { "x": 0, "y": 80, "z": 100 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 0, "z": 60 }, { "x": 0, "y": 80, "z": 60 }, { "x": 0, "y": 80, "z": 30 }, { "x": 0, "y": 0, "z": 30 }], "position": { "x": 0, "y": 257.326, "z": -600 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 18, "radialSegments": 4, "closed": false, "radius": 1, "showSortNub": 22, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN17", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 80, "z": 0 }, { "x": 0, "y": 80, "z": 220 }, { "x": 0, "y": 0, "z": 220 }, { "x": 0, "y": 30, "z": 220 }, { "x": 0, "y": 30, "z": 0 }, { "x": 0, "y": 60, "z": 0 }, { "x": 0, "y": 60, "z": 220 }, { "x": 0, "y": 60, "z": 180 }, { "x": 0, "y": 80, "z": 180 }, { "x": 0, "y": 0, "z": 180 }, { "x": 0, "y": 0, "z": 140 }, { "x": 0, "y": 80, "z": 140 }, { "x": 0, "y": 80, "z": 100 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 0, "z": 60 }, { "x": 0, "y": 80, "z": 60 }, { "x": 0, "y": 80, "z": 30 }, { "x": 0, "y": 0, "z": 30 }], "position": { "x": 60, "y": 257.326, "z": -600 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 18, "radialSegments": 4, "closed": false, "radius": 1, "showSortNub": 22, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN18", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 80, "z": 0 }, { "x": 0, "y": 80, "z": 220 }, { "x": 0, "y": 0, "z": 220 }, { "x": 0, "y": 30, "z": 220 }, { "x": 0, "y": 30, "z": 0 }, { "x": 0, "y": 60, "z": 0 }, { "x": 0, "y": 60, "z": 220 }, { "x": 0, "y": 60, "z": 180 }, { "x": 0, "y": 80, "z": 180 }, { "x": 0, "y": 0, "z": 180 }, { "x": 0, "y": 0, "z": 140 }, { "x": 0, "y": 80, "z": 140 }, { "x": 0, "y": 80, "z": 100 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 0, "z": 60 }, { "x": 0, "y": 80, "z": 60 }, { "x": 0, "y": 80, "z": 30 }, { "x": 0, "y": 0, "z": 30 }], "position": { "x": 60, "y": 257.326, "z": 382.46800034288094 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 18, "radialSegments": 4, "closed": false, "radius": 1, "showSortNub": 22, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN19", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 80, "z": 0 }, { "x": 0, "y": 80, "z": 220 }, { "x": 0, "y": 0, "z": 220 }, { "x": 0, "y": 30, "z": 220 }, { "x": 0, "y": 30, "z": 0 }, { "x": 0, "y": 60, "z": 0 }, { "x": 0, "y": 60, "z": 220 }, { "x": 0, "y": 60, "z": 180 }, { "x": 0, "y": 80, "z": 180 }, { "x": 0, "y": 0, "z": 180 }, { "x": 0, "y": 0, "z": 140 }, { "x": 0, "y": 80, "z": 140 }, { "x": 0, "y": 80, "z": 100 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 0, "z": 60 }, { "x": 0, "y": 80, "z": 60 }, { "x": 0, "y": 80, "z": 30 }, { "x": 0, "y": 0, "z": 30 }], "position": { "x": 0, "y": 257.326, "z": 382.468 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 18, "radialSegments": 4, "closed": false, "radius": 1, "showSortNub": 22, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
            }
            break;
        case "XBGZ"://悬臂杆子
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 0 }, "points": [{ "x": 25, "y": -350, "z": 0 }, { "x": 8, "y": -300, "z": 0 }, { "x": 8, "y": 300, "z": 0 }, { "x": 0, "y": 300, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 3, "radialSegments": 6, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "ExtrudeGeometry", "position": { "x": 0, "y": 293, "z": 118.447 }, "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "repeatx": true, "width": 0.001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 3, "y": -100, "type": "nomal" }, { "x": 3, "y": 150, "type": "nomal" }, { "x": -3, "y": 150, "type": "nomal" }, { "x": -3, "y": -100, "type": "nomal" }, { "x": -10, "y": -120, "type": "nomal" }, { "x": 0, "y": -120, "type": "absarc", "radius": 10, "startAngle": 3.141592653589793, "endAngle": 6.283185307179586, "Clockwise": false }], "holes": [] }, "extrudeSettings": { "amount": 4, "curveSegments": 4, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948963 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 314, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
            }
            break;
        case "GZ1"://杆子1
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name, "objType": "Lathe", "position": position, "points": [{ "x": 25, "y": -350, "z": 0 }, { "x": 5, "y": -300, "z": 0 }, { "x": 5, "y": 300, "z": 0 }, { "x": 0, "y": 300, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 3, "radialSegments": 6, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "radius": null, "scale": scale, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
            }
            break;
        case "GZ2"://杆子2
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 0 }, "points": [{ "x": 25, "y": -350, "z": 0 }, { "x": 8, "y": -300, "z": 0 }, { "x": 8, "y": 300, "z": 0 }, { "x": 0, "y": 300, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 3, "radialSegments": 6, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "ExtrudeGeometry", "position": { "x": 0, "y": 295.186, "z": -3.744 }, "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 50, "y": -1, "type": "nomal" }, { "x": 50, "y": 1, "type": "nomal" }, { "x": -50, "y": 1, "type": "nomal" }, { "x": -50, "y": -1, "type": "nomal" }], "holes": [] }, "extrudeSettings": { "amount": 8, "curveSegments": 1, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN2", "objType": "ShapeGeometry", "position": { "x": 0, "y": 262.634, "z": 0 }, "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.01, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 50, "y": 30, "type": "nomal" }, { "x": -50, "y": 30, "type": "nomal" }, { "x": -50, "y": 20, "type": "nomal" }, { "x": 0, "y": -5, "type": "nomal" }, { "x": 50, "y": 20, "type": "nomal" }], "holes": [] }, "showSortNub": 8, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 6 };
            }
            break;
        case "XBSQBB"://悬臂式情报板
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 0 }, "points": [{ "x": 25, "y": -350, "z": 0 }, { "x": 8, "y": -300, "z": 0 }, { "x": 8, "y": 300, "z": 0 }, { "x": 1, "y": 300, "z": 0 }, { "x": 0, "y": 380, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 4, "radialSegments": 6, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "ExtrudeGeometry", "position": { "x": 0, "y": 186.247, "z": 118.447 }, "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "repeatx": true, "width": 0.001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 3, "y": -100, "type": "nomal" }, { "x": 3, "y": 150, "type": "nomal" }, { "x": -3, "y": 150, "type": "nomal" }, { "x": -3, "y": -100, "type": "nomal" }, { "x": -10, "y": -120, "type": "nomal" }, { "x": 0, "y": -120, "type": "absarc", "radius": 10, "startAngle": 3.141592653589793, "endAngle": 6.283185307179586, "Clockwise": false }], "holes": [] }, "extrudeSettings": { "amount": 4, "curveSegments": 4, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN2", "objType": "ExtrudeGeometry", "position": { "x": 0, "y": 293, "z": 118.447 }, "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "repeatx": true, "width": 0.001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 3, "y": -100, "type": "nomal" }, { "x": 3, "y": 150, "type": "nomal" }, { "x": -3, "y": 150, "type": "nomal" }, { "x": -3, "y": -100, "type": "nomal" }, { "x": -10, "y": -120, "type": "nomal" }, { "x": 0, "y": -120, "type": "absarc", "radius": 10, "startAngle": 3.141592653589793, "endAngle": 6.283185307179586, "Clockwise": false }], "holes": [] }, "extrudeSettings": { "amount": 4, "curveSegments": 4, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN3", "objType": "cube2", "length": 8, "width": 200, "height": 100, "x": 0, "y": 237.592, "z": 165.366, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_fore": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside2.jpg", "repeatx": true, "width": 6, "repeaty": true, "height": 3 }, "skin_behind": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_left": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_right": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" } } }, "showSortNub": 9, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "thick": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN4", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": -20, "y": 0, "z": 0 }, { "x": -20, "y": 0, "z": 260 }, { "x": 0, "y": 0, "z": 260 }], "position": { "x": -4.463, "y": 184.394, "z": -2.13 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 3, "radialSegments": 4, "closed": false, "radius": 1, "showSortNub": 11, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN5", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": -20, "y": 0, "z": 0 }, { "x": -20, "y": 0, "z": 260 }, { "x": 0, "y": 0, "z": 260 }], "position": { "x": -4.463, "y": 217.983, "z": -2.13 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 3, "radialSegments": 4, "closed": false, "radius": 1, "showSortNub": 11, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN6", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": 0, "y": 100, "z": 0 }, { "x": 0, "y": 100, "z": 50 }, { "x": 0, "y": 0, "z": 50 }, { "x": 0, "y": 0, "z": 100 }, { "x": 0, "y": 100, "z": 100 }, { "x": 0, "y": 100, "z": 150 }, { "x": 0, "y": 0, "z": 150 }, { "x": 0, "y": 0, "z": 200 }, { "x": 0, "y": 100, "z": 200 }], "position": { "x": -24.401, "y": 183.087, "z": 27.328 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 9, "radialSegments": 2, "closed": false, "radius": 1, "showSortNub": 11, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN7", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": -20, "y": 0, "z": 0 }, { "x": -20, "y": 0, "z": 260 }, { "x": 0, "y": 0, "z": 260 }], "position": { "x": -4.463, "y": 282.68, "z": -2.13 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 3, "radialSegments": 4, "closed": false, "radius": 1, "showSortNub": 11, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN8", "objType": "tube", "points": [{ "x": 0, "y": 0, "z": 0 }, { "x": -20, "y": 0, "z": 0 }, { "x": -20, "y": 0, "z": 260 }, { "x": 0, "y": 0, "z": 260 }], "position": { "x": -4.463, "y": 252.647, "z": -2.13 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "opacity": 1 }, "segments": 3, "radialSegments": 4, "closed": false, "radius": 1, "showSortNub": 11, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN9", "objType": "cube2", "length": 8, "width": 195, "height": 95, "x": 2.106, "y": 237.592, "z": 165.366, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1 }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1 }, "skin_fore": { "skinColor": 1184274, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside2.jpg", "repeatx": true, "width": 6, "repeaty": true, "height": 3 }, "skin_behind": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_left": { "skinColor": 16777215, "side": 1, "opacity": 1 }, "skin_right": { "skinColor": 16777215, "side": 1, "opacity": 1 } } }, "showSortNub": 9, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "thick": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 369, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
            }
            break;
        case "QYKZQ"://区域控制器
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "cube2", "length": 400, "width": 120, "height": 200, "x": 0, "y": 0, "z": 0, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/airconfigTop.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/airconfigTop.jpg" }, "skin_fore": { "skinColor": 14737632, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/airconfigTop.jpg" }, "skin_behind": { "skinColor": 13948116, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/airconfigTop.jpg" }, "skin_left": { "skinColor": 15586250, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/qykzq.jpg" }, "skin_right": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/airconfig.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 } } }, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "thick": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 264, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
            }
            break;
        case "SKBXHD"://四可变信号灯
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "", "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "Lathe", "position": { "x": 0, "y": 0, "z": 0 }, "points": [{ "x": 25, "y": -350, "z": 0 }, { "x": 8, "y": -300, "z": 0 }, { "x": 8, "y": 300, "z": 0 }, { "x": 0, "y": 300, "z": 0 }], "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "side": 2, "opacity": 1 }, "segments": 3, "radialSegments": 6, "closed": true, "phiStart": 0, "phiLength": 6.283185307179586, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "radius": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "ExtrudeGeometry", "position": { "x": 0, "y": 293, "z": 118.447 }, "style": { "skinColor": 16777215, "imgurl": "../img/3dImg/jsfgcz.jpg", "repeatx": true, "width": 0.001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 3, "y": -100, "type": "nomal" }, { "x": 3, "y": 150, "type": "nomal" }, { "x": -3, "y": 150, "type": "nomal" }, { "x": -3, "y": -100, "type": "nomal" }, { "x": -10, "y": -120, "type": "nomal" }, { "x": 0, "y": -120, "type": "absarc", "radius": 10, "startAngle": 3.141592653589793, "endAngle": 6.283185307179586, "Clockwise": false }], "holes": [] }, "extrudeSettings": { "amount": 4, "curveSegments": 4, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "name": "dev_" + type + "_" + name + "OBJCREN2", "objType": "cylinder", "radiusTop": 20, "radiusBottom": 20, "height": 10, "segmentsX": 24, "segmentsY": 0, "openEnded": false, "position": { "x": 5.282, "y": 291.653, "z": 172.618 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 3.141592653589793 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": -1.5707963267948963 }], "style": { "skinColor": 16776960, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/golight.png" }, "skin_down": { "skinColor": 1184274, "side": 1, "opacity": 1 }, "skin_side": { "skinColor": 1184274, "opacity": 1 } } }, "showSortNub": 9, "show": true, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN3", "objType": "cube2", "length": 8, "width": 220, "height": 50, "x": 2.106, "y": 290.171, "z": 147.831, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 1184274, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside2.jpg" }, "skin_down": { "skinColor": 1184274, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside2.jpg" }, "skin_fore": { "skinColor": 1184274, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside2.jpg", "repeatx": true, "width": 6, "repeaty": true, "height": 3 }, "skin_behind": { "skinColor": 1184274, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_left": { "skinColor": 1184274, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside2.jpg" }, "skin_right": { "skinColor": 1184274, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/rack_inside2.jpg" } } }, "showSortNub": 9, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "thick": null, "scale": { "x": 1, "y": 1, "z": 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "name": "dev_" + type + "_" + name + "OBJCREN4", "objType": "cylinder", "radiusTop": 20, "radiusBottom": 20, "height": 10, "segmentsX": 24, "segmentsY": 0, "openEnded": false, "position": { "x": 5.282, "y": 291.653, "z": 224.359 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 3.141592653589793 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": -1.5707963267948966 }], "style": { "skinColor": 16776960, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/left.png" }, "skin_down": { "skinColor": 1184274, "side": 1, "opacity": 1 }, "skin_side": { "skinColor": 1184274, "opacity": 1 } } }, "showSortNub": 9, "show": true, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "name": "dev_" + type + "_" + name + "OBJCREN5", "objType": "cylinder", "radiusTop": 20, "radiusBottom": 20, "height": 10, "segmentsX": 24, "segmentsY": 0, "openEnded": false, "position": { "x": 5.282, "y": 291.653, "z": 122.131 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 3.141592653589793 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": -1.5707963267948963 }], "style": { "skinColor": 16776960, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/nolight.png" }, "skin_down": { "skinColor": 1184274, "side": 1, "opacity": 1 }, "skin_side": { "skinColor": 1184274, "opacity": 1 } } }, "showSortNub": 9, "show": true, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "name": "dev_" + type + "_" + name + "OBJCREN6", "objType": "cylinder", "radiusTop": 20, "radiusBottom": 20, "height": 10, "segmentsX": 24, "segmentsY": 0, "openEnded": false, "position": { "x": 5.282, "y": 291.653, "z": 71.245 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": 3.141592653589793 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": -1.5707963267948966 }], "style": { "skinColor": 16776960, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/nolight.png" }, "skin_down": { "skinColor": 1184274, "side": 1, "opacity": 1 }, "skin_side": { "skinColor": 1184274, "opacity": 1 } } }, "showSortNub": 9, "show": true, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 327, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }
            }
            break;
        case "CDZSD"://车道指示灯
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name, "objType": "cube2", "length": 20, "width": 200, "height": 200, "x": position.x, "y": position.y, "z": position.z, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_down": { "skinColor": 16777215, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_fore": { "skinColor": 16777215, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/go.png" }, "skin_behind": { "skinColor": 16777215, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_left": { "skinColor": 16777215, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" }, "skin_right": { "skinColor": 16777215, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/rack_inside.jpg" } } }, "showSortNub": 224, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "thick": null, "scale": scale, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
            }
            break;
        case "GDSXJ"://固定摄像机
            {
                modelJson = { "show": true, "uuid": "", "name": "dev_" + type + "_" + name, "objType": "GroupObj", "scale": scale, "position": position, "rotation": [{ "direction": "x", "degree": rotation.x }, { "direction": "y", "degree": rotation.y }, { "direction": "z", "degree": rotation.z }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0", "objType": "GroupObj", "scale": { "x": 1, "y": 1, "z": 1 }, "position": { "x": 0, "y": 0, "z": 0 }, "rotation": [{ "direction": "x", "degree": -0.1329940890019679 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "childrens": [{ "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN0", "objType": "ShapeGeometry", "position": { "x": 52.507, "y": 86.93, "z": 253.187 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.01, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 50, "y": 0, "type": "nomal" }, { "x": 50, "y": 250, "type": "nomal" }, { "x": 45, "y": 250, "type": "nomal" }, { "x": 10, "y": 280, "type": "nomal" }, { "x": 0, "y": 280, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948963 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN1", "objType": "ShapeGeometry", "position": { "x": -32.512, "y": 86.93, "z": 253.187 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.001, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 50, "y": 0, "type": "nomal" }, { "x": 50, "y": 250, "type": "nomal" }, { "x": 45, "y": 250, "type": "nomal" }, { "x": 10, "y": 280, "type": "nomal" }, { "x": 0, "y": 280, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948963 }, { "direction": "y", "degree": 1.5707963267948966 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN2", "objType": "ShapeGeometry", "position": { "x": -32.297, "y": 86.51, "z": 253.187 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 85, "y": 0, "type": "nomal" }, { "x": 85, "y": 280, "type": "nomal" }, { "x": 0, "y": 280, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948963 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN3", "objType": "ExtrudeGeometry", "position": { "x": 19.771, "y": 2.894, "z": 251.879 }, "style": { "skinColor": 14078157, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.0001, "repeaty": true, "height": 0.001, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 5, "type": "nomal" }, { "x": 40, "y": 5, "type": "nomal" }, { "x": 45, "y": 10, "type": "nomal" }, { "x": 50, "y": 10, "type": "nomal" }, { "x": 50, "y": 80, "type": "nomal" }, { "x": -30, "y": 80, "type": "nomal" }, { "x": -30, "y": 10, "type": "nomal" }, { "x": -25, "y": 10, "type": "nomal" }, { "x": -20, "y": 5, "type": "nomal" }], "holes": [] }, "extrudeSettings": { "amount": 250, "curveSegments": 1, "steps": 1, "bevelEnabled": true, "bevelThickness": 1, "bevelSize": 1, "bevelSegments": 1, "extrudePathPoints": [] }, "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -3.141592653589793 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": -3.141592653589793 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN4", "objType": "cylinder", "radiusTop": 25, "radiusBottom": 20, "height": 10, "segmentsX": 16, "segmentsY": 0, "openEnded": false, "position": { "x": 9.607, "y": 46.007, "z": 1.254 }, "scale": { "x": 1, "y": 1, "z": 1 }, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "style": { "skinColor": 16776960, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/camera.png" }, "skin_down": { "skinColor": 1841947, "side": 1, "opacity": 1 }, "skin_side": { "skinColor": 4538946, "opacity": 1 } } }, "showSortNub": 10, "show": true, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN5", "objType": "ShapeGeometry", "position": { "x": -17.261, "y": 6.463, "z": 161.14 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 50, "y": 0, "type": "nomal" }, { "x": 50, "y": 50, "type": "nomal" }, { "x": 0, "y": 50, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN6", "objType": "ShapeGeometry", "position": { "x": 32.985, "y": 6.687, "z": 136.337 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 0, "y": 0, "type": "absarc", "radius": 25, "startAngle": 1.5707963267948966, "endAngle": 4.71238898038469, "Clockwise": true }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 1.5677943604814664 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN0OBJCREN7", "objType": "ShapeGeometry", "position": { "x": -17.261, "y": 6.687, "z": 136.337 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 0, "y": 0, "type": "absarc", "radius": 25, "startAngle": 1.5707963267948966, "endAngle": 4.71238898038469, "Clockwise": true }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 1.5677943604814664 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 6, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN1", "objType": "ShapeGeometry", "position": { "x": 33.244, "y": -3.348, "z": 136.337 }, "style": { "skinColor": 13420738, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 0, "y": 0, "type": "absarc", "radius": 25, "startAngle": 0, "endAngle": 6.283185307179586, "Clockwise": true }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 1.5677943604814664 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN2", "objType": "ShapeGeometry", "position": { "x": -17.261, "y": -3.348, "z": 136.337 }, "style": { "skinColor": 13420738, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 0, "y": 0, "type": "absarc", "radius": 25, "startAngle": 0, "endAngle": 6.283185307179586, "Clockwise": true }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 1.5677943604814664 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN3", "objType": "ShapeGeometry", "position": { "x": -17.787, "y": -2.68, "z": 161.302 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 52, "y": 0, "type": "nomal" }, { "x": 52, "y": 50, "type": "nomal" }, { "x": 0, "y": 50, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN4", "objType": "ShapeGeometry", "position": { "x": 33.537, "y": -39.03, "z": 136.337 }, "style": { "skinColor": 13420738, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 0, "y": 0, "type": "absarc", "radius": 25, "startAngle": 4.71238898038469, "endAngle": 1.5707963267948966, "Clockwise": true }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 1.5677943604814664 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN5", "objType": "ShapeGeometry", "position": { "x": -18.175, "y": -39.15, "z": 161.302 }, "style": { "skinColor": 16117482, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 52, "y": 0, "type": "nomal" }, { "x": 52, "y": 50, "type": "nomal" }, { "x": 0, "y": 50, "type": "nomal" }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 0 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }, { "show": true, "uuid": "", "name": "dev_" + type + "_" + name + "OBJCREN6", "objType": "ShapeGeometry", "position": { "x": -17.787, "y": -39.03, "z": 136.337 }, "style": { "skinColor": 13420738, "imgurl": "../img/3dImg/inside_lightmap2.jpg", "repeatx": true, "width": 0.01, "repeaty": true, "height": 0.001, "side": 2, "opacity": 1 }, "scale": { "x": 1, "y": 1, "z": 1 }, "shapeParm": { "points": [{ "x": 0, "y": 0, "type": "nomal" }, { "x": 0, "y": 0, "type": "absarc", "radius": 25, "startAngle": 4.71238898038469, "endAngle": 1.5707963267948966, "Clockwise": true }, { "x": 0, "y": 0, "type": "nomal" }], "holes": [] }, "showSortNub": 7, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": -1.5707963267948966 }, { "direction": "y", "degree": 1.5677943604814664 }, { "direction": "z", "degree": 0 }], "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }], "showSortNub": 253, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
            }
            break;
    }
    return modelJson;
}
ModelBussiness.prototype.addMark = function (name,position,scale) {
    var markjson = [{ "name": name, "objType": "picIdentification", "size": scale, "position": position, "imgurl": "../img/3dImg/qp4.png", "showSortNub": 327, "show": true, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }];
}
ModelBussiness.prototype.flashObjsNames = [];


//修改模型状态
/*
type:类型（见TypeConfig.json文件）
name:名称（命名规则）"dev_"+类型+"_"+名称+桩号 ，所有特殊符号用下划线替换
state:字符串  在线:1 离线:0 故障:-1
            风向袋的状态值：1_度数 度数的取值范围0到Math.PI*2
            四可变信号灯:10000 第一位表示在线 离线 故障
                                后面四位分别表示每个灯的亮和灭 
*/
ModelBussiness.prototype.changeDevState = function (name, state) {
    var _this = this;
    var modelJson = "";
    var obj = WT3DObj.commonFunc.findObject(name);
    if (!obj&&obj.name.indexOf("dev_")!=0) {
        return;
    }
    var type = obj.name.split("_")[1];
    
    if (state =="0") {
        WT3DObj.commonFunc.flashObjs([obj], obj.name + "_flashanimation_", 0xff0000, 0, 200, 0);
        _this.flashObjsNames.push(obj.name);
    } else if (state == "-1") {
        WT3DObj.commonFunc.flashObjs([obj], obj.name + "_flashanimation_", 0xffff00,0, 200, 0);
        _this.flashObjsNames.push(obj.name);
    } else if (parseInt(state) >= 1) {
        var _index = _this.flashObjsNames.indexOf(obj.name);
        if (_index >= 0) {
            _this.flashObjsNames.splice(_index, 1);
            WT3DObj.commonFunc.flashObjs([obj], obj.name + "_flashanimation_", 0xffff00, -1, 200, 0);
        }
    }
    switch (type) {
        case "FXD"://风向袋 参照实际,三维图上示意处理 1_度数
            {
                var stateArray = state.split("_");
                var degree = parseFloat(stateArray[1]);//y轴旋转度数
                obj.rotation.y = degree;
            }
            break;
        case "SKBXHD"://四可变信号灯 在线 离线 故障  4种信号灯单独显示(灭/亮) 1 0 -1 10000(后面四位表示每个信号灯状态)
            {
                var stateArray = state.split("");
                if (stateArray[1] == "1") {
                    WT3DObj.commonFunc.setObjSkinImg(obj.children[4], 1, "../img/3dImg/left.png");
                } else {
                    WT3DObj.commonFunc.setObjSkinImg(obj.children[4], 1, "../img/3dImg/nolight.png");
                }
                if (stateArray[2] == "1") {
                    WT3DObj.commonFunc.setObjSkinImg(obj.children[2],1, "../img/3dImg/golight.png");
                } else {
                    WT3DObj.commonFunc.setObjSkinImg(obj.children[2], 1, "../img/3dImg/nolight.png");
                }
                if (stateArray[3] == "1") {
                    WT3DObj.commonFunc.setObjSkinImg(obj.children[5], 1, "../img/3dImg/yellowlight.png");
                } else {
                    WT3DObj.commonFunc.setObjSkinImg(obj.children[5], 1, "../img/3dImg/nolight.png");
                }
                if (stateArray[4] == "1") {
                    WT3DObj.commonFunc.setObjSkinImg(obj.children[6],1, "../img/3dImg/redlight.png");
                } else {
                    WT3DObj.commonFunc.setObjSkinImg(obj.children[6], 1, "../img/3dImg/nolight.png");
                }
            }
            break;
        case "CDZSD"://车道指示灯   在线 离线 故障 绿箭头  红叉  1 0 -1 2 3
            {
                if (state == 2) {
                    WT3DObj.commonFunc.setObjSkinImg(obj, 0, "../img/3dImg/go.png");
                } else if (state == 3) {
                    WT3DObj.commonFunc.setObjSkinImg(obj, 0, "../img/3dImg/stop.png");
                }
            }
            break;
        case "QXG"://气象仪  在线 离线 故障 1 0 -1
        case "YKSXJ"://遥控摄像机  在线 离线 故障 1 0 -1
        case "WBJCY"://微波车辆检测器  在线 离线 故障 1 0 -1
        case "MJSQBB"://门架式情报板  在线 离线 故障 1 0 -1
        case "XBGZ"://悬臂杆子  在线 离线 故障 1 0 -1
        case "GZ1"://杆子1  在线 离线 故障 1 0 -1
        case "XBSQBB"://悬臂式情报板  在线 离线 故障 1 0 -1
        case "GZ2"://杆子2  在线 离线 故障 1 0 -1
        case "QYKZQ"://区域控制器  在线 离线 故障 1 0 -1
        case "GDSXJ"://固定摄像机  在线 离线 故障 1 0 -1
            {
            }
            break;
    }
}
/*
aciton_id：本次闪动事件的id  请保持唯一性即可 这个主要用于清楚停止本事件时方便查找
names:名称数组（命名规则）"dev_"+类型+"_"+名称+桩号 ，所有特殊符号用下划线替换
times：闪动次数 0表示永久 -1表示停止 其它正整数表示闪动次数
color 表示闪动的颜色 例如红色用16进制0xFF0000表示  注意 不需要双引号
*/
ModelBussiness.prototype.flashAlarmObjs = function (aciton_id,names,times,color) {
    var objs = WT3DObj.commonFunc.findObjectsByNames(names);
    WT3DObj.commonFunc.flashObjs(objs, aciton_id + "_alarm_flashanimation", color, times, 200, 0);
}


//修改模型参数 位置 缩放 角度
/*
name:"dev_"+类型+"_"+名称+桩号 ，所有特殊符号用下划线替换
position:在三维中的位置，可通过任意添加一个位置，然后调整到合适位置，格式{x:0,y:0,z:0}
scale:模型的缩放，格式{x:1,y:1,z:1} x y z的值大于0
rotation:模型旋转，格式{x:0,y:0,z:0} x y z的值取值范围是0到Math.PI*2
*/
ModelBussiness.prototype.changeObjParam = function (name, position, scale, rotation) {
    var obj = WT3DObj.commonFunc.findObject(name);
    if (position) {
        obj.position.x = position.x;
        obj.position.y = position.y;
        obj.position.z = position.z;
    }
    if (scale) {
        obj.scale.x = scale.x;
        obj.scale.y = scale.y;
        obj.scale.z = scale.z;
    }
    if (rotation) {
        obj.rotation.x = rotation.x;
        obj.rotation.y = rotation.y;
        obj.rotation.z = rotation.z;
    }
}


//获取模型参数 位置 缩放 角度
/*
name:"dev_"+类型+"_"+名称+桩号 ，所有特殊符号用下划线替换
*/
ModelBussiness.prototype.getObjParam = function (name) {
    var obj = WT3DObj.commonFunc.findObject(name);
    return {
        position: {
            x: obj.position.x,
            y: obj.position.y,
            z: obj.position.z,
        },
        scale: {
            x: obj.scale.x,
            y: obj.scale.y,
            z: obj.scale.z,
        },
        rotation: {
            x: obj.rotation.x,
            y: obj.rotation.y,
            z: obj.rotation.z,
        }
    }
}
//根据设备名称定为设备 并且返回模型对象
/*
name:"dev_"+类型+"_"+名称+桩号 ，所有特殊符号用下划线替换
callBack:定为完成后回调函数
*/
ModelBussiness.prototype.LocationObj = function (name,callBack) {
    var obj = WT3DObj.commonFunc.findObject(name);
    if (obj) {
        CloseDistance(obj, function () {
            if (callBack) {
                callBack();
            }
        });
    }
    return obj;
}
ModelBussiness.prototype.LocationObjTwo = function (name,callBack) {
    var obj = WT3DObj.commonFunc.findObject(name);
    return obj;
}