gs-bim-air 0.0.28 → 0.1.3-0.1

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.
Files changed (28) hide show
  1. package/README.md +6 -0
  2. package/READMEBETA.md +14 -0
  3. package/demo//346/250/241/345/236/213/345/212/250/347/224/273//350/267/257/345/276/204/345/271/263/347/247/273/345/212/250/347/224/273.html +200 -0
  4. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//345/212/240/350/275/275/344/270/216/345/210/240/351/231/244/346/234/215/345/212/241/345/231/250/346/250/241/345/236/213.html +6 -4
  5. package/docs/README.md +3 -0
  6. package/docs/animation//350/267/257/345/276/204/345/271/263/347/247/273/345/212/250/347/224/273/346/226/207/346/241/243.md +127 -0
  7. package/docs/classes/ComponentSelector.md +11 -16
  8. package/docs/classes/LightModel.md +1 -1
  9. package/docs/classes/Material.md +7 -7
  10. package/docs/classes/PropertyManager.md +9 -2
  11. package/docs/classes/SegmentObject.md +37 -37
  12. package/docs/classes/Viewer.md +75 -2
  13. package/docs/interfaces/Options.md +15 -15
  14. package/docs//345/277/253/351/200/237/344/270/212/346/211/213.md +123 -0
  15. package/docs//347/256/200/344/273/213.md +39 -0
  16. package/lib/BimAir.common-report.html +2 -2
  17. package/lib/BimAir.common.js +594 -520
  18. package/lib/BimAir.css +173 -153
  19. package/lib/BimAir.umd-report.html +2 -2
  20. package/lib/BimAir.umd.js +594 -520
  21. package/lib/BimAir.umd.min-report.html +2 -2
  22. package/lib/BimAir.umd.min.js +594 -520
  23. package/package.json +3 -1
  24. package/public/js/longan/longan.js +11 -4
  25. package/public/js/longan/longan.wasm +0 -0
  26. package/public/js/longanWithoutShareArrayBuffer/longan.js +4 -2
  27. package/public/js/longanWithoutShareArrayBuffer/longan.wasm +0 -0
  28. package/demo//346/250/241/345/236/213/346/223/215/344/275/234//346/211/271/351/207/217/350/256/276/347/275/256/346/236/204/344/273/266/351/242/234/350/211/262.html +0 -66
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## 更新日志
2
2
 
3
+ ### 0.0.30
4
+ - 修复因instanceObject导致的结构树序列化出错
5
+
6
+ ### 0.0.29
7
+ - LightModel反序列化设置viewer
8
+
3
9
  ### 0.0.28
4
10
  - 重构renderObject树的结构,更新此版本需同步更新后台
5
11
  - 更新public/js里的内核文件,安装此版本需替换js文件夹
