gs-bim-air 1.6.1-beta.77 → 1.6.1-beta.79

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.79
4
+
5
+ - feat: objectRoamWithoutRotate 添加 camera 跟随
6
+
7
+ ### 1.6.1-beta.78
8
+
9
+ - feat: 修改 cae 后处理功能,改用表面模型
10
+
3
11
  ### 1.6.1-beta.77
4
12
 
5
13
  - feat: 修改 cae 剖切算法,增加颜色插值
@@ -30,11 +30,13 @@
30
30
  ### Methods
31
31
 
32
32
  - [cameraRoamPath](AnimationManager.md#cameraroampath)
33
+ - [computeWidthAndHeight](AnimationManager.md#computewidthandheight)
33
34
  - [drawPointsCurve](AnimationManager.md#drawpointscurve)
34
35
  - [drawStraight](AnimationManager.md#drawstraight)
35
36
  - [existAnime](AnimationManager.md#existanime)
36
37
  - [getPlayingPercent](AnimationManager.md#getplayingpercent)
37
38
  - [objectRoamWithoutRotate](AnimationManager.md#objectroamwithoutrotate)
39
+ - [objectRoamWithoutRotate\_CameraFollow](AnimationManager.md#objectroamwithoutrotate_camerafollow)
38
40
  - [pauseAnime](AnimationManager.md#pauseanime)
39
41
  - [removeAnime](AnimationManager.md#removeanime)
40
42
  - [resetAnimationItems](AnimationManager.md#resetanimationitems)
@@ -164,6 +166,23 @@ Longan.AnimationManager.process
164
166
 
165
167
  ___
166
168
 
169
+ ### computeWidthAndHeight
170
+
171
+ ▸ **computeWidthAndHeight**(`viewer`, `segmentObject`): `number`
172
+
173
+ #### Parameters
174
+
175
+ | Name | Type |
176
+ | :------ | :------ |
177
+ | `viewer` | [`Viewer`](Viewer.md) |
178
+ | `segmentObject` | [`SegmentObject`](SegmentObject.md) |
179
+
180
+ #### Returns
181
+
182
+ `number`
183
+
184
+ ___
185
+
167
186
  ### drawPointsCurve
168
187
 
169
188
  ▸ **drawPointsCurve**(`viewer`, `points`): `void`
@@ -267,6 +286,33 @@ ___
267
286
 
268
287
  ___
269
288
 
289
+ ### objectRoamWithoutRotate\_CameraFollow
290
+
291
+ ▸ **objectRoamWithoutRotate_CameraFollow**(`viewer`, `segmentObject`, `points`, `roamTime`, `pathType`, `isCameraFollow`, `cameraOffset`, `finishEvent?`): `string`
292
+
293
+ 只平移的路径动画.
294
+
295
+ #### Parameters
296
+
297
+ | Name | Type | Description |
298
+ | :------ | :------ | :------ |
299
+ | `viewer` | [`Viewer`](Viewer.md) | BimAir的viewer |
300
+ | `segmentObject` | [`SegmentObject`](SegmentObject.md) | 动画移动的对象 |
301
+ | `points` | [`Point`](Longan.Point.md)[] | 路径点列表 |
302
+ | `roamTime` | `number` | 动画时间 |
303
+ | `pathType` | `PathType` | 路径类型(直线/曲线) |
304
+ | `isCameraFollow` | `boolean` | 相机是否跟随 |
305
+ | `cameraOffset` | `Float64Array` | 相机偏移:[x方向:通过y叉乘z得出,y方向:运动路径前方,z方向:通常是(0,0,1)] |
306
+ | `finishEvent?` | () => `void` | 结束事件 |
307
+
308
+ #### Returns
309
+
310
+ `string`
311
+
312
+ 动画的Id
313
+
314
+ ___
315
+
270
316
  ### pauseAnime
271
317
 
272
318
  ▸ **pauseAnime**(`id`): `number`
@@ -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,121 +6,84 @@
6
6
 
7
7
  ### Functions
8
8
 
9
- - [cutElementByPlane](CAE.md#cutelementbyplane)
10
- - [cutElementsByPlane](CAE.md#cutelementsbyplane)
11
- - [cutElementsImageByPlane](CAE.md#cutelementsimagebyplane)
12
9
  - [cutModelByPlane](CAE.md#cutmodelbyplane)
13
10
  - [cutModelImageByPlane](CAE.md#cutmodelimagebyplane)
14
- - [getElements](CAE.md#getelements)
15
- - [insertPlaneCuttingResult](CAE.md#insertplanecuttingresult)
11
+ - [cutStructureByPlane](CAE.md#cutstructurebyplane)
12
+ - [getStructure](CAE.md#getstructure)
16
13
  - [insertPlaneCuttingResultToSegment](CAE.md#insertplanecuttingresulttosegment)
17
14
  - [setColor](CAE.md#setcolor)
18
- - [test](CAE.md#test)
19
- - [test1](CAE.md#test1)
20
- - [test2](CAE.md#test2)
21
- - [testColor](CAE.md#testcolor)
22
15
 
23
16
  ## Functions
24
17
 
25
- ### cutElementByPlane
18
+ ### cutModelByPlane
26
19
 
27
- ▸ **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`\>\>
28
21
 
29
- 剖面切分element
22
+ 剖切模型
30
23
 
31
24
  #### Parameters
32
25
 
33
26
  | Name | Type | Description |
34
27
  | :------ | :------ | :------ |
35
- | `element` | `CaeElement` | |
28
+ | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | cae模型构件对象 |
36
29
  | `planeRoot` | `Float32Array` | 剖面点 |
37
30
  | `planeNormal` | `Float32Array` | 剖面法向 |
38
31
 
39
32
  #### Returns
40
33
 
41
- { `data`: `undefined` ; `res`: `boolean` = false } \| { `data`: `CaeElementPlaneCuttingResult` ; `res`: `boolean` = true }
42
-
43
- ___
44
-
45
- ### cutElementsByPlane
46
-
47
- ▸ **cutElementsByPlane**(`elements`, `planeRoot`, `planeNormal`): [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>
48
-
49
- #### Parameters
50
-
51
- | Name | Type |
52
- | :------ | :------ |
53
- | `elements` | [`List`](../classes/Longan.List.md)<`CaeElement`\> |
54
- | `planeRoot` | `Float32Array` |
55
- | `planeNormal` | `Float32Array` |
34
+ `Promise`<[`List`](../classes/Longan.List.md)<`CaeCuttingResultItem`\>\>
56
35
 
57
- #### Returns
58
-
59
- [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>
36
+ 剖切结果
60
37
 
61
38
  ___
62
39
 
63
- ### cutElementsImageByPlane
64
-
65
- ▸ **cutElementsImageByPlane**(`elements`, `planeRoot`, `planeNormal`): [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>
66
-
67
- #### Parameters
68
-
69
- | Name | Type |
70
- | :------ | :------ |
71
- | `elements` | [`List`](../classes/Longan.List.md)<`CaeElement`\> |
72
- | `planeRoot` | `Float32Array` |
73
- | `planeNormal` | `Float32Array` |
74
-
75
- #### Returns
76
-
77
- [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>
78
-
79
- ___
40
+ ### cutModelImageByPlane
80
41
 
81
- ### cutModelByPlane
42
+ **cutModelImageByPlane**(`segObj`, `planeRoot`, `planeNormal`): `Promise`<`string`\>
82
43
 
83
- ▸ **cutModelByPlane**(`segObj`, `planeRoot`, `planeNormal`): `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
44
+ 剖切模型生成剖面图
84
45
 
85
46
  #### Parameters
86
47
 
87
48
  | Name | Type | Description |
88
49
  | :------ | :------ | :------ |
89
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | 剖面切分cae分析模型 |
50
+ | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | cae模型构件对象 |
90
51
  | `planeRoot` | `Float32Array` | 剖面点 |
91
52
  | `planeNormal` | `Float32Array` | 剖面法向 |
92
53
 
93
54
  #### Returns
94
55
 
95
- `Promise`<[`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\>\>
56
+ `Promise`<`string`\>
96
57
 
97
- 剖切结果
58
+ 剖面图
98
59
 
99
60
  ___
100
61
 
101
- ### cutModelImageByPlane
62
+ ### cutStructureByPlane
102
63
 
103
- ▸ **cutModelImageByPlane**(`segObj`, `planeRoot`, `planeNormal`): `Promise`<`string`\>
64
+ ▸ **cutStructureByPlane**(`structure`, `planeRoot`, `planeNormal`): [`List`](../classes/Longan.List.md)<`CaeCuttingResultItem`\>
65
+
66
+ 剖面切分cae模型
104
67
 
105
68
  #### Parameters
106
69
 
107
- | Name | Type |
108
- | :------ | :------ |
109
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) |
110
- | `planeRoot` | `Float32Array` |
111
- | `planeNormal` | `Float32Array` |
70
+ | Name | Type | Description |
71
+ | :------ | :------ | :------ |
72
+ | `structure` | `CaeStructure` | cae模型结构数据 |
73
+ | `planeRoot` | `Float32Array` | 剖面点 |
74
+ | `planeNormal` | `Float32Array` | 剖面法向 |
112
75
 
113
76
  #### Returns
114
77
 
115
- `Promise`<`string`\>
78
+ [`List`](../classes/Longan.List.md)<`CaeCuttingResultItem`\>
116
79
 
117
80
  ___
118
81
 
119
- ### getElements
82
+ ### getStructure
120
83
 
121
- ▸ **getElements**(`segment`): [`List`](../classes/Longan.List.md)<`CaeElement`\>
84
+ ▸ **getStructure**(`segment`): `CaeStructure`
122
85
 
123
- 解析分析模型数据
86
+ 解析cae模型结构
124
87
 
125
88
  #### Parameters
126
89
 
@@ -130,28 +93,9 @@ ___
130
93
 
131
94
  #### Returns
132
95
 
133
- [`List`](../classes/Longan.List.md)<`CaeElement`\>
96
+ `CaeStructure`
134
97
 
135
- 分析模型element列表
136
-
137
- ___
138
-
139
- ### insertPlaneCuttingResult
140
-
141
- ▸ **insertPlaneCuttingResult**(`viewer`, `result`, `planeRoot`, `planeNormal`): `void`
142
-
143
- #### Parameters
144
-
145
- | Name | Type |
146
- | :------ | :------ |
147
- | `viewer` | [`Viewer`](../classes/Longan.Viewer.md) |
148
- | `result` | [`List`](../classes/Longan.List.md)<`CaeElementPlaneCuttingResult`\> |
149
- | `planeRoot` | `Float32Array` |
150
- | `planeNormal` | `Float32Array` |
151
-
152
- #### Returns
153
-
154
- `void`
98
+ cae模型结构
155
99
 
156
100
  ___
157
101
 
@@ -159,12 +103,14 @@ ___
159
103
 
160
104
  ▸ **insertPlaneCuttingResultToSegment**(`segment`, `result`): `void`
161
105
 
106
+ 插入剖切结果几何
107
+
162
108
  #### Parameters
163
109
 
164
- | Name | Type |
165
- | :------ | :------ |
166
- | `segment` | [`Segment`](../classes/Longan.Segment.md) |
167
- | `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`\> | 剖切结果 |
168
114
 
169
115
  #### Returns
170
116
 
@@ -174,82 +120,17 @@ ___
174
120
 
175
121
  ### setColor
176
122
 
177
- ▸ **setColor**(`segObj`, `colors`): `Promise`<`unknown`\>
123
+ ▸ **setColor**(`segObj`, `colorInfo`): `Promise`<`unknown`\>
178
124
 
179
- CAE后处理模型修改颜色
125
+ cae模型设置颜色
180
126
 
181
127
  #### Parameters
182
128
 
183
129
  | Name | Type | Description |
184
130
  | :------ | :------ | :------ |
185
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | 构件对象 |
186
- | `colors` | `ArrayLike`<`number`\> | 顶点颜色数组 |
131
+ | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) | cae模型构件对象 |
132
+ | `colorInfo` | `any` | cae模型顶点颜色信息 |
187
133
 
188
134
  #### Returns
189
135
 
190
136
  `Promise`<`unknown`\>
191
-
192
- ___
193
-
194
- ### test
195
-
196
- ▸ **test**(`segObj`): `void`
197
-
198
- #### Parameters
199
-
200
- | Name | Type |
201
- | :------ | :------ |
202
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) |
203
-
204
- #### Returns
205
-
206
- `void`
207
-
208
- ___
209
-
210
- ### test1
211
-
212
- ▸ **test1**(`segObj`, `planeNormal`): `void`
213
-
214
- #### Parameters
215
-
216
- | Name | Type |
217
- | :------ | :------ |
218
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) |
219
- | `planeNormal` | `Float32Array` |
220
-
221
- #### Returns
222
-
223
- `void`
224
-
225
- ___
226
-
227
- ### test2
228
-
229
- ▸ **test2**(`elements`): `void`
230
-
231
- #### Parameters
232
-
233
- | Name | Type |
234
- | :------ | :------ |
235
- | `elements` | [`List`](../classes/Longan.List.md)<`CaeElement`\> |
236
-
237
- #### Returns
238
-
239
- `void`
240
-
241
- ___
242
-
243
- ### testColor
244
-
245
- ▸ **testColor**(`segObj`): `void`
246
-
247
- #### Parameters
248
-
249
- | Name | Type |
250
- | :------ | :------ |
251
- | `segObj` | [`SegmentObject`](../classes/SegmentObject.md) |
252
-
253
- #### Returns
254
-
255
- `void`