import * as THREE from "three"
const defultCabinetObj ={
w:60, //宽
h:200,//高
z:60,//深
layers:42,//层数
}
const basicParameters ={
thickness:5, // 竖板厚度
}
class cabinet {
constructor(options){
this.options= options;
// 房间场景
this.scene = options.scene;
this.camera = options.camera;
// 机柜各个面相对于0,0,0的坐标 坐标参数 x y z
this.position = {x:0,y:0,z:0};
// 机柜位置及旋转参数
this.cabPosition =options.cabPosition || {x:0,y:0,z:0,rotatex:0,rotatey:0,rotatez:0}
// 机柜参数
this.cabinetObj = options.cabinetObj || defultCabinetObj;
// 机柜编号
this.cabId = options.cabId;
// 机柜状态
this.status = options.status || 0;
// 剩余槽位
this.cabSlot = options.slot || 42;
//优化 从外部创建一次传入 不重复创建
this.cabinetbgMateria

 创建机柜模型-1&spm=1001.2101.3001.5002&articleId=108573172&d=1&t=3&u=bfe9d0a864aa4ebcb4da27aef06ac688)
1135

被折叠的 条评论
为什么被折叠?