package/READMEBETA.md ADDED
@@ -0,0 +1,14 @@
1
+ ## 更新日志
2
+
3
+ ### 0.0.30.2
4
+ - 重构renderObject树的结构(非标项目多模型交互操作)
5
+ - 添加获取与修改Viewer相机信息的接口 (Viewer.camera)
6
+ - 添加设置右键菜单默认显示隐藏的开关配置 (Options.components.contextMenu.visible)
7
+ - 更新了路径平移动画的功能,添加了对应的demo和说明文档.
8
+
9
+ ### 0.0.30.6
10
+ - 修复双屏窗口updateSize问题
11
+ - 修复多viewer及加载相同模型时路径动画的问题
12
+
13
+ ### 0.1.30.1
14
+ - 添加token验证
@@ -0,0 +1,200 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
8
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico">
9
+ <title>NWH-BIMCloud</title>
10
+ <link rel="stylesheet" href="https://static.graphicstone.com/bimAir/BimAir.css">
11
+ <script src="https://static.graphicstone.com/vue.min.js"></script>
12
+ <script src="https://static.graphicstone.com/bimAir/BimAir.umd.min.js"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <style>
17
+ body {
18
+ margin: 0;
19
+ padding: 0;
20
+ height: 100vh;
21
+ }
22
+
23
+ #app {
24
+ height: 100vh;
25
+ position: relative;
26
+ }
27
+ </style>
28
+ <div id="app">
29
+ <viewer-wrapper elementId="viewer" style="height: 100%; width: 100%" />
30
+ </div>
31
+
32
+ <script type="text/javascript">
33
+ new Vue({
34
+ el: '#app',
35
+ });
36
+ let options = {
37
+ // viewerType: "model",
38
+ elementId: "viewer",
39
+ modelService: "https://static.graphicstone.com/modelApi",
40
+ fileService: "https://static.graphicstone.com/fileApi",
41
+ background: "linear-gradient(#e3fcfc, #f6ffff)",
42
+ }
43
+
44
+ BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(() => {
45
+ let viewer = new BimAir.Viewer(this.options);
46
+ viewer.isUpdateTt = true;
47
+
48
+ // 厂房Id
49
+ let modelId = "62b2f7aa3a591513fe1799b5";
50
+ // 肘管模型Id
51
+ let carObjId = "62b2f7a73a591513fe1799a9";
52
+ viewer
53
+ .loadModels([
54
+ { id: modelId, version: 0 },
55
+ { id: carObjId, version: 0 },
56
+ ])
57
+ .then((lightModels) => {
58
+ console.log("roam Test");
59
+ this.modelName = viewer.renderObject.name;
60
+
61
+
62
+ // 动画移动的对象
63
+ let moveObjId = "QMD+M+4G+HYD+XDRA01+EL002";
64
+ let moveSegmentObject = moveModel.getComponent(moveObjId);
65
+
66
+ let bb = viewer.computeViewBoundingBox(moveSegmentObject.segment);
67
+ let center = new Float64Array([
68
+ (bb[0] + bb[3]) / 2,
69
+ (bb[1] + bb[4]) / 2,
70
+ (bb[2] + bb[5]) / 2,
71
+ ])
72
+
73
+ let p0 = new BimAir.Longan.Point();
74
+ p0[0] = 380022.3124998525;
75
+ p0[1] = 39384.624999855165;
76
+ p0[2] = 3072.023193359375;
77
+
78
+ let p1 = new BimAir.Longan.Point();
79
+ p1[0] = center[0];
80
+ p1[1] = center[1];
81
+ p1[2] = center[2];
82
+
83
+ let p2 = new BimAir.Longan.Point();
84
+ p2[0] = 380022.3124998525;
85
+ p2[1] = 39484.624999855165;
86
+ p2[2] = 3072.023193359375;
87
+
88
+ let points = new Array();
89
+ points.push(p0);
90
+ points.push(p1);
91
+ points.push(p2);
92
+
93
+ // 绘制路径点线段(用来看的).
94
+ viewer.process.animationManager.drawStraight(points);
95
+
96
+ // 漫游时长
97
+ let roamTime = 10;
98
+ // 添加路径动画并返回动画事件的Id.
99
+ // 添加动画1
100
+ let animationId1 = viewer.process.animationManager.objectRoamWithoutRotate(moveSegmentObject, points, roamTime, PathType.Curve, () => {
101
+ console.log("finish1");
102
+ });
103
+
104
+
105
+
106
+ let animationId2 = "";
107
+ setTimeout(() => {
108
+ let moveObjId = "QMD+M+4G+HYD+XDRA01+EL001";
109
+ // 动画2移动的对象
110
+ let moveSegmentObject = moveModel.getComponent(moveObjId);
111
+
112
+ let bb = viewer.computeViewBoundingBox(moveSegmentObject.segment);
113
+ let center = new Float64Array([
114
+ (bb[0] + bb[3]) / 2,
115
+ (bb[1] + bb[4]) / 2,
116
+ (bb[2] + bb[5]) / 2,
117
+ ])
118
+
119
+ let p0 = new BimAir.Longan.Point();
120
+ p0[0] = 380022.3124998525;
121
+ p0[1] = 39384.624999855165;
122
+ p0[2] = 3072.023193359375;
123
+
124
+ let p1 = new BimAir.Longan.Point();
125
+ p1[0] = center[0];
126
+ p1[1] = center[1];
127
+ p1[2] = center[2];
128
+
129
+ let p2 = new BimAir.Longan.Point();
130
+ p2[0] = 380022.3124998525;
131
+ p2[1] = 39484.624999855165;
132
+ p2[2] = 3072.023193359375;
133
+
134
+ let points = new Array();
135
+ points.push(p0);
136
+ points.push(p1);
137
+ points.push(p2);
138
+
139
+ // 添加动画2
140
+ animationId2 = viewer.process.animationManager.objectRoamWithoutRotate(moveSegmentObject, points, roamTime, PathType.Straight, () => {
141
+ console.log("finish2");
142
+ });
143
+ }, 5000);
144
+
145
+ // 在两秒后,播放全部动画,此时只有动画1
146
+ setTimeout(() => {
147
+ viewer.process.animationManager.run();
148
+ }, 2000);
149
+
150
+ // 8秒后,暂停动画1
151
+ setTimeout(() => {
152
+ let palyingPercent = viewer.process.animationManager.pauseAnime(animationId1);
153
+ console.log("playing:", palyingPercent);
154
+ }, 8000);
155
+
156
+ // 9秒后,重启动画1
157
+ setTimeout(() => {
158
+ viewer.process.animationManager.run([animationId1]);
159
+ }, 9000);
160
+
161
+ // 14秒后,复原所有物体位置
162
+ // 若物体的动画已结束,则复位.否则,不会.
163
+ // 此时动画1已结束,动画2未结束..因此动画1的物体会复位,而动画2不会.
164
+ setTimeout(() => {
165
+ viewer.process.animationManager.resetAnimationItems();
166
+ console.log("reset1");
167
+ }, 14000);
168
+
169
+ // 18秒后,复原所有物体位置.
170
+ // 此时动画1已结束,动画2已结束..因此都会复位
171
+ setTimeout(() => {
172
+ viewer.process.animationManager.resetAnimationItems();
173
+ console.log("reset2");
174
+ }, 18000);
175
+
176
+ // 19秒后,从头开始播放动画2
177
+ setTimeout(() => {
178
+ viewer.process.animationManager.restartAnime(animationId2);
179
+ }, 19000);
180
+
181
+ //20秒后,先删除动画1,再添加动画3
182
+ let animationId3 = "";
183
+ setTimeout(() => {
184
+ viewer.process.animationManager.removeAnime(animationId1);
185
+ animationId3 = viewer.process.animationManager.objectRoamWithoutRotate(moveSegmentObject, points, roamTime, PathType.Straight, () => {
186
+ console.log("finish3")
187
+ });
188
+ viewer.process.animationManager.run([animationId3]);
189
+ }, 20000);
190
+
191
+ // 25秒后,停止播放动画2,并将segmentObject复位.
192
+ setTimeout(() => {
193
+ viewer.process.animationManager.stopAnime(animationId2, true);
194
+ }, 25000);
195
+ });
196
+ });
197
+ </script>
198
+ </body>
199
+
200
+ </html>
@@ -33,14 +33,16 @@
33
33
 
