@loaders.gl/tile-converter 3.4.12 → 3.4.14
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/3d-tiles-attributes-worker.js +1 -1
- package/dist/converter.min.js +55 -55
- package/dist/es5/3d-tiles-attributes-worker.js +1 -1
- package/dist/es5/deps-installer/deps-installer.js +1 -1
- package/dist/es5/i3s-attributes-worker.js +1 -1
- package/dist/es5/i3s-converter/helpers/batch-ids-extensions.js.map +1 -1
- package/dist/es5/i3s-converter/helpers/geometry-converter.js +1 -1
- package/dist/es5/i3s-converter/helpers/geometry-converter.js.map +1 -1
- package/dist/es5/pgm-loader.js +1 -1
- package/dist/esm/3d-tiles-attributes-worker.js +1 -1
- package/dist/esm/deps-installer/deps-installer.js +1 -1
- package/dist/esm/i3s-attributes-worker.js +1 -1
- package/dist/esm/i3s-converter/helpers/batch-ids-extensions.js.map +1 -1
- package/dist/esm/i3s-converter/helpers/geometry-converter.js +1 -1
- package/dist/esm/i3s-converter/helpers/geometry-converter.js.map +1 -1
- package/dist/esm/pgm-loader.js +1 -1
- package/dist/i3s-attributes-worker.js +2 -2
- package/dist/i3s-attributes-worker.js.map +3 -3
- package/dist/i3s-converter/helpers/geometry-converter.d.ts +1 -1
- package/dist/i3s-converter/helpers/geometry-converter.d.ts.map +1 -1
- package/package.json +15 -15
- package/src/i3s-converter/helpers/batch-ids-extensions.ts +1 -1
- package/src/i3s-converter/helpers/geometry-converter.ts +14 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { B3DMContent, FeatureTableJson } from '@loaders.gl/3d-tiles';
|
|
2
|
-
import { ConvertedAttributes, I3SConvertedResources, I3SMaterialWithTexture } from '../types';
|
|
3
2
|
import { AttributeStorageInfo } from '@loaders.gl/i3s';
|
|
4
3
|
import { Geoid } from '@math.gl/geoid';
|
|
4
|
+
import { ConvertedAttributes, I3SConvertedResources, I3SMaterialWithTexture } from '../types';
|
|
5
5
|
/** Usage of worker here brings more overhead than advantage */
|
|
6
6
|
import { B3DMAttributesData } from '../../i3s-attributes-worker';
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometry-converter.d.ts","sourceRoot":"","sources":["../../../src/i3s-converter/helpers/geometry-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"geometry-converter.d.ts","sourceRoot":"","sources":["../../../src/i3s-converter/helpers/geometry-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAYxE,OAAO,EACL,oBAAoB,EAIrB,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AAWrC,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EAGvB,MAAM,UAAU,CAAC;AAClB,+DAA+D;AAC/D,OAAO,EAAC,kBAAkB,EAAsC,MAAM,6BAA6B,CAAC;AAoCpG;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,wBAAwB,CACpD,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,EACxC,aAAa,EAAE,gBAAgB,GAAG,IAAI,EACtC,iBAAiB,EAAE,MAAM,EAAE,EAC3B,oBAAoB,EAAE,oBAAoB,EAAE,GAAG,SAAS,EACxD,KAAK,EAAE,OAAO,EACd,uBAAuB,EAAE,OAAO,EAChC,oBAAoB,EAAE,OAAO,EAC7B,gBAAgB,EAAE,KAAK,EACvB,YAAY,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,GACpC,OAAO,CAAC,qBAAqB,EAAE,GAAG,IAAI,CAAC,CA0DzC;AA6ID;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,cAAc,EAAE,kBAAkB,EAClC,sBAAsB,EAAE,sBAAsB,EAAE,EAChD,qBAAqB,EAAE,OAAO,GAC7B,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAgD3C;AAkoCD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,gBAAgB,GAAG,IAAI,CAoBlF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/tile-converter",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.14",
|
|
4
4
|
"description": "Converter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"build-3d-tiles-attributes-worker": "esbuild src/workers/3d-tiles-attributes-worker.ts --outfile=dist/3d-tiles-attributes-worker.js --platform=node --target=esnext,node14 --external:join-images --minify --bundle --sourcemap --define:__VERSION__=\\\"$npm_package_version\\\""
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@loaders.gl/3d-tiles": "3.4.
|
|
48
|
-
"@loaders.gl/crypto": "3.4.
|
|
49
|
-
"@loaders.gl/draco": "3.4.
|
|
50
|
-
"@loaders.gl/gltf": "3.4.
|
|
51
|
-
"@loaders.gl/i3s": "3.4.
|
|
52
|
-
"@loaders.gl/images": "3.4.
|
|
53
|
-
"@loaders.gl/loader-utils": "3.4.
|
|
54
|
-
"@loaders.gl/polyfills": "3.4.
|
|
55
|
-
"@loaders.gl/schema": "3.4.
|
|
56
|
-
"@loaders.gl/textures": "3.4.
|
|
57
|
-
"@loaders.gl/tiles": "3.4.
|
|
58
|
-
"@loaders.gl/worker-utils": "3.4.
|
|
59
|
-
"@loaders.gl/zip": "3.4.
|
|
47
|
+
"@loaders.gl/3d-tiles": "3.4.14",
|
|
48
|
+
"@loaders.gl/crypto": "3.4.14",
|
|
49
|
+
"@loaders.gl/draco": "3.4.14",
|
|
50
|
+
"@loaders.gl/gltf": "3.4.14",
|
|
51
|
+
"@loaders.gl/i3s": "3.4.14",
|
|
52
|
+
"@loaders.gl/images": "3.4.14",
|
|
53
|
+
"@loaders.gl/loader-utils": "3.4.14",
|
|
54
|
+
"@loaders.gl/polyfills": "3.4.14",
|
|
55
|
+
"@loaders.gl/schema": "3.4.14",
|
|
56
|
+
"@loaders.gl/textures": "3.4.14",
|
|
57
|
+
"@loaders.gl/tiles": "3.4.14",
|
|
58
|
+
"@loaders.gl/worker-utils": "3.4.14",
|
|
59
|
+
"@loaders.gl/zip": "3.4.14",
|
|
60
60
|
"@math.gl/core": "^3.5.1",
|
|
61
61
|
"@math.gl/culling": "^3.5.1",
|
|
62
62
|
"@math.gl/geoid": "^3.5.1",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"join-images": "^1.1.3",
|
|
80
80
|
"sharp": "^0.31.3"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "dffa197c6ae79bac5277d5e8a132f4cd274e74e5"
|
|
83
83
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import type {
|
|
7
7
|
GLTF_EXT_feature_metadata_attribute,
|
|
8
8
|
GLTF_EXT_feature_metadata_primitive
|
|
9
|
-
} from '
|
|
9
|
+
} from '@loaders.gl/gltf';
|
|
10
10
|
|
|
11
11
|
const EXT_MESH_FEATURES = 'EXT_mesh_features';
|
|
12
12
|
const EXT_FEATURE_METADATA = 'EXT_feature_metadata';
|
|
@@ -5,11 +5,21 @@ import type {
|
|
|
5
5
|
GLTFMaterialPostprocessed,
|
|
6
6
|
GLTFNodePostprocessed,
|
|
7
7
|
GLTFImagePostprocessed,
|
|
8
|
+
GLTFTexturePostprocessed,
|
|
8
9
|
GLTFMeshPrimitivePostprocessed,
|
|
9
|
-
GLTFMeshPostprocessed
|
|
10
|
-
GLTFTexturePostprocessed
|
|
10
|
+
GLTFMeshPostprocessed
|
|
11
11
|
} from '@loaders.gl/gltf';
|
|
12
12
|
|
|
13
|
+
import {
|
|
14
|
+
AttributeStorageInfo,
|
|
15
|
+
I3SMaterialDefinition,
|
|
16
|
+
MaterialDefinitionInfo,
|
|
17
|
+
TextureDefinitionInfo
|
|
18
|
+
} from '@loaders.gl/i3s';
|
|
19
|
+
|
|
20
|
+
import {TypedArray} from '@loaders.gl/schema';
|
|
21
|
+
import {GL} from '@loaders.gl/math';
|
|
22
|
+
import {Geoid} from '@math.gl/geoid';
|
|
13
23
|
import {Vector3, Matrix4, Vector4} from '@math.gl/core';
|
|
14
24
|
import {Ellipsoid} from '@math.gl/geospatial';
|
|
15
25
|
|
|
@@ -27,21 +37,11 @@ import {
|
|
|
27
37
|
MergedMaterial,
|
|
28
38
|
SharedResourcesArrays
|
|
29
39
|
} from '../types';
|
|
30
|
-
import {
|
|
31
|
-
AttributeStorageInfo,
|
|
32
|
-
I3SMaterialDefinition,
|
|
33
|
-
MaterialDefinitionInfo,
|
|
34
|
-
TextureDefinitionInfo
|
|
35
|
-
} from '@loaders.gl/i3s';
|
|
36
|
-
import {TypedArray} from '@loaders.gl/schema';
|
|
37
|
-
import {Geoid} from '@math.gl/geoid';
|
|
38
40
|
/** Usage of worker here brings more overhead than advantage */
|
|
39
41
|
import {B3DMAttributesData /*, transformI3SAttributesOnWorker*/} from '../../i3s-attributes-worker';
|
|
40
42
|
import {prepareDataForAttributesConversion} from './gltf-attributes';
|
|
41
43
|
import {handleBatchIdsExtensions} from './batch-ids-extensions';
|
|
42
44
|
import {checkPropertiesLength, flattenPropertyTableByFeatureIds} from './feature-attributes';
|
|
43
|
-
import {MeshPrimitive} from 'modules/gltf/src/lib/types/gltf-postprocessed-schema';
|
|
44
|
-
import {GL} from '@loaders.gl/math';
|
|
45
45
|
|
|
46
46
|
/*
|
|
47
47
|
At the moment of writing the type TypedArrayConstructor is not exported in '@math.gl/types'.
|
|
@@ -567,10 +567,10 @@ function convertMesh(
|
|
|
567
567
|
}
|
|
568
568
|
/**
|
|
569
569
|
* Converts TRIANGLE-STRIPS to independent TRIANGLES
|
|
570
|
-
* @param
|
|
570
|
+
* @param primitive - the primitive to get the indices from
|
|
571
571
|
* @returns indices of vertices of the independent triangles
|
|
572
572
|
*/
|
|
573
|
-
function getIndices(primitive:
|
|
573
|
+
function getIndices(primitive: GLTFMeshPrimitivePostprocessed): TypedArray {
|
|
574
574
|
let indices: TypedArray = primitive.indices?.value;
|
|
575
575
|
if (indices && primitive.mode === GL.TRIANGLE_STRIP) {
|
|
576
576
|
/*
|