@xeokit/xeokit-sdk 2.6.86 → 2.6.87-rc1-no-las
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 +3 -3
- package/dist/xeokit-sdk.cjs.js +15512 -32635
- package/dist/xeokit-sdk.es.js +15513 -32634
- package/dist/xeokit-sdk.es5.js +31259 -29843
- package/dist/xeokit-sdk.es5.js.map +1 -0
- package/dist/xeokit-sdk.min.cjs.js +8 -8
- package/dist/xeokit-sdk.min.es.js +8 -8
- package/dist/xeokit-sdk.min.es5.js +34 -33
- package/dist/xeokit-sdk.min.es5.js.map +1 -0
- package/package.json +10 -3
- package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +81 -81
- package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
- package/src/plugins/LASLoaderPlugin/index.js +1 -1
- package/src/plugins/NavCubePlugin/NavCubePlugin.js +63 -22
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
- package/src/plugins/index.js +2 -2
- package/src/viewer/scene/CameraControl/lib/handlers/TouchPickHandler.js +7 -6
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +26 -108
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +3 -14
- package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +5 -23
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +5 -25
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +20 -100
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +3 -14
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +18 -83
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +21 -106
- package/types/viewer/Configs.d.ts +6 -24
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +66 -445
- package/types/viewer/scene/Component.d.ts +1 -1
- package/types/viewer/scene/Entity.d.ts +40 -186
- package/types/viewer/scene/camera/Camera.d.ts +50 -170
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +8 -57
- package/types/viewer/scene/camera/CameraPath.d.ts +8 -13
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +4 -22
- package/types/viewer/scene/camera/CustomProjection.d.ts +6 -21
- package/types/viewer/scene/camera/Frustum.d.ts +18 -90
- package/types/viewer/scene/camera/Ortho.d.ts +14 -54
- package/types/viewer/scene/camera/Perspective.d.ts +16 -70
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +21 -25
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
- package/types/viewer/scene/lights/AmbientLight.d.ts +4 -26
- package/types/viewer/scene/lights/DirLight.d.ts +8 -52
- package/types/viewer/scene/lights/PointLight.d.ts +14 -93
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +12 -37
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +22 -119
- package/types/viewer/scene/materials/Fresnel.d.ts +10 -50
- package/types/viewer/scene/materials/LambertMaterial.d.ts +16 -90
- package/types/viewer/scene/materials/LinesMaterial.d.ts +7 -25
- package/types/viewer/scene/materials/MetallicMaterial.d.ts +40 -127
- package/types/viewer/scene/materials/PhongMaterial.d.ts +52 -185
- package/types/viewer/scene/materials/PointsMaterial.d.ts +20 -101
- package/types/viewer/scene/materials/SpecularMaterial.d.ts +41 -117
- package/types/viewer/scene/materials/Texture.d.ts +22 -62
- package/types/viewer/scene/models/SceneModel.d.ts +76 -233
- package/types/viewer/scene/models/SceneModelEntity.d.ts +50 -211
- package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
- package/types/viewer/scene/models/SceneModelTransform.d.ts +14 -59
- package/types/viewer/scene/paths/CubicBezierCurve.d.ts +12 -73
- package/types/viewer/scene/paths/Curve.d.ts +6 -19
- package/types/viewer/scene/paths/Path.d.ts +10 -57
- package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +10 -57
- package/types/viewer/scene/paths/SplineCurve.d.ts +6 -32
- package/types/viewer/scene/scene/Scene.d.ts +94 -196
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +12 -69
- package/types/viewer/scene/viewport/Viewport.d.ts +4 -14
- package/types/viewer/scene/webgl/PickResult.d.ts +13 -28
|
@@ -17,7 +17,7 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
17
17
|
* @type {number|string}
|
|
18
18
|
* @abstract
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
readonly id: string;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* ID of the corresponding object within the originating system, if any.
|
|
@@ -29,14 +29,14 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
readonly originalSystemId: string;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Returns true to indicate that this is an SceneModelEntity.
|
|
36
36
|
*
|
|
37
37
|
* @returns {Boolean}
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
readonly isEntity: boolean;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Returns ````true```` if this SceneModelEntity represents a model.
|
|
@@ -47,7 +47,7 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
47
47
|
* @type {Boolean}
|
|
48
48
|
* @abstract
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
readonly isModel: boolean;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Returns ````true```` if this SceneModelEntity represents an object.
|
|
@@ -58,26 +58,18 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
58
58
|
* @type {Boolean}
|
|
59
59
|
* @abstract
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
readonly isObject: boolean;
|
|
62
62
|
|
|
63
63
|
/** Returns the parent SceneModelEntity, if any. */
|
|
64
|
-
|
|
64
|
+
readonly parent: void;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* The 3D World-space origin for this SceneModelEntity.
|
|
68
68
|
*
|
|
69
69
|
* @type {Float64Array}
|
|
70
70
|
* @abstract
|
|
71
71
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Gets the 3D World-space origin for this SceneModelEntity.
|
|
76
|
-
*
|
|
77
|
-
* @type {Float64Array}
|
|
78
|
-
* @abstract
|
|
79
|
-
*/
|
|
80
|
-
get origin(): Float64Array;
|
|
72
|
+
origin: Float64Array;
|
|
81
73
|
|
|
82
74
|
/**
|
|
83
75
|
* World-space 3D axis-aligned bounding box (AABB) of this SceneModelEntity.
|
|
@@ -88,12 +80,12 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
88
80
|
* @type {Float64Array}
|
|
89
81
|
* @abstract
|
|
90
82
|
*/
|
|
91
|
-
|
|
83
|
+
readonly aabb: number[];
|
|
92
84
|
|
|
93
85
|
/**
|
|
94
86
|
* The approximate number of primitives in this SceneModelEntity
|
|
95
87
|
*/
|
|
96
|
-
|
|
88
|
+
readonly numPrimitives: number;
|
|
97
89
|
|
|
98
90
|
/**
|
|
99
91
|
* The approximate number of triangles in this SceneModelEntity.
|
|
@@ -101,10 +93,10 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
101
93
|
* @type {number}
|
|
102
94
|
* @abstract
|
|
103
95
|
*/
|
|
104
|
-
|
|
96
|
+
readonly numTriangles: number;
|
|
105
97
|
|
|
106
98
|
/**
|
|
107
|
-
*
|
|
99
|
+
* Whether this SceneModelEntity is visible.
|
|
108
100
|
*
|
|
109
101
|
* Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
|
|
110
102
|
*
|
|
@@ -114,23 +106,10 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
114
106
|
* @type {Boolean}
|
|
115
107
|
* @abstract
|
|
116
108
|
*/
|
|
117
|
-
|
|
109
|
+
visible: boolean;
|
|
118
110
|
|
|
119
111
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
|
|
123
|
-
*
|
|
124
|
-
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.visible} are both ````true```` the SceneModelEntity will be
|
|
125
|
-
* registered by {@link SceneModelEntity.id} in {@link Scene.visibleObjects}.
|
|
126
|
-
*
|
|
127
|
-
* @type {Boolean}
|
|
128
|
-
* @abstract
|
|
129
|
-
*/
|
|
130
|
-
get visible(): boolean;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Sets if this SceneModelEntity is xrayed.
|
|
112
|
+
* Whether this SceneModelEntity is xrayed.
|
|
134
113
|
*
|
|
135
114
|
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.xrayed} are both ````true``` the SceneModelEntity will be
|
|
136
115
|
* registered by {@link SceneModelEntity.id} in {@link Scene.xrayedObjects}.
|
|
@@ -138,32 +117,10 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
138
117
|
* @type {Boolean}
|
|
139
118
|
* @abstract
|
|
140
119
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Gets if this SceneModelEntity is xrayed.
|
|
145
|
-
*
|
|
146
|
-
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.xrayed} are both ````true``` the SceneModelEntity will be
|
|
147
|
-
* registered by {@link SceneModelEntity.id} in {@link Scene.xrayedObjects}.
|
|
148
|
-
*
|
|
149
|
-
* @type {Boolean}
|
|
150
|
-
* @abstract
|
|
151
|
-
*/
|
|
152
|
-
get xrayed(): boolean;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Sets if this SceneModelEntity is highlighted.
|
|
156
|
-
*
|
|
157
|
-
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.highlighted} are both ````true```` the SceneModelEntity will be
|
|
158
|
-
* registered by {@link SceneModelEntity.id} in {@link Scene.highlightedObjects}.
|
|
159
|
-
*
|
|
160
|
-
* @type {Boolean}
|
|
161
|
-
* @abstract
|
|
162
|
-
*/
|
|
163
|
-
set highlighted(arg: boolean);
|
|
120
|
+
xrayed: boolean;
|
|
164
121
|
|
|
165
122
|
/**
|
|
166
|
-
*
|
|
123
|
+
* Whether this SceneModelEntity is highlighted.
|
|
167
124
|
*
|
|
168
125
|
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.highlighted} are both ````true```` the SceneModelEntity will be
|
|
169
126
|
* registered by {@link SceneModelEntity.id} in {@link Scene.highlightedObjects}.
|
|
@@ -171,21 +128,10 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
171
128
|
* @type {Boolean}
|
|
172
129
|
* @abstract
|
|
173
130
|
*/
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Sets if this SceneModelEntity is selected.
|
|
178
|
-
*
|
|
179
|
-
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.selected} are both ````true``` the SceneModelEntity will be
|
|
180
|
-
* registered by {@link SceneModelEntity.id} in {@link Scene.selectedObjects}.
|
|
181
|
-
*
|
|
182
|
-
* @type {Boolean}
|
|
183
|
-
* @abstract
|
|
184
|
-
*/
|
|
185
|
-
set selected(arg: boolean);
|
|
131
|
+
highlighted: boolean;
|
|
186
132
|
|
|
187
133
|
/**
|
|
188
|
-
*
|
|
134
|
+
* Whether this SceneModelEntity is selected.
|
|
189
135
|
*
|
|
190
136
|
* When {@link SceneModelEntity.isObject} and {@link SceneModelEntity.selected} are both ````true``` the SceneModelEntity will be
|
|
191
137
|
* registered by {@link SceneModelEntity.id} in {@link Scene.selectedObjects}.
|
|
@@ -193,218 +139,121 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
193
139
|
* @type {Boolean}
|
|
194
140
|
* @abstract
|
|
195
141
|
*/
|
|
196
|
-
|
|
142
|
+
selected: boolean;
|
|
197
143
|
|
|
198
144
|
/**
|
|
199
|
-
*
|
|
145
|
+
* Whether this SceneModelEntity's edges are enhanced.
|
|
200
146
|
*
|
|
201
147
|
* @type {Boolean}
|
|
202
148
|
* @abstract
|
|
203
149
|
*/
|
|
204
|
-
|
|
150
|
+
edges: boolean;
|
|
205
151
|
|
|
206
152
|
/**
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* @type {Boolean}
|
|
210
|
-
* @abstract
|
|
153
|
+
* Whether View Frustum Culling is enabled
|
|
211
154
|
*/
|
|
212
|
-
|
|
155
|
+
culledVFC: boolean;
|
|
213
156
|
|
|
214
157
|
/**
|
|
215
|
-
*
|
|
216
|
-
*/
|
|
217
|
-
set culledVFC(arg: boolean);
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Gets View Frustum Culling
|
|
221
|
-
*/
|
|
222
|
-
get culledVFC(): boolean;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Toggle Level of Detail Culling
|
|
226
|
-
*/
|
|
227
|
-
set culledLOD(arg: boolean);
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Gets level of detail culling
|
|
231
|
-
*/
|
|
232
|
-
get culledLOD(): boolean;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Sets if this SceneModelEntity is culled.
|
|
236
|
-
*
|
|
237
|
-
* Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
|
|
238
|
-
*
|
|
239
|
-
* @type {Boolean}
|
|
240
|
-
* @abstract
|
|
158
|
+
* Whether Level of Detail Culling is enabled
|
|
241
159
|
*/
|
|
242
|
-
|
|
160
|
+
culledLOD: boolean;
|
|
243
161
|
|
|
244
162
|
/**
|
|
245
|
-
*
|
|
163
|
+
* Whether this SceneModelEntity is culled.
|
|
246
164
|
*
|
|
247
165
|
* Only rendered when {@link SceneModelEntity.visible} is ````true```` and {@link SceneModelEntity.culled} is ````false````.
|
|
248
166
|
*
|
|
249
167
|
* @type {Boolean}
|
|
250
168
|
* @abstract
|
|
251
169
|
*/
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Sets if this SceneModelEntity is clippable.
|
|
256
|
-
*
|
|
257
|
-
* Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
|
|
258
|
-
*
|
|
259
|
-
* @type {Boolean}
|
|
260
|
-
* @abstract
|
|
261
|
-
*/
|
|
262
|
-
set clippable(arg: boolean);
|
|
170
|
+
culled: boolean;
|
|
263
171
|
|
|
264
172
|
/**
|
|
265
|
-
*
|
|
173
|
+
* Whether this SceneModelEntity is clippable.
|
|
266
174
|
*
|
|
267
175
|
* Clipping is done by the {@link SectionPlane}s in {@link Scene.sectionPlanes}.
|
|
268
176
|
*
|
|
269
177
|
* @type {Boolean}
|
|
270
178
|
* @abstract
|
|
271
179
|
*/
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Sets if this SceneModelEntity is included in boundary calculations.
|
|
276
|
-
*
|
|
277
|
-
* @type {Boolean}
|
|
278
|
-
* @abstract
|
|
279
|
-
*/
|
|
280
|
-
set collidable(arg: boolean);
|
|
180
|
+
clippable: boolean;
|
|
281
181
|
|
|
282
182
|
/**
|
|
283
|
-
*
|
|
183
|
+
* Whether this SceneModelEntity is included in boundary calculations.
|
|
284
184
|
*
|
|
285
185
|
* @type {Boolean}
|
|
286
186
|
* @abstract
|
|
287
187
|
*/
|
|
288
|
-
|
|
188
|
+
collidable: boolean;
|
|
289
189
|
|
|
290
190
|
/**
|
|
291
|
-
*
|
|
191
|
+
* Whether this SceneModelEntity is pickable.
|
|
292
192
|
*
|
|
293
193
|
* Picking is done via calls to {@link Scene.pick}.
|
|
294
194
|
*
|
|
295
195
|
* @type {Boolean}
|
|
296
196
|
* @abstract
|
|
297
197
|
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Gets if this SceneModelEntity is pickable.
|
|
302
|
-
*
|
|
303
|
-
* Picking is done via calls to {@link Scene.pick}.
|
|
304
|
-
*
|
|
305
|
-
* @type {Boolean}
|
|
306
|
-
* @abstract
|
|
307
|
-
*/
|
|
308
|
-
get pickable(): boolean;
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Sets the SceneModelEntity's RGB colorize color, multiplies by the SceneModelEntity's rendered fragment colors.
|
|
312
|
-
*
|
|
313
|
-
* Each element of the color is in range ````[0..1]````.
|
|
314
|
-
*
|
|
315
|
-
* @type {number[]}
|
|
316
|
-
* @abstract
|
|
317
|
-
*/
|
|
318
|
-
set colorize(arg: number[]);
|
|
198
|
+
pickable: boolean;
|
|
319
199
|
|
|
320
200
|
/**
|
|
321
|
-
*
|
|
201
|
+
* The SceneModelEntity's RGB colorize color, multiplies by the SceneModelEntity's rendered fragment colors.
|
|
322
202
|
*
|
|
323
203
|
* Each element of the color is in range ````[0..1]````.
|
|
324
204
|
*
|
|
325
205
|
* @type {number[]}
|
|
326
206
|
* @abstract
|
|
327
207
|
*/
|
|
328
|
-
|
|
208
|
+
colorize: number[];
|
|
329
209
|
|
|
330
210
|
/**
|
|
331
|
-
*
|
|
211
|
+
* The SceneModelEntity's opacity factor, multiplies by the SceneModelEntity's rendered fragment alphas.
|
|
332
212
|
*
|
|
333
213
|
* This is a factor in range ````[0..1]````.
|
|
334
214
|
*
|
|
335
215
|
* @type {number}
|
|
336
216
|
* @abstract
|
|
337
217
|
*/
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Gets the SceneModelEntity's opacity factor.
|
|
342
|
-
*
|
|
343
|
-
* This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
|
|
344
|
-
*
|
|
345
|
-
* @type {number}
|
|
346
|
-
* @abstract
|
|
347
|
-
*/
|
|
348
|
-
get opacity(): number;
|
|
218
|
+
opacity: number;
|
|
349
219
|
|
|
350
220
|
/**
|
|
351
|
-
*
|
|
221
|
+
* Whether this SceneModelEntity casts shadows.
|
|
352
222
|
*
|
|
353
223
|
* @type {Boolean}
|
|
354
224
|
* @abstract
|
|
355
225
|
*/
|
|
356
|
-
|
|
226
|
+
castsShadow: boolean;
|
|
357
227
|
|
|
358
228
|
/**
|
|
359
|
-
*
|
|
229
|
+
* Whether this SceneModelEntity can have shadows cast upon it
|
|
360
230
|
*
|
|
361
231
|
* @type {Boolean}
|
|
362
232
|
* @abstract
|
|
363
233
|
*/
|
|
364
|
-
|
|
234
|
+
receivesShadow: boolean;
|
|
365
235
|
|
|
366
236
|
/**
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
* @type {Boolean}
|
|
370
|
-
* @abstract
|
|
371
|
-
*/
|
|
372
|
-
set receivesShadow(arg: boolean);
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* Gets if this SceneModelEntity can have shadows cast upon it
|
|
376
|
-
*
|
|
377
|
-
* @type {Boolean}
|
|
378
|
-
* @abstract
|
|
379
|
-
*/
|
|
380
|
-
get receivesShadow(): boolean;
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Gets if this SceneModelEntity can have Scalable Ambient Obscurance (SAO) applied to it.
|
|
237
|
+
* Whether this SceneModelEntity can have Scalable Ambient Obscurance (SAO) applied to it.
|
|
384
238
|
*
|
|
385
239
|
* SAO is configured by {@link SAO}.
|
|
386
240
|
*
|
|
387
241
|
* @type {Boolean}
|
|
388
242
|
* @abstract
|
|
389
243
|
*/
|
|
390
|
-
|
|
244
|
+
readonly saoEnabled: boolean;
|
|
391
245
|
|
|
392
246
|
/**
|
|
393
|
-
*
|
|
247
|
+
* The material for this SceneModelEntity that will be used on the caps
|
|
394
248
|
* when the objects of this entity are sliced
|
|
395
249
|
*
|
|
396
250
|
* If there is no capMaterial attached to a SceneModelEntity then its objects
|
|
397
251
|
* will not be capped when sliced
|
|
398
252
|
*/
|
|
399
|
-
|
|
253
|
+
capMaterial: Material;
|
|
400
254
|
|
|
401
255
|
/**
|
|
402
|
-
*
|
|
403
|
-
*/
|
|
404
|
-
get capMaterial(): Material;
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Sets the SceneModelEntity's 3D World-space offset.
|
|
256
|
+
* The SceneModelEntity's 3D World-space offset.
|
|
408
257
|
*
|
|
409
258
|
* Since offsetting Entities comes with memory and rendering overhead on some systems, this feature
|
|
410
259
|
* only works when {@link Viewer} is configured with ````entityOffsetsEnabled: true````.
|
|
@@ -419,17 +268,7 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
419
268
|
* @abstract
|
|
420
269
|
* @type {number[]}
|
|
421
270
|
*/
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* Gets the SceneModelEntity's 3D World-space offset.
|
|
426
|
-
*
|
|
427
|
-
* Default value is ````[0,0,0]````.
|
|
428
|
-
*
|
|
429
|
-
* @abstract
|
|
430
|
-
* @type {number[]}
|
|
431
|
-
*/
|
|
432
|
-
get offset(): number[];
|
|
271
|
+
offset: number[];
|
|
433
272
|
|
|
434
273
|
/**
|
|
435
274
|
* Gets the World, View and Canvas-space positions of each vertex in a callback.
|
|
@@ -456,17 +295,17 @@ export declare abstract class SceneModelEntity implements Entity {
|
|
|
456
295
|
*
|
|
457
296
|
* @returns {number}
|
|
458
297
|
*/
|
|
459
|
-
|
|
298
|
+
readonly volume: number;
|
|
460
299
|
|
|
461
300
|
/**
|
|
462
|
-
*
|
|
301
|
+
* The surface area of this SceneModelEntity.
|
|
463
302
|
*
|
|
464
303
|
* Only works when {@link Scene.readableGeometryEnabled | Scene.readableGeometryEnabled} is `true` and the
|
|
465
304
|
* SceneModelEntity contains triangle meshes; returns `0` otherwise.
|
|
466
305
|
*
|
|
467
306
|
* @returns {number}
|
|
468
307
|
*/
|
|
469
|
-
|
|
308
|
+
readonly surfaceArea: number;
|
|
470
309
|
|
|
471
310
|
/**
|
|
472
311
|
* The {@link SceneModel} to which this SceneModelEntity belongs.
|
|
@@ -73,15 +73,15 @@ export declare class SceneModelMesh {
|
|
|
73
73
|
isSolid(): boolean;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* The volume of this SceneModelMesh.
|
|
77
77
|
* @returns {number}
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
readonly volume: number;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* The surface area of this SceneModelMesh.
|
|
83
83
|
* @returns {number}
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
readonly surfaceArea: number;
|
|
86
86
|
|
|
87
87
|
}
|
|
@@ -23,112 +23,67 @@ export declare class SceneModelTransform {
|
|
|
23
23
|
*
|
|
24
24
|
* @type {SceneModelTransform}
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
readonly parentTransform: SceneModelTransform | null;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* The {@link SceneModelMesh}es transformed by this SceneModelTransform.
|
|
30
30
|
*
|
|
31
31
|
* @returns {[]}
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
readonly meshes: SceneModelMesh[];
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The SceneModelTransform's local translation.
|
|
37
37
|
*
|
|
38
38
|
* Default value is ````[0,0,0]````.
|
|
39
39
|
*
|
|
40
40
|
* @type {number[]}
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
position: number[];
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* The SceneModelTransform's rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
|
|
46
46
|
*
|
|
47
47
|
* Default value is ````[0,0,0]````.
|
|
48
48
|
*
|
|
49
49
|
* @type {number[]}
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
rotation: number[];
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* Default value is ````[0,0,0]````.
|
|
57
|
-
*
|
|
58
|
-
* @type {number[]}
|
|
59
|
-
*/
|
|
60
|
-
set rotation(value: number[]);
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Gets the SceneModelTransform's rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
|
|
64
|
-
*
|
|
65
|
-
* Default value is ````[0,0,0]````.
|
|
66
|
-
*
|
|
67
|
-
* @type {number[]}
|
|
68
|
-
*/
|
|
69
|
-
get rotation(): number[];
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Sets the SceneModelTransform's rotation quaternion.
|
|
54
|
+
* The SceneModelTransform's rotation quaternion.
|
|
73
55
|
*
|
|
74
56
|
* Default value is ````[0,0,0,1]````.
|
|
75
57
|
*
|
|
76
58
|
* @type {number[]}
|
|
77
59
|
*/
|
|
78
|
-
|
|
60
|
+
quaternion: number[];
|
|
79
61
|
|
|
80
62
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* Default value is ````[0,0,0,1]````.
|
|
84
|
-
*
|
|
85
|
-
* @type {number[]}
|
|
86
|
-
*/
|
|
87
|
-
get quaternion(): number[];
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Sets the SceneModelTransform's scale.
|
|
63
|
+
* The SceneModelTransform's scale.
|
|
91
64
|
*
|
|
92
65
|
* Default value is ````[1,1,1]````.
|
|
93
66
|
*
|
|
94
67
|
* @type {number[]}
|
|
95
68
|
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Gets the SceneModelTransform's scale.
|
|
100
|
-
*
|
|
101
|
-
* Default value is ````[1,1,1]````.
|
|
102
|
-
*
|
|
103
|
-
* @type {number[]}
|
|
104
|
-
*/
|
|
105
|
-
get scale(): number[];
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Sets the SceneModelTransform's transform matrix.
|
|
109
|
-
*
|
|
110
|
-
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
111
|
-
*
|
|
112
|
-
* @type {number[]}
|
|
113
|
-
*/
|
|
114
|
-
set matrix(value: number[]);
|
|
69
|
+
scale: number[];
|
|
115
70
|
|
|
116
71
|
/**
|
|
117
|
-
*
|
|
72
|
+
* The SceneModelTransform's transform matrix.
|
|
118
73
|
*
|
|
119
74
|
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
120
75
|
*
|
|
121
76
|
* @type {number[]}
|
|
122
77
|
*/
|
|
123
|
-
|
|
78
|
+
matrix: number[];
|
|
124
79
|
|
|
125
80
|
/**
|
|
126
|
-
*
|
|
81
|
+
* The SceneModelTransform's World matrix.
|
|
127
82
|
*
|
|
128
83
|
* @property worldMatrix
|
|
129
84
|
* @type {number[]}
|
|
130
85
|
*/
|
|
131
|
-
|
|
86
|
+
readonly worldMatrix: number[];
|
|
132
87
|
|
|
133
88
|
/**
|
|
134
89
|
* Rotates the SceneModelTransform about the given axis by the given increment.
|