@xeokit/xeokit-sdk 2.6.13 → 2.6.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/dist/xeokit-sdk.cjs.js +330 -291
- package/dist/xeokit-sdk.es.js +330 -291
- package/dist/xeokit-sdk.es5.js +117 -109
- package/dist/xeokit-sdk.min.cjs.js +2 -2
- package/dist/xeokit-sdk.min.es.js +2 -2
- package/dist/xeokit-sdk.min.es5.js +2 -2
- package/package.json +2 -2
- package/src/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.js +2 -1
- package/src/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.js +290 -272
- package/src/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.js +22 -2
- package/src/plugins/LASLoaderPlugin/LASLoaderPlugin.js +2 -2
|
@@ -110,7 +110,7 @@ import {IFCObjectDefaults} from "../../viewer/metadata/IFCObjectDefaults.js";
|
|
|
110
110
|
* excludeTypes: ["IfcSpace"]
|
|
111
111
|
* });
|
|
112
112
|
* ````
|
|
113
|
-
*
|
|
113
|
+
*
|
|
114
114
|
* # Configuring initial IFC object appearances
|
|
115
115
|
*
|
|
116
116
|
* We can specify the custom initial appearance of loaded objects according to their IFC types.
|
|
@@ -470,11 +470,31 @@ export class DotBIMLoaderPlugin extends Plugin {
|
|
|
470
470
|
isObject: true
|
|
471
471
|
});
|
|
472
472
|
|
|
473
|
+
for (let infoKey in info) {
|
|
474
|
+
let properties;
|
|
475
|
+
if (infoKey.startsWith("IFC_Pset_")) {
|
|
476
|
+
if (!properties) {
|
|
477
|
+
properties = [];
|
|
478
|
+
}
|
|
479
|
+
properties.push({
|
|
480
|
+
name: infoKey,
|
|
481
|
+
value: info[infoKey]
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
if (properties) {
|
|
485
|
+
metaModelData.propertySets.push({
|
|
486
|
+
id: objectId,
|
|
487
|
+
properties
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
473
492
|
metaModelData.metaObjects.push({
|
|
474
493
|
id: objectId,
|
|
475
494
|
name: info && info.Name && info.Name !== "None" ? info.Name : `${element.type} ${objectId}`,
|
|
476
495
|
type: element.type,
|
|
477
|
-
parent: ifcBuildingStoryId
|
|
496
|
+
parent: ifcBuildingStoryId,
|
|
497
|
+
propertySetIds: [objectId]
|
|
478
498
|
});
|
|
479
499
|
}
|
|
480
500
|
|
|
@@ -423,7 +423,7 @@ class LASLoaderPlugin extends Plugin {
|
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
function readIntensities(attributesIntensity) {
|
|
426
|
-
const intensities = attributesIntensity.
|
|
426
|
+
const intensities = attributesIntensity.value;
|
|
427
427
|
const colorsCompressedSize = intensities.length * 4;
|
|
428
428
|
const colorsCompressed = new Uint8Array(colorsCompressedSize);
|
|
429
429
|
for (let i = 0, j = 0, k = 0, len = intensities.length; i < len; i++, k += 3, j += 4) {
|
|
@@ -608,7 +608,7 @@ class LASLoaderPlugin extends Plugin {
|
|
|
608
608
|
|
|
609
609
|
function chunkArray(array, chunkSize) {
|
|
610
610
|
if (chunkSize >= array.length) {
|
|
611
|
-
return array;
|
|
611
|
+
return [array];
|
|
612
612
|
}
|
|
613
613
|
let result = [];
|
|
614
614
|
for (let i = 0; i < array.length; i += chunkSize) {
|