@pggis/pg-sdk 3.3.9 → 3.5.0
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 +8 -8
- package/dist/index.js +1966 -4
- package/dist/pggis.min.css +1 -1
- 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-F3YA3Y2Z.js → chunk-A56XVLQR.js} +2 -13
- package/dist/resources/Workers/chunk-AJYK4IVJ.js +26 -0
- package/dist/resources/Workers/{chunk-EHWHNOEX.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-4H7PY4U5.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-BBWDMCVU.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-WZDE3RYP.js +28 -0
- package/dist/resources/Workers/chunk-XRL4AVS5.js +26 -0
- package/dist/resources/Workers/combineGeometry.js +2 -44
- package/dist/resources/Workers/createBoxGeometry.js +2 -34
- package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -211
- package/dist/resources/Workers/createCircleGeometry.js +2 -173
- package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -123
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -482
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -201
- package/dist/resources/Workers/createCorridorGeometry.js +2 -1239
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -544
- package/dist/resources/Workers/createCylinderGeometry.js +2 -36
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -207
- package/dist/resources/Workers/createEllipseGeometry.js +2 -47
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -40
- package/dist/resources/Workers/createEllipsoidGeometry.js +2 -35
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -37
- package/dist/resources/Workers/createFrustumGeometry.js +2 -34
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -211
- package/dist/resources/Workers/createGeometry.js +2 -147
- package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -1584
- package/dist/resources/Workers/createPlaneGeometry.js +2 -200
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -100
- package/dist/resources/Workers/createPolygonGeometry.js +2 -1387
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -519
- package/dist/resources/Workers/createPolylineGeometry.js +2 -472
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -355
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -253
- package/dist/resources/Workers/createRectangleGeometry.js +2 -1250
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -455
- package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -376
- package/dist/resources/Workers/createSphereGeometry.js +2 -94
- package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -94
- package/dist/resources/Workers/createTaskProcessorWorker.js +2 -8
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -468
- package/dist/resources/Workers/createVectorTileGeometries.js +2 -363
- package/dist/resources/Workers/createVectorTilePoints.js +2 -88
- package/dist/resources/Workers/createVectorTilePolygons.js +2 -361
- package/dist/resources/Workers/createVectorTilePolylines.js +2 -238
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -545
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -2254
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -722
- package/dist/resources/Workers/createWallGeometry.js +2 -466
- package/dist/resources/Workers/createWallOutlineGeometry.js +2 -314
- package/dist/resources/Workers/decodeDraco.js +2 -345
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2626
- package/dist/resources/Workers/decodeI3S.js +2 -1320
- package/dist/resources/Workers/gaussianSplatSorter.js +26 -0
- package/dist/resources/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/dist/resources/Workers/transcodeKTX2.js +29 -3398
- package/dist/resources/Workers/transferTypedArrayTest.js +2 -17
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -795
- package/package.json +9 -8
- package/dist/pggis.min.js +0 -14796
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -21
- package/dist/resources/Workers/chunk-23UFSGND.js +0 -236
- package/dist/resources/Workers/chunk-2A75IWRS.js +0 -218
- package/dist/resources/Workers/chunk-2FRVPMCS.js +0 -1258
- package/dist/resources/Workers/chunk-2FWRMUTY.js +0 -138
- package/dist/resources/Workers/chunk-2UPKWTMJ.js +0 -117
- package/dist/resources/Workers/chunk-34FXV7D7.js +0 -73
- package/dist/resources/Workers/chunk-3VAZEH7M.js +0 -101
- package/dist/resources/Workers/chunk-4DO5W5XZ.js +0 -196
- package/dist/resources/Workers/chunk-5QULIR53.js +0 -501
- package/dist/resources/Workers/chunk-7TC63SJW.js +0 -302
- package/dist/resources/Workers/chunk-7ZFGPDJA.js +0 -122
- package/dist/resources/Workers/chunk-A5DWLWCY.js +0 -834
- package/dist/resources/Workers/chunk-BG4UCVXN.js +0 -73
- package/dist/resources/Workers/chunk-BIKA3NRA.js +0 -59
- package/dist/resources/Workers/chunk-BROJAZRZ.js +0 -390
- package/dist/resources/Workers/chunk-DDUQAJ4P.js +0 -476
- package/dist/resources/Workers/chunk-EERJKOAF.js +0 -305
- package/dist/resources/Workers/chunk-EG6PTBY2.js +0 -2716
- package/dist/resources/Workers/chunk-F4HFJMGM.js +0 -353
- package/dist/resources/Workers/chunk-FJKNFAKQ.js +0 -8219
- package/dist/resources/Workers/chunk-FNIRWHJB.js +0 -289
- package/dist/resources/Workers/chunk-FZRIVR7Y.js +0 -100
- package/dist/resources/Workers/chunk-G43QFN4Q.js +0 -157
- package/dist/resources/Workers/chunk-GATZHF3K.js +0 -1860
- package/dist/resources/Workers/chunk-GRC2ZTAF.js +0 -398
- package/dist/resources/Workers/chunk-HU6N6EXB.js +0 -767
- package/dist/resources/Workers/chunk-I46ZRR5W.js +0 -1052
- package/dist/resources/Workers/chunk-JURN7NPV.js +0 -1075
- package/dist/resources/Workers/chunk-KKCR2YOP.js +0 -421
- package/dist/resources/Workers/chunk-LPR3YNP2.js +0 -138
- package/dist/resources/Workers/chunk-M7ERACJJ.js +0 -511
- package/dist/resources/Workers/chunk-MDWEGWPA.js +0 -1007
- package/dist/resources/Workers/chunk-OGXZVPPM.js +0 -2365
- package/dist/resources/Workers/chunk-PGSJK77E.js +0 -634
- package/dist/resources/Workers/chunk-PPH7OFP3.js +0 -258
- package/dist/resources/Workers/chunk-SH5USDPI.js +0 -456
- package/dist/resources/Workers/chunk-SOWMRMWA.js +0 -629
- package/dist/resources/Workers/chunk-STW2DGFI.js +0 -58
- package/dist/resources/Workers/chunk-T3XIFPYR.js +0 -1477
- package/dist/resources/Workers/chunk-TTUZP4BO.js +0 -501
- package/dist/resources/Workers/chunk-UEXTBDBE.js +0 -693
- package/dist/resources/Workers/chunk-VOXYEYJT.js +0 -684
- package/dist/resources/Workers/chunk-X4356LRH.js +0 -368
- package/dist/resources/Workers/chunk-XGI5BXZY.js +0 -163
- package/dist/resources/Workers/chunk-Y2ME2IJV.js +0 -781
- package/dist/resources/Workers/chunk-Y5UQJLYE.js +0 -171
- package/dist/resources/Workers/chunk-YJEBABKH.js +0 -2977
- package/dist/resources/Workers/chunk-YWTJ2B4B.js +0 -77
- package/dist/resources/Workers/chunk-Z3TIFFGF.js +0 -430
- package/dist/resources/Workers/chunk-ZT7KWISZ.js +0 -102
|
@@ -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,203 +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-7ZFGPDJA.js";
|
|
29
|
-
import "./chunk-A5DWLWCY.js";
|
|
30
|
-
import {
|
|
31
|
-
PolygonGeometryLibrary_default
|
|
32
|
-
} from "./chunk-I46ZRR5W.js";
|
|
33
|
-
import "./chunk-EHWHNOEX.js";
|
|
34
|
-
import {
|
|
35
|
-
GeometryInstance_default
|
|
36
|
-
} from "./chunk-BIKA3NRA.js";
|
|
37
|
-
import {
|
|
38
|
-
GeometryPipeline_default
|
|
39
|
-
} from "./chunk-EG6PTBY2.js";
|
|
40
|
-
import "./chunk-Z3TIFFGF.js";
|
|
41
|
-
import "./chunk-ZT7KWISZ.js";
|
|
42
|
-
import "./chunk-FNIRWHJB.js";
|
|
43
|
-
import "./chunk-G43QFN4Q.js";
|
|
44
|
-
import "./chunk-MDWEGWPA.js";
|
|
45
|
-
import {
|
|
46
|
-
arrayRemoveDuplicates_default
|
|
47
|
-
} from "./chunk-FZRIVR7Y.js";
|
|
48
|
-
import "./chunk-SH5USDPI.js";
|
|
49
|
-
import "./chunk-2FRVPMCS.js";
|
|
50
|
-
import "./chunk-Y5UQJLYE.js";
|
|
51
|
-
import {
|
|
52
|
-
IndexDatatype_default
|
|
53
|
-
} from "./chunk-LPR3YNP2.js";
|
|
54
|
-
import {
|
|
55
|
-
GeometryAttributes_default
|
|
56
|
-
} from "./chunk-4H7PY4U5.js";
|
|
57
|
-
import {
|
|
58
|
-
GeometryAttribute_default,
|
|
59
|
-
Geometry_default,
|
|
60
|
-
PrimitiveType_default
|
|
61
|
-
} from "./chunk-7TC63SJW.js";
|
|
62
|
-
import {
|
|
63
|
-
BoundingSphere_default
|
|
64
|
-
} from "./chunk-FJKNFAKQ.js";
|
|
65
|
-
import "./chunk-TTUZP4BO.js";
|
|
66
|
-
import "./chunk-BG4UCVXN.js";
|
|
67
|
-
import "./chunk-YJEBABKH.js";
|
|
68
|
-
import {
|
|
69
|
-
ComponentDatatype_default
|
|
70
|
-
} from "./chunk-PPH7OFP3.js";
|
|
71
|
-
import {
|
|
72
|
-
Cartesian3_default,
|
|
73
|
-
Ellipsoid_default
|
|
74
|
-
} from "./chunk-OGXZVPPM.js";
|
|
75
|
-
import "./chunk-5QULIR53.js";
|
|
76
|
-
import "./chunk-SOWMRMWA.js";
|
|
77
|
-
import "./chunk-STW2DGFI.js";
|
|
78
|
-
import {
|
|
79
|
-
defaultValue_default
|
|
80
|
-
} from "./chunk-BBWDMCVU.js";
|
|
81
|
-
import {
|
|
82
|
-
Check_default
|
|
83
|
-
} from "./chunk-XGI5BXZY.js";
|
|
84
|
-
import {
|
|
85
|
-
defined_default
|
|
86
|
-
} from "./chunk-YWTJ2B4B.js";
|
|
87
|
-
|
|
88
|
-
// packages/engine/Source/Core/CoplanarPolygonOutlineGeometry.js
|
|
89
|
-
function createGeometryFromPositions(positions) {
|
|
90
|
-
const length = positions.length;
|
|
91
|
-
const flatPositions = new Float64Array(length * 3);
|
|
92
|
-
const indices = IndexDatatype_default.createTypedArray(length, length * 2);
|
|
93
|
-
let positionIndex = 0;
|
|
94
|
-
let index = 0;
|
|
95
|
-
for (let i = 0; i < length; i++) {
|
|
96
|
-
const position = positions[i];
|
|
97
|
-
flatPositions[positionIndex++] = position.x;
|
|
98
|
-
flatPositions[positionIndex++] = position.y;
|
|
99
|
-
flatPositions[positionIndex++] = position.z;
|
|
100
|
-
indices[index++] = i;
|
|
101
|
-
indices[index++] = (i + 1) % length;
|
|
102
|
-
}
|
|
103
|
-
const attributes = new GeometryAttributes_default({
|
|
104
|
-
position: new GeometryAttribute_default({
|
|
105
|
-
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
106
|
-
componentsPerAttribute: 3,
|
|
107
|
-
values: flatPositions
|
|
108
|
-
})
|
|
109
|
-
});
|
|
110
|
-
return new Geometry_default({
|
|
111
|
-
attributes,
|
|
112
|
-
indices,
|
|
113
|
-
primitiveType: PrimitiveType_default.LINES
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function CoplanarPolygonOutlineGeometry(options) {
|
|
117
|
-
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
118
|
-
const polygonHierarchy = options.polygonHierarchy;
|
|
119
|
-
Check_default.defined("options.polygonHierarchy", polygonHierarchy);
|
|
120
|
-
this._polygonHierarchy = polygonHierarchy;
|
|
121
|
-
this._workerName = "createCoplanarPolygonOutlineGeometry";
|
|
122
|
-
this.packedLength = PolygonGeometryLibrary_default.computeHierarchyPackedLength(
|
|
123
|
-
polygonHierarchy,
|
|
124
|
-
Cartesian3_default
|
|
125
|
-
) + 1;
|
|
126
|
-
}
|
|
127
|
-
CoplanarPolygonOutlineGeometry.fromPositions = function(options) {
|
|
128
|
-
options = defaultValue_default(options, defaultValue_default.EMPTY_OBJECT);
|
|
129
|
-
Check_default.defined("options.positions", options.positions);
|
|
130
|
-
const newOptions = {
|
|
131
|
-
polygonHierarchy: {
|
|
132
|
-
positions: options.positions
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
return new CoplanarPolygonOutlineGeometry(newOptions);
|
|
136
|
-
};
|
|
137
|
-
CoplanarPolygonOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
138
|
-
Check_default.typeOf.object("value", value);
|
|
139
|
-
Check_default.defined("array", array);
|
|
140
|
-
startingIndex = defaultValue_default(startingIndex, 0);
|
|
141
|
-
startingIndex = PolygonGeometryLibrary_default.packPolygonHierarchy(
|
|
142
|
-
value._polygonHierarchy,
|
|
143
|
-
array,
|
|
144
|
-
startingIndex,
|
|
145
|
-
Cartesian3_default
|
|
146
|
-
);
|
|
147
|
-
array[startingIndex] = value.packedLength;
|
|
148
|
-
return array;
|
|
149
|
-
};
|
|
150
|
-
var scratchOptions = {
|
|
151
|
-
polygonHierarchy: {}
|
|
152
|
-
};
|
|
153
|
-
CoplanarPolygonOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
154
|
-
Check_default.defined("array", array);
|
|
155
|
-
startingIndex = defaultValue_default(startingIndex, 0);
|
|
156
|
-
const polygonHierarchy = PolygonGeometryLibrary_default.unpackPolygonHierarchy(
|
|
157
|
-
array,
|
|
158
|
-
startingIndex,
|
|
159
|
-
Cartesian3_default
|
|
160
|
-
);
|
|
161
|
-
startingIndex = polygonHierarchy.startingIndex;
|
|
162
|
-
delete polygonHierarchy.startingIndex;
|
|
163
|
-
const packedLength = array[startingIndex];
|
|
164
|
-
if (!defined_default(result)) {
|
|
165
|
-
result = new CoplanarPolygonOutlineGeometry(scratchOptions);
|
|
166
|
-
}
|
|
167
|
-
result._polygonHierarchy = polygonHierarchy;
|
|
168
|
-
result.packedLength = packedLength;
|
|
169
|
-
return result;
|
|
170
|
-
};
|
|
171
|
-
CoplanarPolygonOutlineGeometry.createGeometry = function(polygonGeometry) {
|
|
172
|
-
const polygonHierarchy = polygonGeometry._polygonHierarchy;
|
|
173
|
-
let outerPositions = polygonHierarchy.positions;
|
|
174
|
-
outerPositions = arrayRemoveDuplicates_default(
|
|
175
|
-
outerPositions,
|
|
176
|
-
Cartesian3_default.equalsEpsilon,
|
|
177
|
-
true
|
|
178
|
-
);
|
|
179
|
-
if (outerPositions.length < 3) {
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
const isValid = CoplanarPolygonGeometryLibrary_default.validOutline(outerPositions);
|
|
183
|
-
if (!isValid) {
|
|
184
|
-
return void 0;
|
|
185
|
-
}
|
|
186
|
-
const polygons = PolygonGeometryLibrary_default.polygonOutlinesFromHierarchy(
|
|
187
|
-
polygonHierarchy,
|
|
188
|
-
false
|
|
189
|
-
);
|
|
190
|
-
if (polygons.length === 0) {
|
|
191
|
-
return void 0;
|
|
192
|
-
}
|
|
193
|
-
const geometries = [];
|
|
194
|
-
for (let i = 0; i < polygons.length; i++) {
|
|
195
|
-
const geometryInstance = new GeometryInstance_default({
|
|
196
|
-
geometry: createGeometryFromPositions(polygons[i])
|
|
197
|
-
});
|
|
198
|
-
geometries.push(geometryInstance);
|
|
199
|
-
}
|
|
200
|
-
const geometry = GeometryPipeline_default.combineInstances(geometries)[0];
|
|
201
|
-
const boundingSphere = BoundingSphere_default.fromPoints(polygonHierarchy.positions);
|
|
202
|
-
return new Geometry_default({
|
|
203
|
-
attributes: geometry.attributes,
|
|
204
|
-
indices: geometry.indices,
|
|
205
|
-
primitiveType: geometry.primitiveType,
|
|
206
|
-
boundingSphere
|
|
207
|
-
});
|
|
208
|
-
};
|
|
209
|
-
var CoplanarPolygonOutlineGeometry_default = CoplanarPolygonOutlineGeometry;
|
|
210
|
-
|
|
211
|
-
// packages/engine/Source/Workers/createCoplanarPolygonOutlineGeometry.js
|
|
212
|
-
function createCoplanarPolygonOutlineGeometry(polygonGeometry, offset) {
|
|
213
|
-
if (defined_default(offset)) {
|
|
214
|
-
polygonGeometry = CoplanarPolygonOutlineGeometry_default.unpack(
|
|
215
|
-
polygonGeometry,
|
|
216
|
-
offset
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
polygonGeometry._ellipsoid = Ellipsoid_default.clone(polygonGeometry._ellipsoid);
|
|
220
|
-
return CoplanarPolygonOutlineGeometry_default.createGeometry(polygonGeometry);
|
|
221
|
-
}
|
|
222
|
-
var createCoplanarPolygonOutlineGeometry_default = createCoplanarPolygonOutlineGeometry;
|
|
223
|
-
export {
|
|
224
|
-
createCoplanarPolygonOutlineGeometry_default as default
|
|
225
|
-
};
|
|
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};
|