three 基础库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
40 KiB

2 years ago
function getCabinetModel(name,scale,position,rotation,faceCode) {
var cabinetModel =
{
"show": true,
"uuid": "",
"name": name,
"objType": "GroupObj",
"scale": scale,
"position": position,
"rotation": rotation,
"childrens": [{ "show": true, "uuid": "", "name": "ITC_cab_A_1OBJCREN0", "objType": "cube2", "length": 200, "width": 150, "height": 5, "x": 0, "y": 187.5, "z": 0, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 3881787, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_down": { "skinColor": 3881787, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_fore": { "skinColor": 3881787, "side": 1, "opacity": 1 }, "skin_behind": { "skinColor": 3881787, "side": 1, "opacity": 1 }, "skin_left": { "skinColor": 3881787, "side": 1, "opacity": 1 }, "skin_right": { "skinColor": 3881787, "side": 1, "opacity": 1 } } }, "showSortNub": 13, "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": "ITC_cab_A_1OBJCREN19", "objType": "cube2", "length": 200, "width": 150, "height": 5, "x": 0, "y": -187.25, "z": 0, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 3881787, "side": 0, "opacity": 1 }, "skin_down": { "skinColor": 3881787, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/rail5.png" }, "skin_fore": { "skinColor": 3881787, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_behind": { "skinColor": 3881787, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_left": { "skinColor": 3881787, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_right": { "skinColor": 3881787, "side": 2, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" } } }, "showSortNub": 13, "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": "ITC_cab_A_1OBJCREN1", "objType": "cube2", "length": 9, "width": 9, "height": 378, "x": -95, "y": 0, "z": -70, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 3881787, "side": 1, "opacity": 1 }, "skin_down": { "skinColor": 3881787, "side": 1, "opacity": 1 }, "skin_fore": { "skinColor": 3881787, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_behind": { "skinColor": 3881787, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_left": { "skinColor": 3881787, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_right": { "skinColor": 3881787, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" } } }, "showSortNub": 16, "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": "ITC_cab_A_1OBJCREN2", "objType": "cube2", "length": 9, "width": 9, "height": 378, "x": -95, "y": 0, "z": 70, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 3881787, "side": 1, "opacity": 1 }, "skin_down": { "skinColor": 3881787, "side": 1, "opacity": 1 }, "skin_fore": { "skinColor": 3881787, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_behind": { "skinColor": 3881787, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_left": { "skinColor": 3881787, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/inside_lightmap.jpg" }, "skin_right": { "skinColor": 3881787, "side": 1, "opacity": 1, "i
};
if (faceCode == 0) {//left
cabinetModel.childrens.push({ "show": true, "uuid": "", "name": "ITC_cab_A_1OBJCREN20", "objType": "cube2", "length": 200, "width": 1, "height": 380, "x":0, "y":0, "z": -75, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 657930, "side": 1, "opacity": 1 }, "skin_down": { "skinColor": 657930, "side": 1, "opacity": 1 }, "skin_fore": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_behind": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_left": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_right": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 } } }, "showSortNub": 471, "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 });
}
if (faceCode ==1) {//right
cabinetModel.childrens.push({ "show": true, "uuid": "", "name": "ITC_cab_A_1OBJCREN20", "objType": "cube2", "length": 200, "width": 1, "height": 380, "x": 0, "y": 0, "z": 75, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 657930, "side": 1, "opacity": 1 }, "skin_down": { "skinColor": 657930, "side": 1, "opacity": 1 }, "skin_fore": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_behind": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_left": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_right": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 } } }, "showSortNub": 471, "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 });
}
if (faceCode == 2) {//right
cabinetModel.childrens.push({ "show": true, "uuid": "", "name": "ITC_cab_A_1OBJCREN20", "objType": "cube2", "length": 200, "width": 1, "height": 380, "x": 0, "y": 0, "z": -75, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 657930, "side": 1, "opacity": 1 }, "skin_down": { "skinColor": 657930, "side": 1, "opacity": 1 }, "skin_fore": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_behind": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_left": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_right": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 } } }, "showSortNub": 10, "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 });
cabinetModel.childrens.push({ "show": true, "uuid": "", "name": "ITC_cab_A_1OBJCREN21", "objType": "cube2", "length": 200, "width": 1, "height": 380, "x": 0, "y": 0, "z": 75, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 657930, "side": 1, "opacity": 1 }, "skin_down": { "skinColor": 657930, "side": 1, "opacity": 1 }, "skin_fore": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_behind": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_left": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 }, "skin_right": { "skinColor": 4671303, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/outside_lightmap.jpg", "repeatx": true, "width": 2, "repeaty": true, "height": 1 } } }, "showSortNub": 10, "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 });
}
return cabinetModel;
}
function getServerModel(name, index, position, scale, rolationY) {
var servers = [
{ "show": true, "uuid": "", "name": name, "objType": "cube2", "length": 588, "width": 348, "height": 860, "x": position.x, "y": position.y, "z": position.z, "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/s1.jpg" }, "skin_behind": { "skinColor": 10724259, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/s2.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 10 }, "skin_left": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 10 }, "skin_right": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 10 } } }, "showSortNub": 32, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": rolationY }, { "direction": "z", "degree": 0 }], "thick": null, "scale": scale, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null },
{ "show": true, "uuid": "", "name": name, "objType": "cube2", "length": 588, "width": 348, "height": 550, "x": position.x, "y": position.y, "z": position.z, "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/s2.jpg" }, "skin_behind": { "skinColor": 10724259, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/s2.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 10 }, "skin_left": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 7 }, "skin_right": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 7 } } }, "showSortNub": 32, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": rolationY }, { "direction": "z", "degree": 0 }], "thick": null, "scale": scale, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null },
{ "show": true, "uuid": "", "name": name, "objType": "cube2", "length": 588, "width": 348, "height": 450, "x": position.x, "y": position.y, "z": position.z, "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/s3.jpg" }, "skin_behind": { "skinColor": 10724259, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/s2.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 10 }, "skin_left": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 7 }, "skin_right": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 7 } } }, "showSortNub": 32, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": rolationY }, { "direction": "z", "degree": 0 }], "thick": null, "scale": scale, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null },
{ "show": true, "uuid": "", "name": name, "objType": "cube2", "length": 588, "width": 348, "height": 750, "x": position.x, "y": position.y, "z": position.z, "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/server2.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 7 }, "skin_behind": { "skinColor": 10724259, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/s2.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 7 }, "skin_left": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 7 }, "skin_right": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 7 } } }, "showSortNub": 32, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": rolationY }, { "direction": "z", "degree": 0 }], "thick": null, "scale": scale, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null },
{ "show": true, "uuid": "", "name": name, "objType": "cube2", "length": 588, "width": 348, "height": 650, "x": position.x, "y": position.y, "z": position.z, "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/server1.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 14 }, "skin_behind": { "skinColor": 10724259, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server1.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 14 }, "skin_left": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 14 }, "skin_right": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 14 } } }, "showSortNub": 32, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": rolationY }, { "direction": "z", "degree": 0 }], "thick": null, "scale": scale, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null },
{ "show": true, "uuid": "", "name": name, "objType": "cube2", "length": 588, "width": 348, "height": 760, "x": position.x, "y": position.y, "z": position.z, "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/server1.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 14 }, "skin_behind": { "skinColor": 10724259, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server1.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 14 }, "skin_left": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 14 }, "skin_right": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 14 } } }, "showSortNub": 32, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": rolationY }, { "direction": "z", "degree": 0 }], "thick": null, "scale": scale, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null }];
return servers[index];
}
function getSingleServerModel(name, position, height, rolationY, devid, imgs) {
var servers =
{
"show": true, "uuid": "", "name": name, "objType": "cube2", "length": 148, "width": 118, "height": height, "x": position.x, "y": position.y, "z": position.z, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": imgs.up ? imgs.up : "../img/3dImg/rack_inside.jpg" }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": imgs.down ? imgs.down : "../img/3dImg/rack_inside.jpg" }, "skin_fore": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": imgs.fore ? imgs.fore : "../img/3dImg/s1.jpg" }, "skin_behind": { "skinColor": 10724259, "side": 1, "opacity": 1, "imgurl": imgs.behind ? imgs.behind : "../img/3dImg/s2.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 1 }, "skin_left": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": imgs.left ? imgs.left : "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 1 }, "skin_right": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": imgs.right ? imgs.right : "../img/3dImg/server_side.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 1 } } }, "showSortNub": 32, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": 0 }, { "direction": "y", "degree": rolationY }, { "direction": "z", "degree": 0 }], "thick": null, "scale": {
"x": 1, "y":1,"z":1}, "BindDevId": devid, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
return servers
}
function getSingleServerPortModel(name, position, height, width, rolationY, imgs) {
var servers =
{ "show": true, "uuid": "", "name": name, "objType": "cube2", "length": 2, "width": width, "height": height, "x": position.x, "y": position.y, "z": position.z, "style": { "skinColor": 16777215, "skin": { "skin_up": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": imgs.up ? imgs.up : "../img/3dImg/port.jpg" }, "skin_down": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": imgs.down ? imgs.down : "../img/3dImg/port.jpg" }, "skin_fore": { "skinColor": 16777215, "side": 1, "opacity": 1, "imgurl": imgs.fore ? imgs.fore : "../img/3dImg/port.jpg" }, "skin_behind": { "skinColor": 10724259, "side": 1, "opacity": 1, "imgurl": imgs.behind ? imgs.behind : "../img/3dImg/port.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 1 }, "skin_left": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": imgs.left ? imgs.left : "../img/3dImg/port.jpg", "repeatx": true, "width": 1, "repeaty": true, "height": 1 }, "skin_right": { "skinColor": 5526612, "side": 1, "opacity": 1, "imgurl": imgs.right ? imgs.right : "../img/3dImg/port.jpg", "repeatx": true, "width": 1, "repeaty": true, "height":1 } } }, "showSortNub": 32, "customType1": "", "customType2": "", "animation": null, "dbclickEvents": null, "rotation": [{ "direction": "x", "degree": rolationY.x }, { "direction": "y", "degree": rolationY.y }, { "direction": "z", "degree": rolationY.z}], "thick": null, "scale": { x: 1, y: 1, z: 1 }, "BindDevId": null, "BindDevName": null, "devInfo": null, "BindMeteId": null, "BindMeteName": null };
return servers
}