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