gs-bim-air 1.6.1-beta.59 → 1.6.1-beta.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/docs/classes/Longan.LonganCore.Viewer.md +18 -0
- package/docs/classes/Longan.TriangularShell.md +22 -0
- package/docs/classes/Longan.Viewer.md +22 -0
- package/docs/classes/Viewer.md +22 -0
- package/docs/gs-bim-air.md +1 -0
- package/docs/modules/CAE.md +86 -0
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +45 -5
- package/lib/BimAir.css +141 -141
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +45 -5
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +45 -5
- package/lib/undefined.gzundefined +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
## BIMAir 更新日志
|
|
2
2
|
|
|
3
|
+
### 1.6.1-beta.61
|
|
4
|
+
|
|
5
|
+
- feat: 增加导入 cae 分析模型剖切结果数据接口
|
|
6
|
+
- feat: 增加 cae 分析模型剖切计算接口
|
|
7
|
+
|
|
8
|
+
### 1.6.1-beta.60
|
|
9
|
+
|
|
10
|
+
- feat: 添加 CAE 后处理模型修改颜色的接口,用法如下
|
|
11
|
+
|
|
12
|
+
```js
|
|
13
|
+
BimAir.CAE.setColor(
|
|
14
|
+
segmentObject,
|
|
15
|
+
[
|
|
16
|
+
255, 0, 0, 1, 255, 0, 0, 1, 255, 0, 0, 1, 255, 0, 0, 1, 255, 0, 0, 1, 255,
|
|
17
|
+
0, 0, 1, 255, 0, 0, 1, 255, 0, 0, 1, 255, 0, 0, 1,
|
|
18
|
+
]
|
|
19
|
+
).then(() => {
|
|
20
|
+
viewer.updateDisplay();
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
3
24
|
### 1.6.1-beta.59
|
|
4
25
|
|
|
5
26
|
- feat: 导出专业爆炸命令,用法如下
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
- [getGslId](Longan.LonganCore.Viewer.md#getgslid)
|
|
97
97
|
- [groupingAsynKeysOfEachLightModel](Longan.LonganCore.Viewer.md#groupingasynkeysofeachlightmodel)
|
|
98
98
|
- [locateWorld](Longan.LonganCore.Viewer.md#locateworld)
|
|
99
|
+
- [locateWorldByBoundingboxAndNormal](Longan.LonganCore.Viewer.md#locateworldbyboundingboxandnormal)
|
|
99
100
|
- [locateWorldByData](Longan.LonganCore.Viewer.md#locateworldbydata)
|
|
100
101
|
- [makeContextCurrent](Longan.LonganCore.Viewer.md#makecontextcurrent)
|
|
101
102
|
- [rebind](Longan.LonganCore.Viewer.md#rebind)
|
|
@@ -1185,6 +1186,23 @@ ___
|
|
|
1185
1186
|
|
|
1186
1187
|
___
|
|
1187
1188
|
|
|
1189
|
+
### locateWorldByBoundingboxAndNormal
|
|
1190
|
+
|
|
1191
|
+
▸ **locateWorldByBoundingboxAndNormal**(`bb`, `normal`): `void`
|
|
1192
|
+
|
|
1193
|
+
#### Parameters
|
|
1194
|
+
|
|
1195
|
+
| Name | Type |
|
|
1196
|
+
| :------ | :------ |
|
|
1197
|
+
| `bb` | `Float32Array` |
|
|
1198
|
+
| `normal` | `Float32Array` |
|
|
1199
|
+
|
|
1200
|
+
#### Returns
|
|
1201
|
+
|
|
1202
|
+
`void`
|
|
1203
|
+
|
|
1204
|
+
___
|
|
1205
|
+
|
|
1188
1206
|
### locateWorldByData
|
|
1189
1207
|
|
|
1190
1208
|
▸ **locateWorldByData**(`target`, `min`, `max`): `void`
|
|
@@ -21,10 +21,12 @@
|
|
|
21
21
|
- [area](Longan.TriangularShell.md#area)
|
|
22
22
|
- [color](Longan.TriangularShell.md#color)
|
|
23
23
|
- [data](Longan.TriangularShell.md#data)
|
|
24
|
+
- [indexes](Longan.TriangularShell.md#indexes)
|
|
24
25
|
- [key](Longan.TriangularShell.md#key)
|
|
25
26
|
- [keyType](Longan.TriangularShell.md#keytype)
|
|
26
27
|
- [normals](Longan.TriangularShell.md#normals)
|
|
27
28
|
- [owner](Longan.TriangularShell.md#owner)
|
|
29
|
+
- [points](Longan.TriangularShell.md#points)
|
|
28
30
|
- [property](Longan.TriangularShell.md#property)
|
|
29
31
|
- [shellSize](Longan.TriangularShell.md#shellsize)
|
|
30
32
|
- [texCoords](Longan.TriangularShell.md#texcoords)
|
|
@@ -97,6 +99,16 @@ ___
|
|
|
97
99
|
|
|
98
100
|
___
|
|
99
101
|
|
|
102
|
+
### indexes
|
|
103
|
+
|
|
104
|
+
• `get` **indexes**(): `Int32Array`
|
|
105
|
+
|
|
106
|
+
#### Returns
|
|
107
|
+
|
|
108
|
+
`Int32Array`
|
|
109
|
+
|
|
110
|
+
___
|
|
111
|
+
|
|
100
112
|
### key
|
|
101
113
|
|
|
102
114
|
• `get` **key**(): `number`
|
|
@@ -169,6 +181,16 @@ Surface.owner
|
|
|
169
181
|
|
|
170
182
|
___
|
|
171
183
|
|
|
184
|
+
### points
|
|
185
|
+
|
|
186
|
+
• `get` **points**(): `Float32Array`
|
|
187
|
+
|
|
188
|
+
#### Returns
|
|
189
|
+
|
|
190
|
+
`Float32Array`
|
|
191
|
+
|
|
192
|
+
___
|
|
193
|
+
|
|
172
194
|
### property
|
|
173
195
|
|
|
174
196
|
• `get` **property**(): `GeometryProperty`
|
|
@@ -167,6 +167,7 @@
|
|
|
167
167
|
- [initManagers](Longan.Viewer.md#initmanagers)
|
|
168
168
|
- [instantiateRenderObject](Longan.Viewer.md#instantiaterenderobject)
|
|
169
169
|
- [locateWorld](Longan.Viewer.md#locateworld)
|
|
170
|
+
- [locateWorldByBoundingboxAndNormal](Longan.Viewer.md#locateworldbyboundingboxandnormal)
|
|
170
171
|
- [locateWorldByData](Longan.Viewer.md#locateworldbydata)
|
|
171
172
|
- [makeContextCurrent](Longan.Viewer.md#makecontextcurrent)
|
|
172
173
|
- [pixelPointToWorldPoint](Longan.Viewer.md#pixelpointtoworldpoint)
|
|
@@ -2424,6 +2425,27 @@ ___
|
|
|
2424
2425
|
|
|
2425
2426
|
___
|
|
2426
2427
|
|
|
2428
|
+
### locateWorldByBoundingboxAndNormal
|
|
2429
|
+
|
|
2430
|
+
▸ **locateWorldByBoundingboxAndNormal**(`bb`, `normal`): `void`
|
|
2431
|
+
|
|
2432
|
+
#### Parameters
|
|
2433
|
+
|
|
2434
|
+
| Name | Type |
|
|
2435
|
+
| :------ | :------ |
|
|
2436
|
+
| `bb` | `Float32Array` |
|
|
2437
|
+
| `normal` | `Float32Array` |
|
|
2438
|
+
|
|
2439
|
+
#### Returns
|
|
2440
|
+
|
|
2441
|
+
`void`
|
|
2442
|
+
|
|
2443
|
+
#### Inherited from
|
|
2444
|
+
|
|
2445
|
+
[Viewer](Longan.LonganCore.Viewer.md).[locateWorldByBoundingboxAndNormal](Longan.LonganCore.Viewer.md#locateworldbyboundingboxandnormal)
|
|
2446
|
+
|
|
2447
|
+
___
|
|
2448
|
+
|
|
2427
2449
|
### locateWorldByData
|
|
2428
2450
|
|
|
2429
2451
|
▸ **locateWorldByData**(`target`, `min`, `max`): `void`
|
package/docs/classes/Viewer.md
CHANGED
|
@@ -198,6 +198,7 @@
|
|
|
198
198
|
- [locateObject](Viewer.md#locateobject)
|
|
199
199
|
- [locatePoint](Viewer.md#locatepoint)
|
|
200
200
|
- [locateWorld](Viewer.md#locateworld)
|
|
201
|
+
- [locateWorldByBoundingboxAndNormal](Viewer.md#locateworldbyboundingboxandnormal)
|
|
201
202
|
- [locateWorldByData](Viewer.md#locateworldbydata)
|
|
202
203
|
- [makeContextCurrent](Viewer.md#makecontextcurrent)
|
|
203
204
|
- [pixelPointToWorldPoint](Viewer.md#pixelpointtoworldpoint)
|
|
@@ -3291,6 +3292,27 @@ ___
|
|
|
3291
3292
|
|
|
3292
3293
|
___
|
|
3293
3294
|
|
|
3295
|
+
### locateWorldByBoundingboxAndNormal
|
|
3296
|
+
|
|
3297
|
+
▸ **locateWorldByBoundingboxAndNormal**(`bb`, `normal`): `void`
|
|
3298
|
+
|
|
3299
|
+
#### Parameters
|
|
3300
|
+
|
|
3301
|
+
| Name | Type |
|
|
3302
|
+
| :------ | :------ |
|
|
3303
|
+
| `bb` | `Float32Array` |
|
|
3304
|
+
| `normal` | `Float32Array` |
|
|
3305
|
+
|
|
3306
|
+
#### Returns
|
|
3307
|
+
|
|
3308
|
+
`void`
|
|
3309
|
+
|
|
3310
|
+
#### Inherited from
|
|
3311
|
+
|
|
3312
|
+
[Viewer](Longan.Viewer.md).[locateWorldByBoundingboxAndNormal](Longan.Viewer.md#locateworldbyboundingboxandnormal)
|
|
3313
|
+
|
|
3314
|
+
___
|
|
3315
|
+
|
|
3294
3316
|
### locateWorldByData
|
|
3295
3317
|
|
|
3296
3318
|
▸ **locateWorldByData**(`target`, `min`, `max`): `void`
|
package/docs/gs-bim-air.md
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
[gs-bim-air](../gs-bim-air.md) / CAE
|
|
2
|
+
|
|
3
|
+
# Namespace: CAE
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Functions
|
|
8
|
+
|
|
9
|
+
- [cutModelByPlane](CAE.md#cutmodelbyplane)
|
|
10
|
+
- [insertPlaneCuttingResult](CAE.md#insertplanecuttingresult)
|
|
11
|
+
- [setColor](CAE.md#setcolor)
|
|
12
|
+
- [test](CAE.md#test)
|
|
13
|
+
|
|
14
|
+
## Functions
|
|
15
|
+
|
|
16
|
+
### cutModelByPlane
|
|
17
|
+
|
|
18
|
+
▸ **cutModelByPlane**(`segObj`, `planeRoot`, `planeNormal`): `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
|
|
19
|
+
|
|
20
|
+
#### Parameters
|
|
21
|
+
|
|
22
|
+
| Name | Type | Description |
|
|
23
|
+
| :------ | :------ | :------ |
|
|
24
|
+
| `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | 剖面切分cae分析模型 |
|
|
25
|
+
| `planeRoot` | `Float32Array` | 剖面点 |
|
|
26
|
+
| `planeNormal` | `Float32Array` | 剖面法向 |
|
|
27
|
+
|
|
28
|
+
#### Returns
|
|
29
|
+
|
|
30
|
+
`Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
|
|
31
|
+
|
|
32
|
+
剖切结果
|
|
33
|
+
|
|
34
|
+
___
|
|
35
|
+
|
|
36
|
+
### insertPlaneCuttingResult
|
|
37
|
+
|
|
38
|
+
▸ **insertPlaneCuttingResult**(`viewer`, `result`, `planeRoot`, `planeNormal`): `void`
|
|
39
|
+
|
|
40
|
+
#### Parameters
|
|
41
|
+
|
|
42
|
+
| Name | Type |
|
|
43
|
+
| :------ | :------ |
|
|
44
|
+
| `viewer` | [`Viewer`](../classes/Longan.Viewer.md) |
|
|
45
|
+
| `result` | [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\> |
|
|
46
|
+
| `planeRoot` | `Float32Array` |
|
|
47
|
+
| `planeNormal` | `Float32Array` |
|
|
48
|
+
|
|
49
|
+
#### Returns
|
|
50
|
+
|
|
51
|
+
`void`
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### setColor
|
|
56
|
+
|
|
57
|
+
▸ **setColor**(`segObj`, `color`): `Promise`<`unknown`\>
|
|
58
|
+
|
|
59
|
+
CAE后处理模型修改颜色
|
|
60
|
+
|
|
61
|
+
#### Parameters
|
|
62
|
+
|
|
63
|
+
| Name | Type | Description |
|
|
64
|
+
| :------ | :------ | :------ |
|
|
65
|
+
| `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | 构件对象 |
|
|
66
|
+
| `color` | `ArrayLike`<`number`\> | 顶点颜色数组 |
|
|
67
|
+
|
|
68
|
+
#### Returns
|
|
69
|
+
|
|
70
|
+
`Promise`<`unknown`\>
|
|
71
|
+
|
|
72
|
+
___
|
|
73
|
+
|
|
74
|
+
### test
|
|
75
|
+
|
|
76
|
+
▸ **test**(`segObj`): `void`
|
|
77
|
+
|
|
78
|
+
#### Parameters
|
|
79
|
+
|
|
80
|
+
| Name | Type |
|
|
81
|
+
| :------ | :------ |
|
|
82
|
+
| `segObj` | [`SegmentObject`](../classes/SegmentObject.md) |
|
|
83
|
+
|
|
84
|
+
#### Returns
|
|
85
|
+
|
|
86
|
+
`void`
|