gs-bim-air 1.6.1-beta.13 → 1.6.1-beta.15
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 +36 -0
- package/demo//344/272/213/344/273/266/346/223/215/344/275/234//346/267/273/345/212/240/346/226/207/346/234/254/346/240/207/347/255/276.html +1 -0
- package/docs/classes/DataManagerBase.md +23 -1
- package/docs/classes/LightModel.md +20 -0
- package/docs/classes/Longan.CameraMouse.md +13 -0
- package/docs/classes/Longan.CameraPlanMouse.md +17 -0
- package/docs/classes/Longan.DGeometryOperators.md +94 -2
- package/docs/classes/Longan.DataManagerBase.md +17 -0
- package/docs/classes/Longan.EarthCameraMouse.md +17 -0
- package/docs/classes/Longan.GeometryOperators.md +39 -2
- package/docs/classes/Longan.Line.md +9 -2
- package/docs/classes/Longan.LonganCore.Viewer.md +56 -3
- package/docs/classes/Longan.Matrix4.md +10 -4
- package/docs/classes/Longan.Mesh.md +19 -2
- package/docs/classes/Longan.PanoramaCameraMouse.md +17 -0
- package/docs/classes/Longan.ParametricGeometry.md +19 -2
- package/docs/classes/Longan.PerspectiveCameraMouse.md +17 -0
- package/docs/classes/Longan.Polyline.md +9 -2
- package/docs/classes/Longan.Shell.md +19 -2
- package/docs/classes/Longan.Tolerance.md +19 -0
- package/docs/classes/Longan.TriangularShell.md +19 -2
- package/docs/classes/Longan.Viewer.md +77 -4
- package/docs/classes/Material.md +11 -0
- package/docs/classes/Viewer.md +106 -9
- package/docs/modules/Longan.LonganCore.md +66 -14
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +46 -26
- package/lib/BimAir.css +1182 -0
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +46 -26
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +46 -26
- package/lib/undefined.gzundefined +0 -0
- package/package.json +1 -1
- package/public/js/longan/longan.js +506 -494
- package/public/js/longan/longan.wasm +0 -0
- package/public/js/longanWithoutShareArrayBuffer/longan.js +1 -1
- package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
- package/readme//346/250/241/345/236/213/346/210/252/345/217/226/347/244/272/344/276/213.md +47 -0
package/README.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
## 更新日志
|
|
2
2
|
|
|
3
|
+
### 1.6.1-beta.15
|
|
4
|
+
|
|
5
|
+
> 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
6
|
+
>
|
|
7
|
+
> Longan 更新为 v1.6.1-beta.12
|
|
8
|
+
|
|
9
|
+
- feat: 添加模型截取功能,具体示例请看[模型截取示例](./readme/%E6%A8%A1%E5%9E%8B%E6%88%AA%E5%8F%96%E7%A4%BA%E4%BE%8B.md)
|
|
10
|
+
- feat: lightModel 添加 streamToSegmentRunningCount 计数器.
|
|
11
|
+
- feat: 结构树界面显示时不隐藏按钮
|
|
12
|
+
- feat: 添加几何加载完毕后回调列表 geometryDrawFinish,使用方式如下:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
viewer.geometryDrawFinish.add(() => {
|
|
16
|
+
console.log("几何完成绘制");
|
|
17
|
+
});
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
- fix: 修复在打开批注面板然后关闭批注面板,恢复一个保存了批注的视点,无法恢复批注且控制台报错
|
|
23
|
+
- fix: 修复 ensureSegmentAsynGeometry 的异步逻辑
|
|
24
|
+
- fix: 修复 isBusyLocked 状态,在同时使用右键、中键时,重复按下、松开右键,会导致 viewer.isBusy 状态异常的问题;现在只有在 3 个按键都松开的情况下,解除 isBusyLock.
|
|
25
|
+
- fix: 修复 onTaskProcessingFinished 修改 runningCount 计数使用的 viewer 对象错误的问题.
|
|
26
|
+
- fix: 增加字体包重复加载判断
|
|
27
|
+
|
|
28
|
+
### 1.6.1-beta.14
|
|
29
|
+
|
|
30
|
+
> 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
31
|
+
>
|
|
32
|
+
> Longan 更新为 v1.6.1-beta.11
|
|
33
|
+
|
|
34
|
+
- feat: 插入 font library 时,添加是否已存贮判断
|
|
35
|
+
- feat: 添加根据材质名字移除重写颜色数据
|
|
36
|
+
- fix: 更新 wasm,修复双屏闪缩问题
|
|
37
|
+
- fix: 修复切换视点时,罗盘没有没有变化的问题
|
|
38
|
+
|
|
3
39
|
### 1.6.1-beta.13
|
|
4
40
|
|
|
5
41
|
> 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
- [optimizeObjects](DataManagerBase.md#optimizeobjects)
|
|
40
40
|
- [removeAllDatas](DataManagerBase.md#removealldatas)
|
|
41
41
|
- [removeDatas](DataManagerBase.md#removedatas)
|
|
42
|
+
- [removeDatasByName](DataManagerBase.md#removedatasbyname)
|
|
42
43
|
- [removeObjects](DataManagerBase.md#removeobjects)
|
|
43
44
|
|
|
44
45
|
## Constructors
|
|
@@ -157,13 +158,14 @@ ___
|
|
|
157
158
|
|
|
158
159
|
### addObjects
|
|
159
160
|
|
|
160
|
-
▸ **addObjects**(`objs`, `callback?`): `void`
|
|
161
|
+
▸ **addObjects**(`objs`, `materialName`, `callback?`): `void`
|
|
161
162
|
|
|
162
163
|
#### Parameters
|
|
163
164
|
|
|
164
165
|
| Name | Type |
|
|
165
166
|
| :------ | :------ |
|
|
166
167
|
| `objs` | [`TreeNodeObject`](TreeNodeObject.md)[] \| [`SegmentObject`](SegmentObject.md)[] |
|
|
168
|
+
| `materialName` | `string` |
|
|
167
169
|
| `callback?` | (`key`: `any`, `path`: `any`) => `void` |
|
|
168
170
|
|
|
169
171
|
#### Returns
|
|
@@ -338,6 +340,26 @@ ___
|
|
|
338
340
|
|
|
339
341
|
___
|
|
340
342
|
|
|
343
|
+
### removeDatasByName
|
|
344
|
+
|
|
345
|
+
▸ **removeDatasByName**(`name`): `void`
|
|
346
|
+
|
|
347
|
+
#### Parameters
|
|
348
|
+
|
|
349
|
+
| Name | Type |
|
|
350
|
+
| :------ | :------ |
|
|
351
|
+
| `name` | `string` |
|
|
352
|
+
|
|
353
|
+
#### Returns
|
|
354
|
+
|
|
355
|
+
`void`
|
|
356
|
+
|
|
357
|
+
#### Inherited from
|
|
358
|
+
|
|
359
|
+
[DataManagerBase](Longan.DataManagerBase.md).[removeDatasByName](Longan.DataManagerBase.md#removedatasbyname)
|
|
360
|
+
|
|
361
|
+
___
|
|
362
|
+
|
|
341
363
|
### removeObjects
|
|
342
364
|
|
|
343
365
|
▸ **removeObjects**(`objs`, `callback?`): `void`
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
- [setComponentsIsolation](LightModel.md#setcomponentsisolation)
|
|
84
84
|
- [setComponentsVisible](LightModel.md#setcomponentsvisible)
|
|
85
85
|
- [setCutting](LightModel.md#setcutting)
|
|
86
|
+
- [streamToSegmentTt](LightModel.md#streamtosegmenttt)
|
|
86
87
|
|
|
87
88
|
## Constructors
|
|
88
89
|
|
|
@@ -1356,3 +1357,22 @@ ___
|
|
|
1356
1357
|
#### Returns
|
|
1357
1358
|
|
|
1358
1359
|
`void`
|
|
1360
|
+
|
|
1361
|
+
___
|
|
1362
|
+
|
|
1363
|
+
### streamToSegmentTt
|
|
1364
|
+
|
|
1365
|
+
▸ **streamToSegmentTt**(`bytes`, `segmentKey`, `no`, `viewer`): `void`
|
|
1366
|
+
|
|
1367
|
+
#### Parameters
|
|
1368
|
+
|
|
1369
|
+
| Name | Type |
|
|
1370
|
+
| :------ | :------ |
|
|
1371
|
+
| `bytes` | `ArrayBuffer` |
|
|
1372
|
+
| `segmentKey` | `number` |
|
|
1373
|
+
| `no` | `number` |
|
|
1374
|
+
| `viewer` | [`Viewer`](Viewer.md) |
|
|
1375
|
+
|
|
1376
|
+
#### Returns
|
|
1377
|
+
|
|
1378
|
+
`void`
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
### Accessors
|
|
74
74
|
|
|
75
75
|
- [enable](Longan.CameraMouse.md#enable)
|
|
76
|
+
- [isBusyLocked](Longan.CameraMouse.md#isbusylocked)
|
|
76
77
|
- [lButtonSate](Longan.CameraMouse.md#lbuttonsate)
|
|
77
78
|
- [viewer](Longan.CameraMouse.md#viewer)
|
|
78
79
|
|
|
@@ -503,6 +504,18 @@ ViewerOperator.enable
|
|
|
503
504
|
|
|
504
505
|
___
|
|
505
506
|
|
|
507
|
+
### isBusyLocked
|
|
508
|
+
|
|
509
|
+
• `get` **isBusyLocked**(): `boolean`
|
|
510
|
+
|
|
511
|
+
左、中、右键任一按键Down后,lock住_recordIsBusy.
|
|
512
|
+
|
|
513
|
+
#### Returns
|
|
514
|
+
|
|
515
|
+
`boolean`
|
|
516
|
+
|
|
517
|
+
___
|
|
518
|
+
|
|
506
519
|
### lButtonSate
|
|
507
520
|
|
|
508
521
|
• `get` **lButtonSate**(): `LButtonState`
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
### Accessors
|
|
66
66
|
|
|
67
67
|
- [enable](Longan.CameraPlanMouse.md#enable)
|
|
68
|
+
- [isBusyLocked](Longan.CameraPlanMouse.md#isbusylocked)
|
|
68
69
|
- [lButtonSate](Longan.CameraPlanMouse.md#lbuttonsate)
|
|
69
70
|
- [viewer](Longan.CameraPlanMouse.md#viewer)
|
|
70
71
|
|
|
@@ -579,6 +580,22 @@ CameraMouse.enable
|
|
|
579
580
|
|
|
580
581
|
___
|
|
581
582
|
|
|
583
|
+
### isBusyLocked
|
|
584
|
+
|
|
585
|
+
• `get` **isBusyLocked**(): `boolean`
|
|
586
|
+
|
|
587
|
+
左、中、右键任一按键Down后,lock住_recordIsBusy.
|
|
588
|
+
|
|
589
|
+
#### Returns
|
|
590
|
+
|
|
591
|
+
`boolean`
|
|
592
|
+
|
|
593
|
+
#### Inherited from
|
|
594
|
+
|
|
595
|
+
CameraMouse.isBusyLocked
|
|
596
|
+
|
|
597
|
+
___
|
|
598
|
+
|
|
582
599
|
### lButtonSate
|
|
583
600
|
|
|
584
601
|
• `get` **lButtonSate**(): `LButtonState`
|
|
@@ -12,15 +12,19 @@
|
|
|
12
12
|
|
|
13
13
|
### Methods
|
|
14
14
|
|
|
15
|
+
- [angleBetween](Longan.DGeometryOperators.md#anglebetween)
|
|
16
|
+
- [angleBetweenByNormal](Longan.DGeometryOperators.md#anglebetweenbynormal)
|
|
15
17
|
- [arrangePolygon](Longan.DGeometryOperators.md#arrangepolygon)
|
|
16
18
|
- [closestPoint](Longan.DGeometryOperators.md#closestpoint)
|
|
17
19
|
- [createPolylinesBySegments](Longan.DGeometryOperators.md#createpolylinesbysegments)
|
|
18
20
|
- [createRingPoints](Longan.DGeometryOperators.md#createringpoints)
|
|
19
21
|
- [distance](Longan.DGeometryOperators.md#distance)
|
|
20
22
|
- [distancePoint](Longan.DGeometryOperators.md#distancepoint)
|
|
23
|
+
- [includeAngleBetween](Longan.DGeometryOperators.md#includeanglebetween)
|
|
21
24
|
- [intersectionLineLine](Longan.DGeometryOperators.md#intersectionlineline)
|
|
22
25
|
- [intersectionLinePlane](Longan.DGeometryOperators.md#intersectionlineplane)
|
|
23
26
|
- [intersectionLineSegmentLineSegment](Longan.DGeometryOperators.md#intersectionlinesegmentlinesegment)
|
|
27
|
+
- [intersectionLineSegmentPlane](Longan.DGeometryOperators.md#intersectionlinesegmentplane)
|
|
24
28
|
- [inversePolygon](Longan.DGeometryOperators.md#inversepolygon)
|
|
25
29
|
- [isParallel](Longan.DGeometryOperators.md#isparallel)
|
|
26
30
|
- [isPerpendicular](Longan.DGeometryOperators.md#isperpendicular)
|
|
@@ -34,6 +38,7 @@
|
|
|
34
38
|
- [projectPointToLine1](Longan.DGeometryOperators.md#projectpointtoline1)
|
|
35
39
|
- [projectPointToLineWithParam](Longan.DGeometryOperators.md#projectpointtolinewithparam)
|
|
36
40
|
- [projectPointToPlane](Longan.DGeometryOperators.md#projectpointtoplane)
|
|
41
|
+
- [reversePoints](Longan.DGeometryOperators.md#reversepoints)
|
|
37
42
|
- [samePoint](Longan.DGeometryOperators.md#samepoint)
|
|
38
43
|
- [samePointWithTolerance](Longan.DGeometryOperators.md#samepointwithtolerance)
|
|
39
44
|
- [sameVector](Longan.DGeometryOperators.md#samevector)
|
|
@@ -46,6 +51,41 @@
|
|
|
46
51
|
|
|
47
52
|
## Methods
|
|
48
53
|
|
|
54
|
+
### angleBetween
|
|
55
|
+
|
|
56
|
+
▸ `Static` **angleBetween**(`v0`, `v1`): `number`
|
|
57
|
+
|
|
58
|
+
#### Parameters
|
|
59
|
+
|
|
60
|
+
| Name | Type |
|
|
61
|
+
| :------ | :------ |
|
|
62
|
+
| `v0` | `Float64Array` |
|
|
63
|
+
| `v1` | `Float64Array` |
|
|
64
|
+
|
|
65
|
+
#### Returns
|
|
66
|
+
|
|
67
|
+
`number`
|
|
68
|
+
|
|
69
|
+
___
|
|
70
|
+
|
|
71
|
+
### angleBetweenByNormal
|
|
72
|
+
|
|
73
|
+
▸ `Static` **angleBetweenByNormal**(`v0`, `v1`, `normal`): `number`
|
|
74
|
+
|
|
75
|
+
#### Parameters
|
|
76
|
+
|
|
77
|
+
| Name | Type |
|
|
78
|
+
| :------ | :------ |
|
|
79
|
+
| `v0` | `Float64Array` |
|
|
80
|
+
| `v1` | `Float64Array` |
|
|
81
|
+
| `normal` | `Float64Array` |
|
|
82
|
+
|
|
83
|
+
#### Returns
|
|
84
|
+
|
|
85
|
+
`number`
|
|
86
|
+
|
|
87
|
+
___
|
|
88
|
+
|
|
49
89
|
### arrangePolygon
|
|
50
90
|
|
|
51
91
|
▸ `Static` **arrangePolygon**(`polygon`, `tolerance`): `Float64Array`
|
|
@@ -155,6 +195,23 @@ ___
|
|
|
155
195
|
|
|
156
196
|
___
|
|
157
197
|
|
|
198
|
+
### includeAngleBetween
|
|
199
|
+
|
|
200
|
+
▸ `Static` **includeAngleBetween**(`v0`, `v1`): `number`
|
|
201
|
+
|
|
202
|
+
#### Parameters
|
|
203
|
+
|
|
204
|
+
| Name | Type |
|
|
205
|
+
| :------ | :------ |
|
|
206
|
+
| `v0` | `Float64Array` |
|
|
207
|
+
| `v1` | `Float64Array` |
|
|
208
|
+
|
|
209
|
+
#### Returns
|
|
210
|
+
|
|
211
|
+
`number`
|
|
212
|
+
|
|
213
|
+
___
|
|
214
|
+
|
|
158
215
|
### intersectionLineLine
|
|
159
216
|
|
|
160
217
|
▸ `Static` **intersectionLineLine**(`line0_p0`, `line0_p1`, `line1_p0`, `line1_p1`): `any`
|
|
@@ -176,7 +233,7 @@ ___
|
|
|
176
233
|
|
|
177
234
|
### intersectionLinePlane
|
|
178
235
|
|
|
179
|
-
▸ `Static` **intersectionLinePlane**(`line_point`, `line_dir`, `plane_point`, `plane_dir`): { `param`: `undefined` =
|
|
236
|
+
▸ `Static` **intersectionLinePlane**(`line_point`, `line_dir`, `plane_point`, `plane_dir`): { `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `number` = line\_param; `pos`: `Float64Array` = result; `res`: `boolean` = true }
|
|
180
237
|
|
|
181
238
|
#### Parameters
|
|
182
239
|
|
|
@@ -189,7 +246,7 @@ ___
|
|
|
189
246
|
|
|
190
247
|
#### Returns
|
|
191
248
|
|
|
192
|
-
{ `param`: `undefined` =
|
|
249
|
+
{ `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `number` = line\_param; `pos`: `Float64Array` = result; `res`: `boolean` = true }
|
|
193
250
|
|
|
194
251
|
___
|
|
195
252
|
|
|
@@ -212,6 +269,25 @@ ___
|
|
|
212
269
|
|
|
213
270
|
___
|
|
214
271
|
|
|
272
|
+
### intersectionLineSegmentPlane
|
|
273
|
+
|
|
274
|
+
▸ `Static` **intersectionLineSegmentPlane**(`line_start`, `line_end`, `plane_root`, `plane_normal`): { `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `any` = inter\_param; `pos`: `any` = inter\_point; `res`: `boolean` = true }
|
|
275
|
+
|
|
276
|
+
#### Parameters
|
|
277
|
+
|
|
278
|
+
| Name | Type |
|
|
279
|
+
| :------ | :------ |
|
|
280
|
+
| `line_start` | `Float64Array` |
|
|
281
|
+
| `line_end` | `Float64Array` |
|
|
282
|
+
| `plane_root` | `Float64Array` |
|
|
283
|
+
| `plane_normal` | `Float64Array` |
|
|
284
|
+
|
|
285
|
+
#### Returns
|
|
286
|
+
|
|
287
|
+
{ `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `any` = inter\_param; `pos`: `any` = inter\_point; `res`: `boolean` = true }
|
|
288
|
+
|
|
289
|
+
___
|
|
290
|
+
|
|
215
291
|
### inversePolygon
|
|
216
292
|
|
|
217
293
|
▸ `Static` **inversePolygon**(`polygon`): `void`
|
|
@@ -444,6 +520,22 @@ ___
|
|
|
444
520
|
|
|
445
521
|
___
|
|
446
522
|
|
|
523
|
+
### reversePoints
|
|
524
|
+
|
|
525
|
+
▸ `Static` **reversePoints**(`points`): `number`[]
|
|
526
|
+
|
|
527
|
+
#### Parameters
|
|
528
|
+
|
|
529
|
+
| Name | Type |
|
|
530
|
+
| :------ | :------ |
|
|
531
|
+
| `points` | `ArrayLike`<`number`\> |
|
|
532
|
+
|
|
533
|
+
#### Returns
|
|
534
|
+
|
|
535
|
+
`number`[]
|
|
536
|
+
|
|
537
|
+
___
|
|
538
|
+
|
|
447
539
|
### samePoint
|
|
448
540
|
|
|
449
541
|
▸ `Static` **samePoint**(`p0`, `p1`): `boolean`
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
- [hasKey](Longan.DataManagerBase.md#haskey)
|
|
35
35
|
- [removeAllDatas](Longan.DataManagerBase.md#removealldatas)
|
|
36
36
|
- [removeDatas](Longan.DataManagerBase.md#removedatas)
|
|
37
|
+
- [removeDatasByName](Longan.DataManagerBase.md#removedatasbyname)
|
|
37
38
|
|
|
38
39
|
## Constructors
|
|
39
40
|
|
|
@@ -159,3 +160,19 @@ ___
|
|
|
159
160
|
#### Returns
|
|
160
161
|
|
|
161
162
|
`void`
|
|
163
|
+
|
|
164
|
+
___
|
|
165
|
+
|
|
166
|
+
### removeDatasByName
|
|
167
|
+
|
|
168
|
+
▸ **removeDatasByName**(`name`): `void`
|
|
169
|
+
|
|
170
|
+
#### Parameters
|
|
171
|
+
|
|
172
|
+
| Name | Type |
|
|
173
|
+
| :------ | :------ |
|
|
174
|
+
| `name` | `string` |
|
|
175
|
+
|
|
176
|
+
#### Returns
|
|
177
|
+
|
|
178
|
+
`void`
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
### Accessors
|
|
77
77
|
|
|
78
78
|
- [enable](Longan.EarthCameraMouse.md#enable)
|
|
79
|
+
- [isBusyLocked](Longan.EarthCameraMouse.md#isbusylocked)
|
|
79
80
|
- [lButtonSate](Longan.EarthCameraMouse.md#lbuttonsate)
|
|
80
81
|
- [viewer](Longan.EarthCameraMouse.md#viewer)
|
|
81
82
|
|
|
@@ -660,6 +661,22 @@ CameraMouse.enable
|
|
|
660
661
|
|
|
661
662
|
___
|
|
662
663
|
|
|
664
|
+
### isBusyLocked
|
|
665
|
+
|
|
666
|
+
• `get` **isBusyLocked**(): `boolean`
|
|
667
|
+
|
|
668
|
+
左、中、右键任一按键Down后,lock住_recordIsBusy.
|
|
669
|
+
|
|
670
|
+
#### Returns
|
|
671
|
+
|
|
672
|
+
`boolean`
|
|
673
|
+
|
|
674
|
+
#### Inherited from
|
|
675
|
+
|
|
676
|
+
CameraMouse.isBusyLocked
|
|
677
|
+
|
|
678
|
+
___
|
|
679
|
+
|
|
663
680
|
### lButtonSate
|
|
664
681
|
|
|
665
682
|
• `get` **lButtonSate**(): `LButtonState`
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
- [intersectionLineLine1](Longan.GeometryOperators.md#intersectionlineline1)
|
|
25
25
|
- [intersectionLinePlane](Longan.GeometryOperators.md#intersectionlineplane)
|
|
26
26
|
- [intersectionLineSegmentLineSegment](Longan.GeometryOperators.md#intersectionlinesegmentlinesegment)
|
|
27
|
+
- [intersectionLineSegmentPlane](Longan.GeometryOperators.md#intersectionlinesegmentplane)
|
|
27
28
|
- [inversePolygon](Longan.GeometryOperators.md#inversepolygon)
|
|
28
29
|
- [isParallel](Longan.GeometryOperators.md#isparallel-1)
|
|
29
30
|
- [isPerpendicular](Longan.GeometryOperators.md#isperpendicular)
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
- [projectPointToLine1](Longan.GeometryOperators.md#projectpointtoline1)
|
|
38
39
|
- [projectPointToLineWithParam](Longan.GeometryOperators.md#projectpointtolinewithparam)
|
|
39
40
|
- [projectPointToPlane](Longan.GeometryOperators.md#projectpointtoplane)
|
|
41
|
+
- [reversePoints](Longan.GeometryOperators.md#reversepoints)
|
|
40
42
|
- [samePoint](Longan.GeometryOperators.md#samepoint)
|
|
41
43
|
- [sameVector](Longan.GeometryOperators.md#samevector)
|
|
42
44
|
|
|
@@ -231,7 +233,7 @@ ___
|
|
|
231
233
|
|
|
232
234
|
### intersectionLinePlane
|
|
233
235
|
|
|
234
|
-
▸ `Static` **intersectionLinePlane**(`line_point`, `line_dir`, `plane_point`, `plane_dir`): { `param`: `undefined` =
|
|
236
|
+
▸ `Static` **intersectionLinePlane**(`line_point`, `line_dir`, `plane_point`, `plane_dir`): { `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `number` = line\_param; `pos`: `Float32Array` = result; `res`: `boolean` = true }
|
|
235
237
|
|
|
236
238
|
#### Parameters
|
|
237
239
|
|
|
@@ -244,7 +246,7 @@ ___
|
|
|
244
246
|
|
|
245
247
|
#### Returns
|
|
246
248
|
|
|
247
|
-
{ `param`: `undefined` =
|
|
249
|
+
{ `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `number` = line\_param; `pos`: `Float32Array` = result; `res`: `boolean` = true }
|
|
248
250
|
|
|
249
251
|
___
|
|
250
252
|
|
|
@@ -267,6 +269,25 @@ ___
|
|
|
267
269
|
|
|
268
270
|
___
|
|
269
271
|
|
|
272
|
+
### intersectionLineSegmentPlane
|
|
273
|
+
|
|
274
|
+
▸ `Static` **intersectionLineSegmentPlane**(`line_start`, `line_end`, `plane_root`, `plane_normal`): { `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `any` = inter\_param; `pos`: `any` = inter\_point; `res`: `boolean` = true }
|
|
275
|
+
|
|
276
|
+
#### Parameters
|
|
277
|
+
|
|
278
|
+
| Name | Type |
|
|
279
|
+
| :------ | :------ |
|
|
280
|
+
| `line_start` | `Float32Array` |
|
|
281
|
+
| `line_end` | `Float32Array` |
|
|
282
|
+
| `plane_root` | `Float32Array` |
|
|
283
|
+
| `plane_normal` | `Float32Array` |
|
|
284
|
+
|
|
285
|
+
#### Returns
|
|
286
|
+
|
|
287
|
+
{ `param`: `undefined` = inter\_param; `pos`: `undefined` = inter\_point; `res`: `boolean` = false } \| { `param`: `any` = inter\_param; `pos`: `any` = inter\_point; `res`: `boolean` = true }
|
|
288
|
+
|
|
289
|
+
___
|
|
290
|
+
|
|
270
291
|
### inversePolygon
|
|
271
292
|
|
|
272
293
|
▸ `Static` **inversePolygon**(`polygon`): `void`
|
|
@@ -499,6 +520,22 @@ ___
|
|
|
499
520
|
|
|
500
521
|
___
|
|
501
522
|
|
|
523
|
+
### reversePoints
|
|
524
|
+
|
|
525
|
+
▸ `Static` **reversePoints**(`points`): `number`[]
|
|
526
|
+
|
|
527
|
+
#### Parameters
|
|
528
|
+
|
|
529
|
+
| Name | Type |
|
|
530
|
+
| :------ | :------ |
|
|
531
|
+
| `points` | `ArrayLike`<`number`\> |
|
|
532
|
+
|
|
533
|
+
#### Returns
|
|
534
|
+
|
|
535
|
+
`number`[]
|
|
536
|
+
|
|
537
|
+
___
|
|
538
|
+
|
|
502
539
|
### samePoint
|
|
503
540
|
|
|
504
541
|
▸ `Static` **samePoint**(`p0`, `p1`): `boolean`
|
|
@@ -168,7 +168,7 @@ Curve.volume
|
|
|
168
168
|
|
|
169
169
|
### ComputeTessellateData
|
|
170
170
|
|
|
171
|
-
▸ **ComputeTessellateData**(`precision?`): `
|
|
171
|
+
▸ **ComputeTessellateData**(`precision?`): `Object`
|
|
172
172
|
|
|
173
173
|
#### Parameters
|
|
174
174
|
|
|
@@ -178,7 +178,14 @@ Curve.volume
|
|
|
178
178
|
|
|
179
179
|
#### Returns
|
|
180
180
|
|
|
181
|
-
`
|
|
181
|
+
`Object`
|
|
182
|
+
|
|
183
|
+
| Name | Type |
|
|
184
|
+
| :------ | :------ |
|
|
185
|
+
| `indexes` | `Int32Array` |
|
|
186
|
+
| `normals` | `Float32Array` |
|
|
187
|
+
| `positions` | `Float32Array` |
|
|
188
|
+
| `texcoords` | `Float32Array` |
|
|
182
189
|
|
|
183
190
|
#### Inherited from
|
|
184
191
|
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
- [collisionComputing](Longan.LonganCore.Viewer.md#collisioncomputing)
|
|
24
24
|
- [container](Longan.LonganCore.Viewer.md#container)
|
|
25
25
|
- [documentChanged](Longan.LonganCore.Viewer.md#documentchanged)
|
|
26
|
+
- [geometryDrawFinish](Longan.LonganCore.Viewer.md#geometrydrawfinish)
|
|
26
27
|
- [geometryItem](Longan.LonganCore.Viewer.md#geometryitem)
|
|
27
28
|
- [geometryItems](Longan.LonganCore.Viewer.md#geometryitems)
|
|
28
29
|
- [getAsynGroupGeoDataAction](Longan.LonganCore.Viewer.md#getasyngroupgeodataaction)
|
|
@@ -55,11 +56,13 @@
|
|
|
55
56
|
- [isUpdateTt](Longan.LonganCore.Viewer.md#isupdatett)
|
|
56
57
|
- [lightingMode](Longan.LonganCore.Viewer.md#lightingmode)
|
|
57
58
|
- [modelKey](Longan.LonganCore.Viewer.md#modelkey)
|
|
59
|
+
- [renderViewPerGroup](Longan.LonganCore.Viewer.md#renderviewpergroup)
|
|
58
60
|
- [sceneKey](Longan.LonganCore.Viewer.md#scenekey)
|
|
59
61
|
- [selectionTolerance](Longan.LonganCore.Viewer.md#selectiontolerance)
|
|
60
62
|
- [smoothTransition](Longan.LonganCore.Viewer.md#smoothtransition)
|
|
61
63
|
- [smoothTransitionDuration](Longan.LonganCore.Viewer.md#smoothtransitionduration)
|
|
62
64
|
- [softCollisionDistance](Longan.LonganCore.Viewer.md#softcollisiondistance)
|
|
65
|
+
- [streamToSegmentRunningCount](Longan.LonganCore.Viewer.md#streamtosegmentrunningcount)
|
|
63
66
|
- [styleKey](Longan.LonganCore.Viewer.md#stylekey)
|
|
64
67
|
- [testGslId](Longan.LonganCore.Viewer.md#testgslid)
|
|
65
68
|
- [threadIsRunning](Longan.LonganCore.Viewer.md#threadisrunning)
|
|
@@ -74,7 +77,7 @@
|
|
|
74
77
|
- [asynRemoveGeometry](Longan.LonganCore.Viewer.md#asynremovegeometry)
|
|
75
78
|
- [asynUPGDTaskRun](Longan.LonganCore.Viewer.md#asynupgdtaskrun)
|
|
76
79
|
- [asynUpdateView](Longan.LonganCore.Viewer.md#asynupdateview)
|
|
77
|
-
- [
|
|
80
|
+
- [checkStreamToGeometryDisable](Longan.LonganCore.Viewer.md#checkstreamtogeometrydisable)
|
|
78
81
|
- [computeNearPlaneWorldPos](Longan.LonganCore.Viewer.md#computenearplaneworldpos)
|
|
79
82
|
- [computePerspectiveNearWorldPos](Longan.LonganCore.Viewer.md#computeperspectivenearworldpos)
|
|
80
83
|
- [convertCoordinate](Longan.LonganCore.Viewer.md#convertcoordinate)
|
|
@@ -152,6 +155,12 @@ ___
|
|
|
152
155
|
|
|
153
156
|
___
|
|
154
157
|
|
|
158
|
+
### geometryDrawFinish
|
|
159
|
+
|
|
160
|
+
• **geometryDrawFinish**: [`List`](Longan.List.md)<`Function`\>
|
|
161
|
+
|
|
162
|
+
___
|
|
163
|
+
|
|
155
164
|
### geometryItem
|
|
156
165
|
|
|
157
166
|
• **geometryItem**: [`List`](Longan.List.md)<`Function`\>
|
|
@@ -575,6 +584,28 @@ ___
|
|
|
575
584
|
|
|
576
585
|
___
|
|
577
586
|
|
|
587
|
+
### renderViewPerGroup
|
|
588
|
+
|
|
589
|
+
• `get` **renderViewPerGroup**(): `number`
|
|
590
|
+
|
|
591
|
+
#### Returns
|
|
592
|
+
|
|
593
|
+
`number`
|
|
594
|
+
|
|
595
|
+
• `set` **renderViewPerGroup**(`value`): `void`
|
|
596
|
+
|
|
597
|
+
#### Parameters
|
|
598
|
+
|
|
599
|
+
| Name | Type |
|
|
600
|
+
| :------ | :------ |
|
|
601
|
+
| `value` | `number` |
|
|
602
|
+
|
|
603
|
+
#### Returns
|
|
604
|
+
|
|
605
|
+
`void`
|
|
606
|
+
|
|
607
|
+
___
|
|
608
|
+
|
|
578
609
|
### sceneKey
|
|
579
610
|
|
|
580
611
|
• `get` **sceneKey**(): `number`
|
|
@@ -673,6 +704,28 @@ ___
|
|
|
673
704
|
|
|
674
705
|
___
|
|
675
706
|
|
|
707
|
+
### streamToSegmentRunningCount
|
|
708
|
+
|
|
709
|
+
• `get` **streamToSegmentRunningCount**(): `number`
|
|
710
|
+
|
|
711
|
+
#### Returns
|
|
712
|
+
|
|
713
|
+
`number`
|
|
714
|
+
|
|
715
|
+
• `set` **streamToSegmentRunningCount**(`value`): `void`
|
|
716
|
+
|
|
717
|
+
#### Parameters
|
|
718
|
+
|
|
719
|
+
| Name | Type |
|
|
720
|
+
| :------ | :------ |
|
|
721
|
+
| `value` | `number` |
|
|
722
|
+
|
|
723
|
+
#### Returns
|
|
724
|
+
|
|
725
|
+
`void`
|
|
726
|
+
|
|
727
|
+
___
|
|
728
|
+
|
|
676
729
|
### styleKey
|
|
677
730
|
|
|
678
731
|
• `get` **styleKey**(): `number`
|
|
@@ -823,9 +876,9 @@ ___
|
|
|
823
876
|
|
|
824
877
|
___
|
|
825
878
|
|
|
826
|
-
###
|
|
879
|
+
### checkStreamToGeometryDisable
|
|
827
880
|
|
|
828
|
-
▸ **
|
|
881
|
+
▸ **checkStreamToGeometryDisable**(): `boolean`
|
|
829
882
|
|
|
830
883
|
#### Returns
|
|
831
884
|
|
|
@@ -226,6 +226,8 @@ ___
|
|
|
226
226
|
|
|
227
227
|
▸ `Static` **multiply**(`m1`, `m2`): `Float32Array`
|
|
228
228
|
|
|
229
|
+
矩阵相乘
|
|
230
|
+
|
|
229
231
|
#### Parameters
|
|
230
232
|
|
|
231
233
|
| Name | Type |
|
|
@@ -281,17 +283,21 @@ ___
|
|
|
281
283
|
|
|
282
284
|
▸ `Static` **multiplyPoints**(`m`, `ps`): `Float32Array`
|
|
283
285
|
|
|
286
|
+
点数组矩阵变换
|
|
287
|
+
|
|
284
288
|
#### Parameters
|
|
285
289
|
|
|
286
|
-
| Name | Type |
|
|
287
|
-
| :------ | :------ |
|
|
288
|
-
| `m` | `Float32Array` |
|
|
289
|
-
| `ps` | `Float32Array` |
|
|
290
|
+
| Name | Type | Description |
|
|
291
|
+
| :------ | :------ | :------ |
|
|
292
|
+
| `m` | `Float32Array` | 矩阵 |
|
|
293
|
+
| `ps` | `Float32Array` | - |
|
|
290
294
|
|
|
291
295
|
#### Returns
|
|
292
296
|
|
|
293
297
|
`Float32Array`
|
|
294
298
|
|
|
299
|
+
变换后的点数组
|
|
300
|
+
|
|
295
301
|
___
|
|
296
302
|
|
|
297
303
|
### multiplyVector
|
|
@@ -114,6 +114,16 @@ ___
|
|
|
114
114
|
|
|
115
115
|
### normals
|
|
116
116
|
|
|
117
|
+
• `get` **normals**(): `Float32Array`
|
|
118
|
+
|
|
119
|
+
#### Returns
|
|
120
|
+
|
|
121
|
+
`Float32Array`
|
|
122
|
+
|
|
123
|
+
#### Inherited from
|
|
124
|
+
|
|
125
|
+
Surface.normals
|
|
126
|
+
|
|
117
127
|
• `set` **normals**(`value`): `void`
|
|
118
128
|
|
|
119
129
|
#### Parameters
|
|
@@ -210,7 +220,7 @@ Surface.volume
|
|
|
210
220
|
|
|
211
221
|
### ComputeTessellateData
|
|
212
222
|
|
|
213
|
-
▸ **ComputeTessellateData**(`image`, `precision?`): `
|
|
223
|
+
▸ **ComputeTessellateData**(`image`, `precision?`): `Object`
|
|
214
224
|
|
|
215
225
|
#### Parameters
|
|
216
226
|
|
|
@@ -221,7 +231,14 @@ Surface.volume
|
|
|
221
231
|
|
|
222
232
|
#### Returns
|
|
223
233
|
|
|
224
|
-
`
|
|
234
|
+
`Object`
|
|
235
|
+
|
|
236
|
+
| Name | Type |
|
|
237
|
+
| :------ | :------ |
|
|
238
|
+
| `indexes` | `Int32Array` |
|
|
239
|
+
| `normals` | `Float32Array` |
|
|
240
|
+
| `positions` | `Float32Array` |
|
|
241
|
+
| `texcoords` | `Float32Array` |
|
|
225
242
|
|
|
226
243
|
#### Inherited from
|
|
227
244
|
|