@gmgis/gm-sdk 1.12.5 → 2.0.2
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/dist/index.js +1848 -0
- package/dist/gm.min.js +16983 -16483
- package/dist/index.js +1436 -1434
- package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +1 -2
- package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +1 -2
- package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -8337
- package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/resources/Workers/chunk-35SHYARM.js +26 -0
- package/dist/resources/Workers/chunk-37F5JSTI.js +26 -0
- package/dist/resources/Workers/chunk-3SSKC3VN.js +26 -0
- package/dist/resources/Workers/chunk-3W4GT7KQ.js +26 -0
- package/dist/resources/Workers/chunk-4IW2T6GF.js +26 -0
- package/dist/resources/Workers/chunk-5YEWO3HT.js +26 -0
- package/dist/resources/Workers/chunk-64RSHJUE.js +28 -0
- package/dist/resources/Workers/chunk-77IHZJJ3.js +26 -0
- package/dist/resources/Workers/chunk-7HTKERZY.js +26 -0
- package/dist/resources/Workers/{chunk-I2ITFFPX.js → chunk-A56XVLQR.js} +2 -13
- package/dist/resources/Workers/chunk-AJYK4IVJ.js +26 -0
- package/dist/resources/Workers/{chunk-PRGYLLJT.js → chunk-ARG42DC4.js} +2 -31
- package/dist/resources/Workers/chunk-AU7IKHOH.js +26 -0
- package/dist/resources/Workers/chunk-B4AA3ARO.js +26 -0
- package/dist/resources/Workers/chunk-CNCV5UL7.js +26 -0
- package/dist/resources/Workers/chunk-CYCB63OH.js +26 -0
- package/dist/resources/Workers/{chunk-DI5NGJUP.js → chunk-D6AA5QVT.js} +2 -20
- package/dist/resources/Workers/chunk-D6C66QON.js +26 -0
- package/dist/resources/Workers/chunk-DEPHB2WM.js +26 -0
- package/dist/resources/Workers/chunk-DMEY62ID.js +26 -0
- package/dist/resources/Workers/chunk-DQQ63PYM.js +26 -0
- package/dist/resources/Workers/chunk-ED5JPB3S.js +27 -0
- package/dist/resources/Workers/chunk-EZUYS2JF.js +26 -0
- package/dist/resources/Workers/chunk-FEVXJ54I.js +26 -0
- package/dist/resources/Workers/chunk-G5AGHVVC.js +26 -0
- package/dist/resources/Workers/{chunk-7JO7GPJN.js → chunk-GBYLG25F.js} +2 -15
- package/dist/resources/Workers/chunk-GILIDQNQ.js +26 -0
- package/dist/resources/Workers/chunk-HMIYSTF6.js +26 -0
- package/dist/resources/Workers/chunk-HTFSEEMT.js +26 -0
- package/dist/resources/Workers/chunk-HWXX4CWK.js +26 -0
- package/dist/resources/Workers/chunk-IYTZ52EY.js +26 -0
- package/dist/resources/Workers/chunk-J6UP6FLE.js +26 -0
- package/dist/resources/Workers/chunk-LEYMRMBK.js +27 -0
- package/dist/resources/Workers/chunk-M3MGYQSL.js +26 -0
- package/dist/resources/Workers/chunk-N4VJKXZS.js +26 -0
- package/dist/resources/Workers/chunk-NB3ML6JO.js +26 -0
- package/dist/resources/Workers/chunk-OFUUQVMR.js +26 -0
- package/dist/resources/Workers/chunk-OSW76XDF.js +26 -0
- package/dist/resources/Workers/chunk-PSPPBZWI.js +66 -0
- package/dist/resources/Workers/chunk-QN3VOORQ.js +26 -0
- package/dist/resources/Workers/chunk-QOUAJ6TL.js +26 -0
- package/dist/resources/Workers/chunk-RCV6KWXS.js +26 -0
- package/dist/resources/Workers/chunk-TCGIRNHN.js +26 -0
- package/dist/resources/Workers/chunk-U4IEOH5K.js +26 -0
- package/dist/resources/Workers/chunk-UP6I5URU.js +26 -0
- package/dist/resources/Workers/chunk-VTAIKJXX.js +26 -0
- package/dist/resources/Workers/chunk-VTBDSFTG.js +26 -0
- package/dist/resources/Workers/chunk-VW6VD53G.js +26 -0
- package/dist/resources/Workers/chunk-WGGIH7QW.js +26 -0
- package/dist/resources/Workers/chunk-WWA5PL4H.js +26 -0
- package/dist/resources/Workers/{chunk-6CHGCNMW.js → chunk-WZDE3RYP.js} +4 -34
- package/dist/resources/Workers/chunk-XRL4AVS5.js +26 -0
- package/dist/resources/Workers/combineGeometry.js +2 -40
- package/dist/resources/Workers/createBoxGeometry.js +2 -32
- package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -209
- package/dist/resources/Workers/createCircleGeometry.js +2 -175
- package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -121
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -481
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -199
- package/dist/resources/Workers/createCorridorGeometry.js +2 -1237
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -542
- package/dist/resources/Workers/createCylinderGeometry.js +2 -34
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -205
- package/dist/resources/Workers/createEllipseGeometry.js +2 -45
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -38
- package/dist/resources/Workers/createEllipsoidGeometry.js +2 -33
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -35
- package/dist/resources/Workers/createFrustumGeometry.js +2 -32
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -210
- package/dist/resources/Workers/createGeometry.js +2 -144
- package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -1582
- package/dist/resources/Workers/createPlaneGeometry.js +2 -198
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -98
- package/dist/resources/Workers/createPolygonGeometry.js +2 -1381
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -509
- package/dist/resources/Workers/createPolylineGeometry.js +2 -470
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -354
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -251
- package/dist/resources/Workers/createRectangleGeometry.js +2 -1246
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -453
- package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -374
- package/dist/resources/Workers/createSphereGeometry.js +2 -92
- package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -92
- package/dist/resources/Workers/createTaskProcessorWorker.js +2 -8
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -466
- package/dist/resources/Workers/createVectorTileGeometries.js +2 -361
- package/dist/resources/Workers/createVectorTilePoints.js +2 -88
- package/dist/resources/Workers/createVectorTilePolygons.js +2 -359
- package/dist/resources/Workers/createVectorTilePolylines.js +2 -236
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -539
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -2252
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -729
- package/dist/resources/Workers/createWallGeometry.js +2 -464
- package/dist/resources/Workers/createWallOutlineGeometry.js +2 -312
- package/dist/resources/Workers/decodeDraco.js +2 -345
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2642
- package/dist/resources/Workers/decodeI3S.js +2 -1319
- package/dist/resources/Workers/gaussianSplatSorter.js +26 -0
- package/dist/resources/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/dist/resources/Workers/transcodeKTX2.js +29 -3360
- package/dist/resources/Workers/transferTypedArrayTest.js +2 -17
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -793
- package/package.json +74 -74
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -21
- package/dist/resources/Workers/chunk-26GA3JAM.js +0 -139
- package/dist/resources/Workers/chunk-27HUZ7SA.js +0 -305
- package/dist/resources/Workers/chunk-2ZGOQXYU.js +0 -171
- package/dist/resources/Workers/chunk-3Q2L65QU.js +0 -1258
- package/dist/resources/Workers/chunk-472HQ3EH.js +0 -100
- package/dist/resources/Workers/chunk-5ODQSF26.js +0 -101
- package/dist/resources/Workers/chunk-5OOFQLKF.js +0 -634
- package/dist/resources/Workers/chunk-5PTXS2GO.js +0 -10390
- package/dist/resources/Workers/chunk-76BYBWHP.js +0 -122
- package/dist/resources/Workers/chunk-7BMOHCPM.js +0 -390
- package/dist/resources/Workers/chunk-7KTQP4VB.js +0 -59
- package/dist/resources/Workers/chunk-7O373FFS.js +0 -665
- package/dist/resources/Workers/chunk-AD63PIY6.js +0 -163
- package/dist/resources/Workers/chunk-BHQJ2NT7.js +0 -353
- package/dist/resources/Workers/chunk-C6YYBQXW.js +0 -102
- package/dist/resources/Workers/chunk-CKY7HOHV.js +0 -287
- package/dist/resources/Workers/chunk-DHYHSFFJ.js +0 -73
- package/dist/resources/Workers/chunk-E27BLMDD.js +0 -115
- package/dist/resources/Workers/chunk-E63IIM5T.js +0 -75
- package/dist/resources/Workers/chunk-E6V6SQZW.js +0 -456
- package/dist/resources/Workers/chunk-EJZTDTUH.js +0 -138
- package/dist/resources/Workers/chunk-FDOV2LBJ.js +0 -220
- package/dist/resources/Workers/chunk-FIGIZHAQ.js +0 -684
- package/dist/resources/Workers/chunk-GESF4OXQ.js +0 -1800
- package/dist/resources/Workers/chunk-GGZJN2TI.js +0 -2717
- package/dist/resources/Workers/chunk-GNBFYG7F.js +0 -1481
- package/dist/resources/Workers/chunk-GWCFU2SA.js +0 -300
- package/dist/resources/Workers/chunk-IBLIYJZR.js +0 -196
- package/dist/resources/Workers/chunk-JW4FOI6M.js +0 -476
- package/dist/resources/Workers/chunk-K4GQUNB5.js +0 -262
- package/dist/resources/Workers/chunk-M3GMB5OP.js +0 -834
- package/dist/resources/Workers/chunk-MXIZJAPH.js +0 -629
- package/dist/resources/Workers/chunk-N5KJGGCM.js +0 -1073
- package/dist/resources/Workers/chunk-NGPPMXRM.js +0 -435
- package/dist/resources/Workers/chunk-O3E4OAOE.js +0 -511
- package/dist/resources/Workers/chunk-PGRPDNHG.js +0 -1048
- package/dist/resources/Workers/chunk-S6MRMMQU.js +0 -157
- package/dist/resources/Workers/chunk-SMDOP47J.js +0 -945
- package/dist/resources/Workers/chunk-TGONEMZO.js +0 -421
- package/dist/resources/Workers/chunk-TKVT5GQM.js +0 -781
- package/dist/resources/Workers/chunk-U72QNFOJ.js +0 -758
- package/dist/resources/Workers/chunk-VJZB3WAV.js +0 -963
- package/dist/resources/Workers/chunk-VU2MNO7L.js +0 -239
- package/dist/resources/Workers/chunk-XY4BATBS.js +0 -500
- package/dist/resources/Workers/chunk-YFXQECWV.js +0 -2857
- package/dist/resources/Workers/chunk-YSGTGQQO.js +0 -398
- package/dist/resources/Workers/chunk-YZ733KKS.js +0 -368
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.132
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -23,201 +23,4 @@
|
|
|
23
23
|
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
import {
|
|
27
|
-
CoplanarPolygonGeometryLibrary_default
|
|
28
|
-
} from "./chunk-76BYBWHP.js";
|
|
29
|
-
import "./chunk-M3GMB5OP.js";
|
|
30
|
-
import {
|
|
31
|
-
PolygonGeometryLibrary_default
|
|
32
|
-
} from "./chunk-PGRPDNHG.js";
|
|
33
|
-
import "./chunk-PRGYLLJT.js";
|
|
34
|
-
import {
|
|
35
|
-
GeometryInstance_default
|
|
36
|
-
} from "./chunk-7KTQP4VB.js";
|
|
37
|
-
import {
|
|
38
|
-
GeometryPipeline_default
|
|
39
|
-
} from "./chunk-GGZJN2TI.js";
|
|
40
|
-
import "./chunk-NGPPMXRM.js";
|
|
41
|
-
import "./chunk-C6YYBQXW.js";
|
|
42
|
-
import "./chunk-CKY7HOHV.js";
|
|
43
|
-
import "./chunk-S6MRMMQU.js";
|
|
44
|
-
import "./chunk-SMDOP47J.js";
|
|
45
|
-
import {
|
|
46
|
-
arrayRemoveDuplicates_default
|
|
47
|
-
} from "./chunk-472HQ3EH.js";
|
|
48
|
-
import "./chunk-E6V6SQZW.js";
|
|
49
|
-
import "./chunk-3Q2L65QU.js";
|
|
50
|
-
import "./chunk-2ZGOQXYU.js";
|
|
51
|
-
import {
|
|
52
|
-
IndexDatatype_default
|
|
53
|
-
} from "./chunk-26GA3JAM.js";
|
|
54
|
-
import {
|
|
55
|
-
GeometryAttributes_default
|
|
56
|
-
} from "./chunk-DI5NGJUP.js";
|
|
57
|
-
import {
|
|
58
|
-
GeometryAttribute_default,
|
|
59
|
-
Geometry_default,
|
|
60
|
-
PrimitiveType_default
|
|
61
|
-
} from "./chunk-GWCFU2SA.js";
|
|
62
|
-
import {
|
|
63
|
-
BoundingSphere_default
|
|
64
|
-
} from "./chunk-VJZB3WAV.js";
|
|
65
|
-
import "./chunk-5PTXS2GO.js";
|
|
66
|
-
import {
|
|
67
|
-
ComponentDatatype_default
|
|
68
|
-
} from "./chunk-K4GQUNB5.js";
|
|
69
|
-
import {
|
|
70
|
-
Cartesian3_default,
|
|
71
|
-
Ellipsoid_default
|
|
72
|
-
} from "./chunk-YFXQECWV.js";
|
|
73
|
-
import "./chunk-XY4BATBS.js";
|
|
74
|
-
import "./chunk-MXIZJAPH.js";
|
|
75
|
-
import "./chunk-6CHGCNMW.js";
|
|
76
|
-
import {
|
|
77
|
-
defaultValue_default
|
|
78
|
-
} from "./chunk-7JO7GPJN.js";
|
|
79
|
-
import {
|
|
80
|
-
Check_default
|
|
81
|
-
} from "./chunk-AD63PIY6.js";
|
|
82
|
-
import {
|
|
83
|
-
defined_default
|
|
84
|
-
} from "./chunk-E63IIM5T.js";
|
|
85
|
-
|
|
86
|
-
// packages/engine/Source/Core/CoplanarPolygonOutlineGeometry.js
|
|
87
|
-
function createGeometryFromPositions(positions) {
|
|
88
|
-
const length = positions.length;
|
|
89
|
-
const flatPositions = new Float64Array(length * 3);
|
|
90
|
-
const indices = IndexDatatype_default.createTypedArray(length, length * 2);
|
|
91
|
-
let positionIndex = 0;
|
|
92
|
-
let index = 0;
|
|
93
|
-
for (let i = 0; i < length; i++) {
|
|
94
|
-
const position = positions[i];
|
|
95
|
-
flatPositions[positionIndex++] = position.x;
|
|
96
|
-
flatPositions[positionIndex++] = position.y;
|
|
97
|
-
flatPositions[positionIndex++] = position.z;
|
|
98
|
-
indices[index++] = i;
|
|
99
|
-
indices[index++] = (i + 1) % length;
|
|
100
|
-
}
|
|
101
|
-
const attributes = new GeometryAttributes_default({
|
|
102
|
-
position: new GeometryAttribute_default({
|
|
103
|
-
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
104
|
-
componentsPerAttribute: 3,
|
|
105
|
-
values: flatPositions
|
|
106
|
-
})
|
|
107
|
-
});
|
|
108
|
-
return new Geometry_default({
|
|
109
|
-
attributes,
|
|
110
|
-
indices,
|
|
111
|
-
primitiveType: PrimitiveType_default.LINES
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function CoplanarPolygonOutlineGeometry(options) {
|
|
115
|
-
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
116
|
-
const polygonHierarchy = options.polygonHierarchy;
|
|
117
|
-
Check_default.defined("options.polygonHierarchy", polygonHierarchy);
|
|
118
|
-
this._polygonHierarchy = polygonHierarchy;
|
|
119
|
-
this._workerName = "createCoplanarPolygonOutlineGeometry";
|
|
120
|
-
this.packedLength = PolygonGeometryLibrary_default.computeHierarchyPackedLength(
|
|
121
|
-
polygonHierarchy,
|
|
122
|
-
Cartesian3_default
|
|
123
|
-
) + 1;
|
|
124
|
-
}
|
|
125
|
-
CoplanarPolygonOutlineGeometry.fromPositions = function(options) {
|
|
126
|
-
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
127
|
-
Check_default.defined("options.positions", options.positions);
|
|
128
|
-
const newOptions = {
|
|
129
|
-
polygonHierarchy: {
|
|
130
|
-
positions: options.positions
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
return new CoplanarPolygonOutlineGeometry(newOptions);
|
|
134
|
-
};
|
|
135
|
-
CoplanarPolygonOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
136
|
-
Check_default.typeOf.object("value", value);
|
|
137
|
-
Check_default.defined("array", array);
|
|
138
|
-
startingIndex = defaultValue_default(startingIndex, 0);
|
|
139
|
-
startingIndex = PolygonGeometryLibrary_default.packPolygonHierarchy(
|
|
140
|
-
value._polygonHierarchy,
|
|
141
|
-
array,
|
|
142
|
-
startingIndex,
|
|
143
|
-
Cartesian3_default
|
|
144
|
-
);
|
|
145
|
-
array[startingIndex] = value.packedLength;
|
|
146
|
-
return array;
|
|
147
|
-
};
|
|
148
|
-
var scratchOptions = {
|
|
149
|
-
polygonHierarchy: {}
|
|
150
|
-
};
|
|
151
|
-
CoplanarPolygonOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
152
|
-
Check_default.defined("array", array);
|
|
153
|
-
startingIndex = defaultValue_default(startingIndex, 0);
|
|
154
|
-
const polygonHierarchy = PolygonGeometryLibrary_default.unpackPolygonHierarchy(
|
|
155
|
-
array,
|
|
156
|
-
startingIndex,
|
|
157
|
-
Cartesian3_default
|
|
158
|
-
);
|
|
159
|
-
startingIndex = polygonHierarchy.startingIndex;
|
|
160
|
-
delete polygonHierarchy.startingIndex;
|
|
161
|
-
const packedLength = array[startingIndex];
|
|
162
|
-
if (!defined_default(result)) {
|
|
163
|
-
result = new CoplanarPolygonOutlineGeometry(scratchOptions);
|
|
164
|
-
}
|
|
165
|
-
result._polygonHierarchy = polygonHierarchy;
|
|
166
|
-
result.packedLength = packedLength;
|
|
167
|
-
return result;
|
|
168
|
-
};
|
|
169
|
-
CoplanarPolygonOutlineGeometry.createGeometry = function(polygonGeometry) {
|
|
170
|
-
const polygonHierarchy = polygonGeometry._polygonHierarchy;
|
|
171
|
-
let outerPositions = polygonHierarchy.positions;
|
|
172
|
-
outerPositions = arrayRemoveDuplicates_default(
|
|
173
|
-
outerPositions,
|
|
174
|
-
Cartesian3_default.equalsEpsilon,
|
|
175
|
-
true
|
|
176
|
-
);
|
|
177
|
-
if (outerPositions.length < 3) {
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
const isValid = CoplanarPolygonGeometryLibrary_default.validOutline(outerPositions);
|
|
181
|
-
if (!isValid) {
|
|
182
|
-
return void 0;
|
|
183
|
-
}
|
|
184
|
-
const polygons = PolygonGeometryLibrary_default.polygonOutlinesFromHierarchy(
|
|
185
|
-
polygonHierarchy,
|
|
186
|
-
false
|
|
187
|
-
);
|
|
188
|
-
if (polygons.length === 0) {
|
|
189
|
-
return void 0;
|
|
190
|
-
}
|
|
191
|
-
const geometries = [];
|
|
192
|
-
for (let i = 0; i < polygons.length; i++) {
|
|
193
|
-
const geometryInstance = new GeometryInstance_default({
|
|
194
|
-
geometry: createGeometryFromPositions(polygons[i])
|
|
195
|
-
});
|
|
196
|
-
geometries.push(geometryInstance);
|
|
197
|
-
}
|
|
198
|
-
const geometry = GeometryPipeline_default.combineInstances(geometries)[0];
|
|
199
|
-
const boundingSphere = BoundingSphere_default.fromPoints(polygonHierarchy.positions);
|
|
200
|
-
return new Geometry_default({
|
|
201
|
-
attributes: geometry.attributes,
|
|
202
|
-
indices: geometry.indices,
|
|
203
|
-
primitiveType: geometry.primitiveType,
|
|
204
|
-
boundingSphere
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
|
-
var CoplanarPolygonOutlineGeometry_default = CoplanarPolygonOutlineGeometry;
|
|
208
|
-
|
|
209
|
-
// packages/engine/Source/Workers/createCoplanarPolygonOutlineGeometry.js
|
|
210
|
-
function createCoplanarPolygonOutlineGeometry(polygonGeometry, offset) {
|
|
211
|
-
if (defined_default(offset)) {
|
|
212
|
-
polygonGeometry = CoplanarPolygonOutlineGeometry_default.unpack(
|
|
213
|
-
polygonGeometry,
|
|
214
|
-
offset
|
|
215
|
-
);
|
|
216
|
-
}
|
|
217
|
-
polygonGeometry._ellipsoid = Ellipsoid_default.clone(polygonGeometry._ellipsoid);
|
|
218
|
-
return CoplanarPolygonOutlineGeometry_default.createGeometry(polygonGeometry);
|
|
219
|
-
}
|
|
220
|
-
var createCoplanarPolygonOutlineGeometry_default = createCoplanarPolygonOutlineGeometry;
|
|
221
|
-
export {
|
|
222
|
-
createCoplanarPolygonOutlineGeometry_default as default
|
|
223
|
-
};
|
|
26
|
+
import{a as T}from"./chunk-EZUYS2JF.js";import"./chunk-CNCV5UL7.js";import{a as l}from"./chunk-AJYK4IVJ.js";import"./chunk-J6UP6FLE.js";import{a as G}from"./chunk-D6AA5QVT.js";import{a as C}from"./chunk-VW6VD53G.js";import"./chunk-DEPHB2WM.js";import"./chunk-QOUAJ6TL.js";import"./chunk-TCGIRNHN.js";import"./chunk-N4VJKXZS.js";import"./chunk-77IHZJJ3.js";import{a as L}from"./chunk-3W4GT7KQ.js";import"./chunk-G5AGHVVC.js";import"./chunk-DMEY62ID.js";import"./chunk-HTFSEEMT.js";import{a as w}from"./chunk-OFUUQVMR.js";import{a as O}from"./chunk-A56XVLQR.js";import{b,c as d,d as k}from"./chunk-RCV6KWXS.js";import{d as P}from"./chunk-4IW2T6GF.js";import"./chunk-PSPPBZWI.js";import{a as H}from"./chunk-AU7IKHOH.js";import{a as y,d as g,f as u}from"./chunk-64RSHJUE.js";import"./chunk-3SSKC3VN.js";import"./chunk-OSW76XDF.js";import"./chunk-ED5JPB3S.js";import{b as m}from"./chunk-LEYMRMBK.js";import{e as f}from"./chunk-VTAIKJXX.js";function E(o){let e=o.length,t=new Float64Array(e*3),i=w.createTypedArray(e,e*2),r=0,a=0;for(let n=0;n<e;n++){let p=o[n];t[r++]=p.x,t[r++]=p.y,t[r++]=p.z,i[a++]=n,i[a++]=(n+1)%e}let s=new O({position:new k({componentDatatype:H.DOUBLE,componentsPerAttribute:3,values:t})});return new d({attributes:s,indices:i,primitiveType:b.LINES})}function c(o){o=o??u.EMPTY_OBJECT;let e=o.polygonHierarchy;m.defined("options.polygonHierarchy",e),this._polygonHierarchy=e,this._workerName="createCoplanarPolygonOutlineGeometry",this.packedLength=l.computeHierarchyPackedLength(e,y)+1}c.fromPositions=function(o){o=o??u.EMPTY_OBJECT,m.defined("options.positions",o.positions);let e={polygonHierarchy:{positions:o.positions}};return new c(e)};c.pack=function(o,e,t){return m.typeOf.object("value",o),m.defined("array",e),t=t??0,t=l.packPolygonHierarchy(o._polygonHierarchy,e,t,y),e[t]=o.packedLength,e};var v={polygonHierarchy:{}};c.unpack=function(o,e,t){m.defined("array",o),e=e??0;let i=l.unpackPolygonHierarchy(o,e,y);e=i.startingIndex,delete i.startingIndex;let r=o[e];return f(t)||(t=new c(v)),t._polygonHierarchy=i,t.packedLength=r,t};c.createGeometry=function(o){let e=o._polygonHierarchy,t=e.positions;if(t=L(t,y.equalsEpsilon,!0),t.length<3||!T.validOutline(t))return;let r=l.polygonOutlinesFromHierarchy(e,!1);if(r.length===0)return;let a=[];for(let p=0;p<r.length;p++){let _=new G({geometry:E(r[p])});a.push(_)}let s=C.combineInstances(a)[0],n=P.fromPoints(e.positions);return new d({attributes:s.attributes,indices:s.indices,primitiveType:s.primitiveType,boundingSphere:n})};var h=c;function A(o,e){return f(e)&&(o=h.unpack(o,e)),o._ellipsoid=g.clone(o._ellipsoid),h.createGeometry(o)}var Z=A;export{Z as default};
|