gs-bim-air 1.6.1-beta.76 → 1.6.1-beta.78

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  ## BIMAir 更新日志
2
2
 
3
+ ### 1.6.1-beta.78
4
+
5
+ - feat: 修改 cae 后处理功能,改用表面模型
6
+
7
+ ### 1.6.1-beta.77
8
+
9
+ - feat: 修改 cae 剖切算法,增加颜色插值
10
+
3
11
  ### 1.6.1-beta.76
4
12
 
5
13
  - fix: 修改打包配置后无法识别 ViewerWrapper
@@ -22,7 +22,7 @@
22
22
  - [\_axisDirection](Command.CommandShowCaeAxisCut.md#_axisdirection)
23
23
  - [\_bb](Command.CommandShowCaeAxisCut.md#_bb)
24
24
  - [\_cuttingPlaneOperator](Command.CommandShowCaeAxisCut.md#_cuttingplaneoperator)
25
- - [\_elements](Command.CommandShowCaeAxisCut.md#_elements)
25
+ - [\_structure](Command.CommandShowCaeAxisCut.md#_structure)
26
26
  - [\_viewer](Command.CommandShowCaeAxisCut.md#_viewer)
27
27
  - [bag](Command.CommandShowCaeAxisCut.md#bag)
28
28
  - [onBegin](Command.CommandShowCaeAxisCut.md#onbegin)
@@ -112,9 +112,9 @@ ___
112
112
 
113
113
  ___
114
114
 
115
- ### \_elements
115
+ ### \_structure
116
116
 
117
- • **\_elements**: [`List`](Longan.List.md)<`CaeElement`\>
117
+ • **\_structure**: `CaeStructure`
118
118
 
119
119
  ___
120
120
 
@@ -6,247 +6,84 @@
6
6
 
7
7
  ### Functions
8
8
 
9
- - [cutElementByPlane](CAE.md#cutelementbyplane)
10
- - [cutElementByXAxis](CAE.md#cutelementbyxaxis)
11
- - [cutElementByYAxis](CAE.md#cutelementbyyaxis)
12
- - [cutElementByZAxis](CAE.md#cutelementbyzaxis)
13
- - [cutElementsByPlane](CAE.md#cutelementsbyplane)
14
- - [cutElementsImageByPlane](CAE.md#cutelementsimagebyplane)
15
9
  - [cutModelByPlane](CAE.md#cutmodelbyplane)
16
- - [cutModelByXAxis](CAE.md#cutmodelbyxaxis)
17
- - [cutModelByYAxis](CAE.md#cutmodelbyyaxis)
18
- - [cutModelByZAxis](CAE.md#cutmodelbyzaxis)
19
10
  - [cutModelImageByPlane](CAE.md#cutmodelimagebyplane)
20
- - [getElements](CAE.md#getelements)
21
- - [insertPlaneCuttingResult](CAE.md#insertplanecuttingresult)
11
+ - [cutStructureByPlane](CAE.md#cutstructurebyplane)
12
+ - [getStructure](CAE.md#getstructure)
22
13
  - [insertPlaneCuttingResultToSegment](CAE.md#insertplanecuttingresulttosegment)
23
14
  - [setColor](CAE.md#setcolor)
24
- - [test](CAE.md#test)
25
- - [test1](CAE.md#test1)
26
- - [test2](CAE.md#test2)
27
- - [testColor](CAE.md#testcolor)
28
15
 
29
16
  ## Functions
30
17
 
31
- ### cutElementByPlane
18
+ ### cutModelByPlane
32
19
 
33
- ▸ **cutElementByPlane**(`element`, `planeRoot`, `planeNormal`): { `data`: `undefined` ; `res`: `boolean` = false } \| { `data`: `CaeElementPlaneCuttingResult` ; `res`: `boolean` = true }
20
+ ▸ **cutModelByPlane**(`segObj`, `planeRoot`, `planeNormal`): `Promise`<[`List`](../classes/Longan.List.md)<`CaeCuttingResultItem`\>\>
34
21
 
35
- 剖面切分element
22
+ 剖切模型
36
23
 
37
24
  #### Parameters
38
25
 
39
26
  | Name | Type | Description |
40
27
  | :------ | :------ | :------ |
41
- | `element` | `CaeElement` | |
28
+ | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | cae模型构件对象 |
42
29
  | `planeRoot` | `Float32Array` | 剖面点 |
43
30
  | `planeNormal` | `Float32Array` | 剖面法向 |
44
31
 
45
32
  #### Returns
46
33
 
47
- { `data`: `undefined` ; `res`: `boolean` = false } \| { `data`: `CaeElementPlaneCuttingResult` ; `res`: `boolean` = true }
48
-
49
- ___
50
-
51
- ### cutElementByXAxis
52
-
53
- ▸ **cutElementByXAxis**(`element`, `coord`, `sign`): { `data`: `undefined` ; `res`: `boolean` = false } \| { `data`: `CaeElementPlaneCuttingResult` ; `res`: `boolean` = true }
54
-
55
- x方向剖面切分element
56
-
57
- #### Parameters
58
-
59
- | Name | Type | Description |
60
- | :------ | :------ | :------ |
61
- | `element` | `CaeElement` | |
62
- | `coord` | `number` | 坐标值 |
63
- | `sign` | `boolean` | 方向 |
64
-
65
- #### Returns
66
-
67
- { `data`: `undefined` ; `res`: `boolean` = false } \| { `data`: `CaeElementPlaneCuttingResult` ; `res`: `boolean` = true }
68
-
69
- ___
70
-
71
- ### cutElementByYAxis
72
-
73
- ▸ **cutElementByYAxis**(`element`, `coord`, `sign`): { `data`: `undefined` ; `res`: `boolean` = false } \| { `data`: `CaeElementPlaneCuttingResult` ; `res`: `boolean` = true }
74
-
75
- y方向剖面切分element
76
-
77
- #### Parameters
78
-
79
- | Name | Type | Description |
80
- | :------ | :------ | :------ |
81
- | `element` | `CaeElement` | |
82
- | `coord` | `number` | 坐标值 |
83
- | `sign` | `boolean` | 方向 |
34
+ `Promise`<[`List`](../classes/Longan.List.md)<`CaeCuttingResultItem`\>\>
84
35
 
85
- #### Returns
86
-
87
- { `data`: `undefined` ; `res`: `boolean` = false } \| { `data`: `CaeElementPlaneCuttingResult` ; `res`: `boolean` = true }
88
-
89
- ___
90
-
91
- ### cutElementByZAxis
92
-
93
- ▸ **cutElementByZAxis**(`element`, `coord`, `sign`): { `data`: `undefined` ; `res`: `boolean` = false } \| { `data`: `CaeElementPlaneCuttingResult` ; `res`: `boolean` = true }
94
-
95
- z方向剖面切分element
96
-
97
- #### Parameters
98
-
99
- | Name | Type | Description |
100
- | :------ | :------ | :------ |
101
- | `element` | `CaeElement` | |
102
- | `coord` | `number` | 坐标值 |
103
- | `sign` | `boolean` | 方向 |
104
-
105
- #### Returns
106
-
107
- { `data`: `undefined` ; `res`: `boolean` = false } \| { `data`: `CaeElementPlaneCuttingResult` ; `res`: `boolean` = true }
108
-
109
- ___
110
-
111
- ### cutElementsByPlane
112
-
113
- ▸ **cutElementsByPlane**(`elements`, `planeRoot`, `planeNormal`): [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>
114
-
115
- #### Parameters
116
-
117
- | Name | Type |
118
- | :------ | :------ |
119
- | `elements` | [`List`](../classes/Longan.List.md)<`CaeElement`\> |
120
- | `planeRoot` | `Float32Array` |
121
- | `planeNormal` | `Float32Array` |
122
-
123
- #### Returns
124
-
125
- [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>
36
+ 剖切结果
126
37
 
127
38
  ___
128
39
 
129
- ### cutElementsImageByPlane
130
-
131
- ▸ **cutElementsImageByPlane**(`elements`, `planeRoot`, `planeNormal`): [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>
132
-
133
- #### Parameters
134
-
135
- | Name | Type |
136
- | :------ | :------ |
137
- | `elements` | [`List`](../classes/Longan.List.md)<`CaeElement`\> |
138
- | `planeRoot` | `Float32Array` |
139
- | `planeNormal` | `Float32Array` |
140
-
141
- #### Returns
142
-
143
- [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>
144
-
145
- ___
40
+ ### cutModelImageByPlane
146
41
 
147
- ### cutModelByPlane
42
+ **cutModelImageByPlane**(`segObj`, `planeRoot`, `planeNormal`): `Promise`<`string`\>
148
43
 
149
- ▸ **cutModelByPlane**(`segObj`, `planeRoot`, `planeNormal`): `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
44
+ 剖切模型生成剖面图
150
45
 
151
46
  #### Parameters
152
47
 
153
48
  | Name | Type | Description |
154
49
  | :------ | :------ | :------ |
155
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | 剖面切分cae分析模型 |
50
+ | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | cae模型构件对象 |
156
51
  | `planeRoot` | `Float32Array` | 剖面点 |
157
52
  | `planeNormal` | `Float32Array` | 剖面法向 |
158
53
 
159
54
  #### Returns
160
55
 
161
- `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
56
+ `Promise`<`string`\>
162
57
 
163
- 剖切结果
58
+ 剖面图
164
59
 
165
60
  ___
166
61
 
167
- ### cutModelByXAxis
168
-
169
- ▸ **cutModelByXAxis**(`segObj`, `coord`, `sign`): `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
170
-
171
- #### Parameters
172
-
173
- | Name | Type | Description |
174
- | :------ | :------ | :------ |
175
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | 剖面切分cae分析模型 |
176
- | `coord` | `number` | 坐标值 |
177
- | `sign` | `boolean` | 方向 |
178
-
179
- #### Returns
62
+ ### cutStructureByPlane
180
63
 
181
- `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
64
+ ▸ **cutStructureByPlane**(`structure`, `planeRoot`, `planeNormal`): [`List`](../classes/Longan.List.md)<`CaeCuttingResultItem`\>
182
65
 
183
- 剖切结果
184
-
185
- ___
186
-
187
- ### cutModelByYAxis
188
-
189
- ▸ **cutModelByYAxis**(`segObj`, `coord`, `sign`): `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
66
+ 剖面切分cae模型
190
67
 
191
68
  #### Parameters
192
69
 
193
70
  | Name | Type | Description |
194
71
  | :------ | :------ | :------ |
195
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | 剖面切分cae分析模型 |
196
- | `coord` | `number` | 坐标值 |
197
- | `sign` | `boolean` | 方向 |
198
-
199
- #### Returns
200
-
201
- `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
202
-
203
- 剖切结果
204
-
205
- ___
206
-
207
- ### cutModelByZAxis
208
-
209
- ▸ **cutModelByZAxis**(`segObj`, `coord`, `sign`): `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
210
-
211
- #### Parameters
212
-
213
- | Name | Type | Description |
214
- | :------ | :------ | :------ |
215
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | 剖面切分cae分析模型 |
216
- | `coord` | `number` | 坐标值 |
217
- | `sign` | `boolean` | 方向 |
218
-
219
- #### Returns
220
-
221
- `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
222
-
223
- 剖切结果
224
-
225
- ___
226
-
227
- ### cutModelImageByPlane
228
-
229
- ▸ **cutModelImageByPlane**(`segObj`, `planeRoot`, `planeNormal`): `Promise`<`string`\>
230
-
231
- #### Parameters
232
-
233
- | Name | Type |
234
- | :------ | :------ |
235
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) |
236
- | `planeRoot` | `Float32Array` |
237
- | `planeNormal` | `Float32Array` |
72
+ | `structure` | `CaeStructure` | cae模型结构数据 |
73
+ | `planeRoot` | `Float32Array` | 剖面点 |
74
+ | `planeNormal` | `Float32Array` | 剖面法向 |
238
75
 
239
76
  #### Returns
240
77
 
241
- `Promise`<`string`\>
78
+ [`List`](../classes/Longan.List.md)<`CaeCuttingResultItem`\>
242
79
 
243
80
  ___
244
81
 
245
- ### getElements
82
+ ### getStructure
246
83
 
247
- ▸ **getElements**(`segment`): [`List`](../classes/Longan.List.md)<`CaeElement`\>
84
+ ▸ **getStructure**(`segment`): `CaeStructure`
248
85
 
249
- 解析分析模型数据
86
+ 解析cae模型结构
250
87
 
251
88
  #### Parameters
252
89
 
@@ -256,28 +93,9 @@ ___
256
93
 
257
94
  #### Returns
258
95
 
259
- [`List`](../classes/Longan.List.md)<`CaeElement`\>
260
-
261
- 分析模型element列表
262
-
263
- ___
264
-
265
- ### insertPlaneCuttingResult
266
-
267
- ▸ **insertPlaneCuttingResult**(`viewer`, `result`, `planeRoot`, `planeNormal`): `void`
268
-
269
- #### Parameters
270
-
271
- | Name | Type |
272
- | :------ | :------ |
273
- | `viewer` | [`Viewer`](../classes/Longan.Viewer.md) |
274
- | `result` | [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\> |
275
- | `planeRoot` | `Float32Array` |
276
- | `planeNormal` | `Float32Array` |
277
-
278
- #### Returns
96
+ `CaeStructure`
279
97
 
280
- `void`
98
+ cae模型结构
281
99
 
282
100
  ___
283
101
 
@@ -285,12 +103,14 @@ ___
285
103
 
286
104
  ▸ **insertPlaneCuttingResultToSegment**(`segment`, `result`): `void`
287
105
 
106
+ 插入剖切结果几何
107
+
288
108
  #### Parameters
289
109
 
290
- | Name | Type |
291
- | :------ | :------ |
292
- | `segment` | [`Segment`](../classes/Longan.Segment.md) |
293
- | `result` | [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\> |
110
+ | Name | Type | Description |
111
+ | :------ | :------ | :------ |
112
+ | `segment` | [`Segment`](../classes/Longan.Segment.md) | |
113
+ | `result` | [`List`](../classes/Longan.List.md)<`CaeCuttingResultItem`\> | 剖切结果 |
294
114
 
295
115
  #### Returns
296
116
 
@@ -300,82 +120,17 @@ ___
300
120
 
301
121
  ### setColor
302
122
 
303
- ▸ **setColor**(`segObj`, `colors`): `Promise`<`unknown`\>
123
+ ▸ **setColor**(`segObj`, `colorInfo`): `Promise`<`unknown`\>
304
124
 
305
- CAE后处理模型修改颜色
125
+ cae模型设置颜色
306
126
 
307
127
  #### Parameters
308
128
 
309
129
  | Name | Type | Description |
310
130
  | :------ | :------ | :------ |
311
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | 构件对象 |
312
- | `colors` | `ArrayLike`<`number`\> | 顶点颜色数组 |
131
+ | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | cae模型构件对象 |
132
+ | `colorInfo` | `any` | cae模型顶点颜色信息 |
313
133
 
314
134
  #### Returns
315
135
 
316
136
  `Promise`<`unknown`\>
317
-
318
- ___
319
-
320
- ### test
321
-
322
- ▸ **test**(`segObj`): `void`
323
-
324
- #### Parameters
325
-
326
- | Name | Type |
327
- | :------ | :------ |
328
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) |
329
-
330
- #### Returns
331
-
332
- `void`
333
-
334
- ___
335
-
336
- ### test1
337
-
338
- ▸ **test1**(`segObj`, `planeNormal`): `void`
339
-
340
- #### Parameters
341
-
342
- | Name | Type |
343
- | :------ | :------ |
344
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) |
345
- | `planeNormal` | `Float32Array` |
346
-
347
- #### Returns
348
-
349
- `void`
350
-
351
- ___
352
-
353
- ### test2
354
-
355
- ▸ **test2**(`elements`): `void`
356
-
357
- #### Parameters
358
-
359
- | Name | Type |
360
- | :------ | :------ |
361
- | `elements` | [`List`](../classes/Longan.List.md)<`CaeElement`\> |
362
-
363
- #### Returns
364
-
365
- `void`
366
-
367
- ___
368
-
369
- ### testColor
370
-
371
- ▸ **testColor**(`segObj`): `void`
372
-
373
- #### Parameters
374
-
375
- | Name | Type |
376
- | :------ | :------ |
377
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) |
378
-
379
- #### Returns
380
-
381
- `void`