34
34
  let options = {
35
35
  elementId: "viewer",
36
- modelService: "https://static.graphicstone.com/modelApi",
36
+ modelService: "https://8.134.85.254:9037/api",
37
37
  fileService: "https://static.graphicstone.com/fileApi",
38
38
  background: "linear-gradient(#e3fcfc, #f6ffff)",
39
39
  }
40
- BimAir.Loader({ url: "https://static.graphicstone.com/bimAir" }).then(() => {
40
+ BimAir.Loader({
41
+ url: "https://static.graphicstone.com/bimAir",
42
+
43
+ }).then(() => {
41
44
  let viewer = new BimAir.Viewer(options)
42
- let modelId = "626b4d1ebfe39e58ae7b66a2";
43
- viewer.loadModels(["626b4d1ebfe39e58ae7b66a2"]).then((lightModel) => {
45
+ viewer.loadModels([{ id: "62abe955ab11b5128dac946b", version: 1 }]).then((lightModel) => {
44
46
  viewer.fitWorld()
45
47
  });
46
48
  })
package/docs/README.md CHANGED
@@ -69,7 +69,10 @@ gs-bim-air
69
69
  | `config` | `Object` |
70
70
  | `config.isInitDataBase?` | `boolean` |
71
71
  | `config.isShareArrayBuffer?` | `boolean` |
72
+ | `config.key?` | `string` |
73
+ | `config.secret?` | `string` |
72
74
  | `config.url?` | `string` |
75
+ | `config.userService?` | `string` |
73
76
 
74
77
  #### Returns
75
78
 
@@ -0,0 +1,127 @@
1
+ # 快速上手
2
+
3
+ // 动画移动的对象
4
+
5
+ viewer
6
+ .loadModels([
7
+ { id: modelId, version: 0 },
8
+ { id: carObjId, version: 0 },
9
+ ])
10
+ .then((lightModels) => {
11
+ console.log("roam Test");
12
+ this.modelName = viewer.renderObject.name;
13
+
14
+ let model1 = lightModels[0];
15
+ //肘管
16
+ let moveModel = lightModels[1];
17
+
18
+ // 动画移动的对象
19
+ let moveObjId = "QMD+M+4G+HYD+XDRA01+EL002";
20
+ let moveSegmentObject = moveModel.getComponent(moveObjId);
21
+
22
+ let bb = viewer.computeViewBoundingBox(moveSegmentObject.segment);
23
+ let center = new Float64Array([
24
+ (bb[0] + bb[3]) / 2,
25
+ (bb[1] + bb[4]) / 2,
26
+ (bb[2] + bb[5]) / 2,
27
+ ])
28
+
29
+ let p0 = new BimAir.Longan.Point();
30
+ p0[0] = 380022.3124998525;
31
+ p0[1] = 39384.624999855165;
32
+ p0[2] = 3072.023193359375;
33
+
34
+ let p1 = new BimAir.Longan.Point();
35
+ p1[0] = center[0];
36
+ p1[1] = center[1];
37
+ p1[2] = center[2];
38
+
39
+ let p2 = new BimAir.Longan.Point();
40
+ p2[0] = 380022.3124998525;
41
+ p2[1] = 39484.624999855165;
42
+ p2[2] = 3072.023193359375;
43
+
44
+ let points = new Array();
45
+ points.push(p0);
46
+ points.push(p1);
47
+ points.push(p2);
48
+
49
+ // 绘制路径点线段(用来看的).
50
+ viewer.process.animationManager.drawStraight(viewer, points);
51
+
52
+ // 漫游时长
53
+ let roamTime = 10;
54
+ // 添加路径动画并返回动画事件的Id.
55
+ // 添加动画1
56
+ let animationId1 = viewer.process.animationManager.objectRoamWithoutRotate(viewer, moveSegmentObject, points, roamTime, PathType.Straight, () => {
57
+ console.log("finish1");
58
+ });
59
+ })
60
+
61
+
62
+ //播放动画1
63
+
64
+ viewer.process.animationManager.run([animationId]);
65
+
66
+ ### 添加动画并返回动画Id
67
+ ```
68
+ viewer: 模型所在的viewer
69
+ moveSegmentObject: 移动对对象
70
+ points: 路径点列表
71
+ roamTime: 动画时长
72
+ PathType.Straight: 直线
73
+ () => {console.log("finish1");}: 结束事件
74
+
75
+ let animationId1 = viewer.process.animationManager.objectRoamWithoutRotate(viewer, moveSegmentObject, points, roamTime, PathType.Straight, () => {
76
+ console.log("finish1");
77
+ });
78
+ ```
79
+
80
+ ### 播放动画
81
+ ```
82
+ // 播放全部动画.
83
+ viewer.process.animationManager.run();
84
+ // 播放多段动画.
85
+ viewer.process.animationManager.run([animationId]);
86
+ ```
87
+
88
+ #### 暂停动画(保留当前播放进度),并返回当前播放进度(0-1)
89
+ ```
90
+ // 重新执行animationManager.run([id])会从当前进度开始.
91
+
92
+ let palyingPercent = viewer.process.animationManager.pauseAnime(animationId);
93
+ ```
94
+
95
+ #### 停止动画(播放进度归0),
96
+ ```
97
+ //重新执行重新执行animationManager.run([id])会从头开始.
98
+
99
+ viewer.process.animationManager.stopAnime(animationId);
100
+ ```
101
+
102
+ #### 停止动画并将对应物体复位
103
+ ```
104
+ viewer.process.animationManager.stopAnime(animationId, true);
105
+ ```
106
+
107
+ #### 播放暂停的动画
108
+ ```html
109
+ viewer.process.animationManager.run([animationId]);
110
+ ```
111
+
112
+ #### 从头开始播放动画
113
+ ```html
114
+ viewer.process.animationManager.restartAnime(animationId);
115
+ ```
116
+
117
+ ### 复位所有进行过的动画的物体.
118
+ ```html
119
+ viewer.process.animationManager.resetAnimationItems(viewer);
120
+ ```
121
+
122
+ ### 删除动画
123
+ ```
124
+ viewer.process.animationManager.removeAnime(animationId);
125
+ ```
126
+
127
+
@@ -47,6 +47,7 @@
47
47
  - [clickPos](ComponentSelector.md#clickpos)
48
48
  - [edgeSelection](ComponentSelector.md#edgeselection)
49
49
  - [faceSelection](ComponentSelector.md#faceselection)
50
+ - [geometryObject](ComponentSelector.md#geometryobject)
50
51
  - [isAreaSelect](ComponentSelector.md#isareaselect)
51
52
  - [vertexSelection](ComponentSelector.md#vertexselection)
52
53
  - [viewer](ComponentSelector.md#viewer)
@@ -353,22 +354,6 @@ Longan.ObjectSelector.windowKeyUp
353
354
 
354
355
  Longan.ObjectSelector.clickPos
355
356
 
356
- • `set` **clickPos**(`clickPos`): `void`
357
-
358
- #### Parameters
359
-
360
- | Name | Type |
361
- | :------ | :------ |
362
- | `clickPos` | `Float32Array` |
363
-
364
- #### Returns
365
-
366
- `void`
367
-
368
- #### Inherited from
369
-
370
- Longan.ObjectSelector.clickPos
371
-
372
357
  ___
373
358
 
374
359
  ### edgeSelection
@@ -439,6 +424,16 @@ Longan.ObjectSelector.faceSelection
439
424
 
440
425
  ___
441
426
 
427
+ ### geometryObject
428
+
429
+ • `get` **geometryObject**(): `GeometryObject`
430
+
431
+ #### Returns
432
+
433
+ `GeometryObject`
434
+
435
+ ___
436
+
442
437
  ### isAreaSelect
443
438
 
444
439
  • `get` **isAreaSelect**(): `boolean`
@@ -836,7 +836,7 @@ ___
836
836
 
837
837
  `void`
838
838
 
839
- #### Inherited from
839
+ #### Overrides
840
840
 
841
841
  Longan.LightModel.deserialize
842
842
 
@@ -100,16 +100,16 @@ ___
100
100
 
101
101
  ### setColor
102
102
 
103
- ▸ **setColor**(`r`, `g`, `b`, `a`): `void`
103
+ ▸ **setColor**(`r`, `g`, `b`, `a?`): `void`
104
104
 
105
105
  #### Parameters
106
106
 
107
- | Name | Type |
108
- | :------ | :------ |
109
- | `r` | `number` |
110
- | `g` | `number` |
111
- | `b` | `number` |
112
- | `a` | `number` |
107
+ | Name | Type | Default value |
108
+ | :------ | :------ | :------ |
109
+ | `r` | `number` | `undefined` |
110
+ | `g` | `number` | `undefined` |
111
+ | `b` | `number` | `undefined` |
112
+ | `a` | `number` | `1` |
113
113
 
114
114
  #### Returns
115
115
 
@@ -16,6 +16,7 @@
16
16
 
17
17
  ### Properties
18
18
 
19
+ - [currentProperties](PropertyManager.md#currentproperties)
19
20
  - [opGroup](PropertyManager.md#opgroup)
20
21
 
21
22
  ### Accessors
@@ -52,6 +53,12 @@ ViewerManagerBase.constructor
52
53
 
53
54
  ## Properties
54
55
 
56
+ ### currentProperties
57
+
58
+ • **currentProperties**: `any`[] = `[]`
59
+
60
+ ___
61
+
55
62
  ### opGroup
56
63
 
57
64
  • **opGroup**: `PropertyOp`[] = `[]`
@@ -127,7 +134,7 @@ ___
127
134
 
128
135
  ### getProperty
129
136
 
130
- ▸ **getProperty**(`segmentObject`): `Promise`<`any`\>
137
+ ▸ **getProperty**(`segmentObject`): `Promise`<`any`[]\>
131
138
 
132
139
  #### Parameters
133
140
 
@@ -137,7 +144,7 @@ ___
137
144
 
138
145
  #### Returns
139
146
 
140
- `Promise`<`any`\>
147
+ `Promise`<`any`[]\>
141
148
 
142
149
  ___
143
150
 
@@ -24,15 +24,15 @@
24
24
 
25
25
  ### Methods
26
26
 
27
- - [addMaterial](SegmentObject.md#addmaterial)
27
+ - [copy](SegmentObject.md#copy)
28
28
  - [delete](SegmentObject.md#delete)
29
29
  - [equals](SegmentObject.md#equals)
30
- - [removeAllMaterial](SegmentObject.md#removeallmaterial)
31
- - [removeMaterial](SegmentObject.md#removematerial)
32
- - [removeMaterialAt](SegmentObject.md#removematerialat)
33
- - [removeMaterialByLevel](SegmentObject.md#removematerialbylevel)
34
30
  - [rename](SegmentObject.md#rename)
35
31
  - [setCutting](SegmentObject.md#setcutting)
32
+ - [setHighlight](SegmentObject.md#sethighlight)
33
+ - [setIsolation](SegmentObject.md#setisolation)
34
+ - [setMaterial](SegmentObject.md#setmaterial)
35
+ - [setVisible](SegmentObject.md#setvisible)
36
36
  - [unsetCutting](SegmentObject.md#unsetcutting)
37
37
  - [convertToTreeNodeObjects](SegmentObject.md#converttotreenodeobjects)
38
38
  - [subtraction](SegmentObject.md#subtraction)
@@ -166,19 +166,13 @@ ___
166
166
 
167
167
  ## Methods
168
168
 
169
- ### addMaterial
169
+ ### copy
170
170
 
171
- ▸ **addMaterial**(`material`): `void`
172
-
173
- #### Parameters
174
-
175
- | Name | Type |
176
- | :------ | :------ |
177
- | `material` | [`Material`](Material.md) |
171
+ ▸ **copy**(): [`SegmentObject`](SegmentObject.md)
178
172
 
179
173
  #### Returns
180
174
 
181
- `void`
175
+ [`SegmentObject`](SegmentObject.md)
182
176
 
183
177
  ___
184
178
 
@@ -208,9 +202,15 @@ ___
208
202
 
209
203
  ___
210
204
 
211
- ### removeAllMaterial
205
+ ### rename
206
+
207
+ ▸ **rename**(`name`): `void`
208
+
209
+ #### Parameters
212
210
 
213
- **removeAllMaterial**(): `void`
211
+ | Name | Type |
212
+ | :------ | :------ |
213
+ | `name` | `any` |
214
214
 
215
215
  #### Returns
216
216
 
@@ -218,15 +218,17 @@ ___
218
218
 
219
219
  ___
220
220
 
221
- ### removeMaterial
221
+ ### setCutting
222
+
223
+ ▸ **setCutting**(`cuttingOptions`): `void`
222
224
 
223
- ▸ **removeMaterial**(`material`): `void`
225
+ 创建剖切,通过剖切选项创建剖切
224
226
 
225
227
  #### Parameters
226
228
 
227
- | Name | Type |
228
- | :------ | :------ |
229
- | `material` | [`Material`](Material.md) |
229
+ | Name | Type | Description |
230
+ | :------ | :------ | :------ |
231
+ | `cuttingOptions` | [`CuttingOptions`](CuttingOptions.md) | 剖切选项 |
230
232
 
231
233
  #### Returns
232
234
 
@@ -234,15 +236,15 @@ ___
234
236
 
235
237
  ___
236
238
 
237
- ### removeMaterialAt
239
+ ### setHighlight
238
240
 
239
- ▸ **removeMaterialAt**(`index`): `void`
241
+ ▸ **setHighlight**(`isHighlight`): `void`
240
242
 
241
243
  #### Parameters
242
244
 
243
245
  | Name | Type |
244
246
  | :------ | :------ |
245
- | `index` | `number` |
247
+ | `isHighlight` | `boolean` |
246
248
 
247
249
  #### Returns
248
250
 
@@ -250,15 +252,15 @@ ___
250
252
 
251
253
  ___
252
254
 
253
- ### removeMaterialByLevel
255
+ ### setIsolation
254
256
 
255
- ▸ **removeMaterialByLevel**(`level`): `void`
257
+ ▸ **setIsolation**(`isIsolation`): `void`
256
258
 
257
259
  #### Parameters
258
260
 
259
261
  | Name | Type |
260
262
  | :------ | :------ |
261
- | `level` | `number` |
263
+ | `isIsolation` | `boolean` |
262
264
 
263
265
  #### Returns
264
266
 
@@ -266,15 +268,15 @@ ___
266
268
 
267
269
  ___
268
270
 
269
- ### rename
271
+ ### setMaterial
270
272
 
271
- ▸ **rename**(`name`): `void`
273
+ ▸ **setMaterial**(`material?`): `void`
272
274
 
273
275
  #### Parameters
274
276
 
275
277
  | Name | Type |
276
278
  | :------ | :------ |
277
- | `name` | `any` |
279
+ | `material?` | [`Material`](Material.md) |
278
280
 
279
281
  #### Returns
280
282
 
@@ -282,17 +284,15 @@ ___
282
284
 
283
285
  ___
284
286
 
285
- ### setCutting
287
+ ### setVisible
286
288
 
287
- ▸ **setCutting**(`cuttingOptions`): `void`
288
-
289
- 创建剖切,通过剖切选项创建剖切
289
+ ▸ **setVisible**(`visible`): `void`
290
290
 
291
291
  #### Parameters
292
292
 
293
- | Name | Type | Description |
294
- | :------ | :------ | :------ |
295
- | `cuttingOptions` | [`CuttingOptions`](CuttingOptions.md) | 剖切选项 |
293
+ | Name | Type |
294
+ | :------ | :------ |
295
+ | `visible` | `boolean` |
296
296
 
297
297
  #### Returns
298
298