RoomConfig
类:房间应用配置项
Constructor
new Glodon.Bimface.Plugins.Rooms.RoomConfig(viewer, roomId, modelId, geometry, roomColor, frameColor, enableSelected)
构造房间应用的配置项
Parameters:
Name | Type | Description |
---|---|---|
viewer | Glodon.Bimface.Viewer.Viewer3D | Viewer对象,必填 |
roomId | String | 房间的ID,选填 |
modelId | String | 房间关联的模型ID,选填 |
geometry | Object | 房间的几何信息,必填。 |
roomColor | Glodon.Web.Graphics.Color | 房间颜色,选填 |
frameColor | Glodon.Web.Graphics.Color | 房间线框颜色,选填 |
enableSelected | Boolean | 是否支持房间被选中,默认为true |
Example
// 方式1:
{
"type": "extrusion",
"boundary": {
"outer": [
{"x": "0","y": "0","z": "0"},
{"x": "1000","y": "0","z": "0"},
{"x": "0","y": "1000","z": "0"}
],
"inner": [
[
{"x": "0","y": "0","z": "0"},
{"x": "100","y": "0","z": "0"},
{"x": "0","y": "100","z": "0"}
]
]
},
"height": 3000,
"unit": "mm"
}
// 方式2:
{
"type": "extrusion",
"boundary": {
"outer": [
{"x": "0","y": "0","z": "0"},
{"x": "1000","y": "0","z": "0"},
{"x": "0","y": "1000","z": "0"}
],
"inner": [
[
{"x": "0","y": "0","z": "0"},
{"x": "100","y": "0","z": "0"},
{"x": "0","y": "100","z": "0"}
]
]
},
"offset": ["500","3500"],
"unit": "mm"
}
// 方式3:
{
"type": "extrusion",
"grid": {
"fileId":10000016830464,
"ids":['A', 'E', '1', '3']
},
"offset": ["500","3500"],
"unit": "mm"
}
// 方式4:
{
"type": "extrusion",
"grid": {
"fileId":10000016830464,
"ids":['A', 'E', '1', '3']
},
"height": 3000,
"unit": "mm"
}
← Room RoomManager →