gs-bim-air 1.6.1-beta.14 → 1.6.1-beta.16
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 +37 -1
- package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/250/241/345/236/213/346/210/252/345/217/226.html +130 -0
- 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 +39 -2
- 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 +65 -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 +90 -4
- package/docs/classes/Viewer.md +119 -9
- package/docs/modules/Longan.LonganCore.md +45 -14
- package/lib/BimAir.common-report.html +2 -2
- package/lib/BimAir.common.js +37 -17
- package/lib/BimAir.css +1900 -718
- package/lib/BimAir.umd-report.html +2 -2
- package/lib/BimAir.umd.js +37 -17
- package/lib/BimAir.umd.min-report.html +2 -2
- package/lib/BimAir.umd.min.js +37 -17
- package/lib/undefined.gzundefined +0 -0
- package/package.json +1 -1
- package/public/js/longan/longan.wasm +0 -0
- 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 +81 -0
- /package/{README0.md → readme/useless/README0.md} +0 -0
- /package/{READMEBETA copy.md → readme/useless/READMEBETA copy.md} +0 -0
- /package/{READMEBETA.md → readme/useless/READMEBETA.md} +0 -0
- /package/{READMEBETA2.md → readme/useless/READMEBETA2.md} +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
## 更新日志
|
|
2
2
|
|
|
3
|
-
### 1.6.1-beta.
|
|
3
|
+
### 1.6.1-beta.16
|
|
4
|
+
|
|
5
|
+
> Longan 更新为 v1.6.1-beta.13
|
|
6
|
+
|
|
7
|
+
- fix: 模型截取功能支持多构件截取,具体示例请看[模型截取示例](./readme/%E6%A8%A1%E5%9E%8B%E6%88%AA%E5%8F%96%E7%A4%BA%E4%BE%8B.md)
|
|
8
|
+
- fix: 截取结果的构件加上颜色
|
|
9
|
+
- fix: 截取结果添加构件属性
|
|
10
|
+
- fix: 修复 ensure 与 updateDisplay 对同一个 segment 同时起效时,可能往一个 segment 中插入两次几何的问题.
|
|
11
|
+
- fix: gs.viewer.ts 添加 isGeometryLoading 标志位
|
|
12
|
+
- fix: ensureSegmentAsynGeometry 等待当前视图几何加载完后再执行
|
|
13
|
+
|
|
14
|
+
### 1.6.1-beta.15
|
|
15
|
+
|
|
16
|
+
> 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
17
|
+
>
|
|
18
|
+
> Longan 更新为 v1.6.1-beta.12
|
|
19
|
+
|
|
20
|
+
- feat: 添加模型截取功能,具体示例请看[模型截取示例](./readme/%E6%A8%A1%E5%9E%8B%E6%88%AA%E5%8F%96%E7%A4%BA%E4%BE%8B.md)
|
|
21
|
+
- feat: lightModel 添加 streamToSegmentRunningCount 计数器.
|
|
22
|
+
- feat: 结构树界面显示时不隐藏按钮
|
|
23
|
+
- feat: 添加几何加载完毕后回调列表 geometryDrawFinish,使用方式如下:
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
viewer.geometryDrawFinish.add(() => {
|
|
27
|
+
console.log("几何完成绘制");
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
- fix: 修复在打开批注面板然后关闭批注面板,恢复一个保存了批注的视点,无法恢复批注且控制台报错
|
|
34
|
+
- fix: 修复 ensureSegmentAsynGeometry 的异步逻辑
|
|
35
|
+
- fix: 修复 isBusyLocked 状态,在同时使用右键、中键时,重复按下、松开右键,会导致 viewer.isBusy 状态异常的问题;现在只有在 3 个按键都松开的情况下,解除 isBusyLock.
|
|
36
|
+
- fix: 修复 onTaskProcessingFinished 修改 runningCount 计数使用的 viewer 对象错误的问题.
|
|
37
|
+
- fix: 增加字体包重复加载判断
|
|
38
|
+
|
|
39
|
+
### 1.6.1-beta.14
|
|
4
40
|
|
|
5
41
|
> 更新 public/js 里的内核文件,安装此版本需替换 js 文件夹
|
|
6
42
|
>
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>创建视图</title>
|
|
6
|
+
<!-- demo的样式 -->
|
|
7
|
+
<link rel="stylesheet" href="https://static.belife-bim.com/demo.css" />
|
|
8
|
+
<link
|
|
9
|
+
rel="stylesheet"
|
|
10
|
+
href="https://static.belife-bim.com/bimAir/BimAir.css"
|
|
11
|
+
/>
|
|
12
|
+
<script src="https://static.belife-bim.com/vue.min.js"></script>
|
|
13
|
+
<script src="https://static.belife-bim.com/bimAir/BimAir.umd.min.js"></script>
|
|
14
|
+
</head>
|
|
15
|
+
|
|
16
|
+
<body>
|
|
17
|
+
<div id="app">
|
|
18
|
+
<viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<script type="text/javascript">
|
|
22
|
+
new Vue({
|
|
23
|
+
el: "#app",
|
|
24
|
+
});
|
|
25
|
+
let options = {
|
|
26
|
+
// viewerType: "model",
|
|
27
|
+
elementId: "viewer",
|
|
28
|
+
|
|
29
|
+
modelService: "https://static.belife-bim.com/modelApi",
|
|
30
|
+
fileService: "https://static.belife-bim.com/fileApi",
|
|
31
|
+
};
|
|
32
|
+
BimAir.Loader({ url: "https://static.belife-bim.com/bimAir" }).then(
|
|
33
|
+
() => {
|
|
34
|
+
let viewer = new BimAir.Viewer(options);
|
|
35
|
+
|
|
36
|
+
viewer
|
|
37
|
+
.loadModels("64893310f757063a40322136", true, false) //最新中精度单管
|
|
38
|
+
.then((lightModels) => {
|
|
39
|
+
let targetCom = viewer.getComponent(
|
|
40
|
+
lightModels[0].modelId,
|
|
41
|
+
"DSX04-03"
|
|
42
|
+
);
|
|
43
|
+
let shellCom = viewer.getComponent(
|
|
44
|
+
lightModels[0].modelId,
|
|
45
|
+
"DSX04-03-starting"
|
|
46
|
+
);
|
|
47
|
+
let lineCom = viewer.getComponent(
|
|
48
|
+
lightModels[0].modelId,
|
|
49
|
+
// "DSX04-03-guideline"
|
|
50
|
+
"06691ab0fbc07e522e098e3b77902aeb"
|
|
51
|
+
);
|
|
52
|
+
console.log(
|
|
53
|
+
"components-----------",
|
|
54
|
+
targetCom,
|
|
55
|
+
shellCom,
|
|
56
|
+
lineCom
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
console.time("模型截取");
|
|
60
|
+
BimAir.SDK.Model.slice(
|
|
61
|
+
viewer,
|
|
62
|
+
[
|
|
63
|
+
{
|
|
64
|
+
targetComponent: targetCom,
|
|
65
|
+
shellComponent: shellCom,
|
|
66
|
+
lineComponent: lineCom,
|
|
67
|
+
|
|
68
|
+
sliceData: [
|
|
69
|
+
// { name: "1", code: "1", start: "k0-100", end: "k0-50" },
|
|
70
|
+
{
|
|
71
|
+
name: "1-1-1",
|
|
72
|
+
code: "1-1-1",
|
|
73
|
+
start: "k0+200",
|
|
74
|
+
end: "k0+300",
|
|
75
|
+
properties: {
|
|
76
|
+
a: "a",
|
|
77
|
+
b: "b",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
targetComponent: targetCom,
|
|
84
|
+
shellComponent: shellCom,
|
|
85
|
+
lineComponent: lineCom,
|
|
86
|
+
|
|
87
|
+
sliceData: [
|
|
88
|
+
{
|
|
89
|
+
name: "1-1-2",
|
|
90
|
+
code: "1-1-2",
|
|
91
|
+
start: "k0+50",
|
|
92
|
+
end: "k0+100",
|
|
93
|
+
properties: {
|
|
94
|
+
a: "a",
|
|
95
|
+
b: "b",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "1-1-3",
|
|
100
|
+
code: "1-1-3",
|
|
101
|
+
start: "k0+130",
|
|
102
|
+
end: "k0+180",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
"测试模型",
|
|
108
|
+
true
|
|
109
|
+
).then((file) => {
|
|
110
|
+
console.timeEnd("模型截取");
|
|
111
|
+
console.log("arrayBuffer--------", file);
|
|
112
|
+
let formData = new FormData();
|
|
113
|
+
formData.append("file", file);
|
|
114
|
+
formData.append("stage", "SHJD");
|
|
115
|
+
formData.append("code", "DSX04-03");
|
|
116
|
+
// axios
|
|
117
|
+
// .post(
|
|
118
|
+
// "http://8.134.85.254:9061/api/dsx-service/yun/bind-model",
|
|
119
|
+
// formData
|
|
120
|
+
// )
|
|
121
|
+
// .then((e) => {
|
|
122
|
+
// console.log("e", e);
|
|
123
|
+
// });
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
</script>
|
|
129
|
+
</body>
|
|
130
|
+
</html>
|
|
@@ -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`
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
- [intersectionLineLine](Longan.DGeometryOperators.md#intersectionlineline)
|
|
25
25
|
- [intersectionLinePlane](Longan.DGeometryOperators.md#intersectionlineplane)
|
|
26
26
|
- [intersectionLineSegmentLineSegment](Longan.DGeometryOperators.md#intersectionlinesegmentlinesegment)
|
|
27
|
+
- [intersectionLineSegmentPlane](Longan.DGeometryOperators.md#intersectionlinesegmentplane)
|
|
27
28
|
- [inversePolygon](Longan.DGeometryOperators.md#inversepolygon)
|
|
28
29
|
- [isParallel](Longan.DGeometryOperators.md#isparallel)
|
|
29
30
|
- [isPerpendicular](Longan.DGeometryOperators.md#isperpendicular)
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
- [projectPointToLine1](Longan.DGeometryOperators.md#projectpointtoline1)
|
|
38
39
|
- [projectPointToLineWithParam](Longan.DGeometryOperators.md#projectpointtolinewithparam)
|
|
39
40
|
- [projectPointToPlane](Longan.DGeometryOperators.md#projectpointtoplane)
|
|
41
|
+
- [reversePoints](Longan.DGeometryOperators.md#reversepoints)
|
|
40
42
|
- [samePoint](Longan.DGeometryOperators.md#samepoint)
|
|
41
43
|
- [samePointWithTolerance](Longan.DGeometryOperators.md#samepointwithtolerance)
|
|
42
44
|
- [sameVector](Longan.DGeometryOperators.md#samevector)
|
|
@@ -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`: `Float64Array` = 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`: `Float64Array` = 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` | `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
|
+
|
|
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`
|
|
@@ -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)
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
- [gl](Longan.LonganCore.Viewer.md#gl)
|
|
31
32
|
- [imageUrls](Longan.LonganCore.Viewer.md#imageurls)
|
|
32
33
|
- [isFixFrameRender](Longan.LonganCore.Viewer.md#isfixframerender)
|
|
34
|
+
- [isGeometryLoading](Longan.LonganCore.Viewer.md#isgeometryloading)
|
|
33
35
|
- [maxMemoryFactor](Longan.LonganCore.Viewer.md#maxmemoryfactor)
|
|
34
36
|
- [modelDebug](Longan.LonganCore.Viewer.md#modeldebug)
|
|
35
37
|
- [onComputeCollisionFinished](Longan.LonganCore.Viewer.md#oncomputecollisionfinished)
|
|
@@ -55,11 +57,13 @@
|
|
|
55
57
|
- [isUpdateTt](Longan.LonganCore.Viewer.md#isupdatett)
|
|
56
58
|
- [lightingMode](Longan.LonganCore.Viewer.md#lightingmode)
|
|
57
59
|
- [modelKey](Longan.LonganCore.Viewer.md#modelkey)
|
|
60
|
+
- [renderViewPerGroup](Longan.LonganCore.Viewer.md#renderviewpergroup)
|
|
58
61
|
- [sceneKey](Longan.LonganCore.Viewer.md#scenekey)
|
|
59
62
|
- [selectionTolerance](Longan.LonganCore.Viewer.md#selectiontolerance)
|
|
60
63
|
- [smoothTransition](Longan.LonganCore.Viewer.md#smoothtransition)
|
|
61
64
|
- [smoothTransitionDuration](Longan.LonganCore.Viewer.md#smoothtransitionduration)
|
|
62
65
|
- [softCollisionDistance](Longan.LonganCore.Viewer.md#softcollisiondistance)
|
|
66
|
+
- [streamToSegmentRunningCount](Longan.LonganCore.Viewer.md#streamtosegmentrunningcount)
|
|
63
67
|
- [styleKey](Longan.LonganCore.Viewer.md#stylekey)
|
|
64
68
|
- [testGslId](Longan.LonganCore.Viewer.md#testgslid)
|
|
65
69
|
- [threadIsRunning](Longan.LonganCore.Viewer.md#threadisrunning)
|
|
@@ -74,7 +78,7 @@
|
|
|
74
78
|
- [asynRemoveGeometry](Longan.LonganCore.Viewer.md#asynremovegeometry)
|
|
75
79
|
- [asynUPGDTaskRun](Longan.LonganCore.Viewer.md#asynupgdtaskrun)
|
|
76
80
|
- [asynUpdateView](Longan.LonganCore.Viewer.md#asynupdateview)
|
|
77
|
-
- [
|
|
81
|
+
- [checkStreamToGeometryDisable](Longan.LonganCore.Viewer.md#checkstreamtogeometrydisable)
|
|
78
82
|
- [computeNearPlaneWorldPos](Longan.LonganCore.Viewer.md#computenearplaneworldpos)
|
|
79
83
|
- [computePerspectiveNearWorldPos](Longan.LonganCore.Viewer.md#computeperspectivenearworldpos)
|
|
80
84
|
- [convertCoordinate](Longan.LonganCore.Viewer.md#convertcoordinate)
|
|
@@ -152,6 +156,12 @@ ___
|
|
|
152
156
|
|
|
153
157
|
___
|
|
154
158
|
|
|
159
|
+
### geometryDrawFinish
|
|
160
|
+
|
|
161
|
+
• **geometryDrawFinish**: [`List`](Longan.List.md)<`Function`\>
|
|
162
|
+
|
|
163
|
+
___
|
|
164
|
+
|
|
155
165
|
### geometryItem
|
|
156
166
|
|
|
157
167
|
• **geometryItem**: [`List`](Longan.List.md)<`Function`\>
|
|
@@ -221,6 +231,14 @@ ___
|
|
|
221
231
|
|
|
222
232
|
___
|
|
223
233
|
|
|
234
|
+
### isGeometryLoading
|
|
235
|
+
|
|
236
|
+
• **isGeometryLoading**: `boolean` = `false`
|
|
237
|
+
|
|
238
|
+
是否有几何数据正在通过updateDisplay进行加载.
|
|
239
|
+
|
|
240
|
+
___
|
|
241
|
+
|
|
224
242
|
### maxMemoryFactor
|
|
225
243
|
|
|
226
244
|
• **maxMemoryFactor**: `number` = `0.8`
|
|
@@ -575,6 +593,28 @@ ___
|
|
|
575
593
|
|
|
576
594
|
___
|
|
577
595
|
|
|
596
|
+
### renderViewPerGroup
|
|
597
|
+
|
|
598
|
+
• `get` **renderViewPerGroup**(): `number`
|
|
599
|
+
|
|
600
|
+
#### Returns
|
|
601
|
+
|
|
602
|
+
`number`
|
|
603
|
+
|
|
604
|
+
• `set` **renderViewPerGroup**(`value`): `void`
|
|
605
|
+
|
|
606
|
+
#### Parameters
|
|
607
|
+
|
|
608
|
+
| Name | Type |
|
|
609
|
+
| :------ | :------ |
|
|
610
|
+
| `value` | `number` |
|
|
611
|
+
|
|
612
|
+
#### Returns
|
|
613
|
+
|
|
614
|
+
`void`
|
|
615
|
+
|
|
616
|
+
___
|
|
617
|
+
|
|
578
618
|
### sceneKey
|
|
579
619
|
|
|
580
620
|
• `get` **sceneKey**(): `number`
|
|
@@ -673,6 +713,28 @@ ___
|
|
|
673
713
|
|
|
674
714
|
___
|
|
675
715
|
|
|
716
|
+
### streamToSegmentRunningCount
|
|
717
|
+
|
|
718
|
+
• `get` **streamToSegmentRunningCount**(): `number`
|
|
719
|
+
|
|
720
|
+
#### Returns
|
|
721
|
+
|
|
722
|
+
`number`
|
|
723
|
+
|
|
724
|
+
• `set` **streamToSegmentRunningCount**(`value`): `void`
|
|
725
|
+
|
|
726
|
+
#### Parameters
|
|
727
|
+
|
|
728
|
+
| Name | Type |
|
|
729
|
+
| :------ | :------ |
|
|
730
|
+
| `value` | `number` |
|
|
731
|
+
|
|
732
|
+
#### Returns
|
|
733
|
+
|
|
734
|
+
`void`
|
|
735
|
+
|
|
736
|
+
___
|
|
737
|
+
|
|
676
738
|
### styleKey
|
|
677
739
|
|
|
678
740
|
• `get` **styleKey**(): `number`
|
|
@@ -823,9 +885,9 @@ ___
|
|
|
823
885
|
|
|
824
886
|
___
|
|
825
887
|
|
|
826
|
-
###
|
|
888
|
+
### checkStreamToGeometryDisable
|
|
827
889
|
|
|
828
|
-
▸ **
|
|
890
|
+
▸ **checkStreamToGeometryDisable**(): `boolean`
|
|
829
891
|
|
|
830
892
|
#### Returns
|
|
831
893
|
|
|
@@ -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
|
|