@rtzh/engine 0.0.2 → 0.0.3

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.
Files changed (113) hide show
  1. package/Source/Scene/GltfLoader.js +2 -2
  2. package/package.json +1 -1
  3. package/Build/ThirdParty/Workers/zip-web-worker.js +0 -640
  4. package/Build/Workers/chunk-245NZYCR.js +0 -124
  5. package/Build/Workers/chunk-25BA4527.js +0 -837
  6. package/Build/Workers/chunk-4HXPSZRC.js +0 -1483
  7. package/Build/Workers/chunk-4Z26IS65.js +0 -3514
  8. package/Build/Workers/chunk-55IROWAX.js +0 -139
  9. package/Build/Workers/chunk-56XTN5NJ.js +0 -1800
  10. package/Build/Workers/chunk-5VZISKJF.js +0 -629
  11. package/Build/Workers/chunk-5WAG5YKS.js +0 -368
  12. package/Build/Workers/chunk-66YGZWBI.js +0 -1317
  13. package/Build/Workers/chunk-6H33B6OL.js +0 -37
  14. package/Build/Workers/chunk-6LZBBEA7.js +0 -439
  15. package/Build/Workers/chunk-6XJO625E.js +0 -497
  16. package/Build/Workers/chunk-75UGCVME.js +0 -102
  17. package/Build/Workers/chunk-7B23DD46.js +0 -1054
  18. package/Build/Workers/chunk-7NCJH26L.js +0 -352
  19. package/Build/Workers/chunk-AIW5F22O.js +0 -352
  20. package/Build/Workers/chunk-AL22JVIA.js +0 -256
  21. package/Build/Workers/chunk-AVSQILVI.js +0 -75
  22. package/Build/Workers/chunk-B2VFNYD7.js +0 -280
  23. package/Build/Workers/chunk-BOV6T7FO.js +0 -44
  24. package/Build/Workers/chunk-DP76S3IQ.js +0 -1067
  25. package/Build/Workers/chunk-EDIUN7V3.js +0 -219
  26. package/Build/Workers/chunk-EKMWNF4U.js +0 -55
  27. package/Build/Workers/chunk-ELXGXAYS.js +0 -682
  28. package/Build/Workers/chunk-FVYRV2T6.js +0 -455
  29. package/Build/Workers/chunk-GDIBU55R.js +0 -778
  30. package/Build/Workers/chunk-HAY6YE7M.js +0 -97
  31. package/Build/Workers/chunk-I76SRIKN.js +0 -138
  32. package/Build/Workers/chunk-IELTSYPZ.js +0 -241
  33. package/Build/Workers/chunk-J4MIJCN5.js +0 -171
  34. package/Build/Workers/chunk-JFO3ELF3.js +0 -642
  35. package/Build/Workers/chunk-K4IMD7KH.js +0 -162
  36. package/Build/Workers/chunk-KFMCOG26.js +0 -692
  37. package/Build/Workers/chunk-KH2OWUUA.js +0 -163
  38. package/Build/Workers/chunk-KQIZ7AFF.js +0 -8366
  39. package/Build/Workers/chunk-KVE5EAPO.js +0 -398
  40. package/Build/Workers/chunk-OAOREOSO.js +0 -940
  41. package/Build/Workers/chunk-OFJRMGNX.js +0 -788
  42. package/Build/Workers/chunk-PLLZB3R4.js +0 -198
  43. package/Build/Workers/chunk-POY6ZE32.js +0 -2058
  44. package/Build/Workers/chunk-PV5B2YNB.js +0 -2719
  45. package/Build/Workers/chunk-Q2DXNFYW.js +0 -414
  46. package/Build/Workers/chunk-QWV2DM66.js +0 -1443
  47. package/Build/Workers/chunk-R73BHGGI.js +0 -305
  48. package/Build/Workers/chunk-S3AE3MZZ.js +0 -511
  49. package/Build/Workers/chunk-SBFTVHRW.js +0 -57
  50. package/Build/Workers/chunk-SOR7PD4V.js +0 -114
  51. package/Build/Workers/chunk-TO7TWUET.js +0 -476
  52. package/Build/Workers/chunk-TSAJNE4K.js +0 -101
  53. package/Build/Workers/chunk-TWF4XRZ6.js +0 -73
  54. package/Build/Workers/chunk-UTWLMOPM.js +0 -387
  55. package/Build/Workers/chunk-UYT2PBMV.js +0 -58
  56. package/Build/Workers/chunk-WAS3IHIQ.js +0 -288
  57. package/Build/Workers/chunk-WO5ZNC7S.js +0 -1045
  58. package/Build/Workers/chunk-X65Y2JSA.js +0 -55
  59. package/Build/Workers/chunk-XOVHLPKW.js +0 -299
  60. package/Build/Workers/chunk-YPGJSFOO.js +0 -1460
  61. package/Build/Workers/combineGeometry.js +0 -66
  62. package/Build/Workers/createBoxGeometry.js +0 -58
  63. package/Build/Workers/createBoxOutlineGeometry.js +0 -231
  64. package/Build/Workers/createCircleGeometry.js +0 -201
  65. package/Build/Workers/createCircleOutlineGeometry.js +0 -147
  66. package/Build/Workers/createCoplanarPolygonGeometry.js +0 -505
  67. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +0 -225
  68. package/Build/Workers/createCorridorGeometry.js +0 -1258
  69. package/Build/Workers/createCorridorOutlineGeometry.js +0 -563
  70. package/Build/Workers/createCylinderGeometry.js +0 -60
  71. package/Build/Workers/createCylinderOutlineGeometry.js +0 -231
  72. package/Build/Workers/createEllipseGeometry.js +0 -72
  73. package/Build/Workers/createEllipseOutlineGeometry.js +0 -65
  74. package/Build/Workers/createEllipsoidGeometry.js +0 -59
  75. package/Build/Workers/createEllipsoidOutlineGeometry.js +0 -61
  76. package/Build/Workers/createFrustumGeometry.js +0 -58
  77. package/Build/Workers/createFrustumOutlineGeometry.js +0 -234
  78. package/Build/Workers/createGeometry.js +0 -173
  79. package/Build/Workers/createGroundPolylineGeometry.js +0 -1602
  80. package/Build/Workers/createPlaneGeometry.js +0 -223
  81. package/Build/Workers/createPlaneOutlineGeometry.js +0 -124
  82. package/Build/Workers/createPolygonGeometry.js +0 -1404
  83. package/Build/Workers/createPolygonOutlineGeometry.js +0 -532
  84. package/Build/Workers/createPolylineGeometry.js +0 -491
  85. package/Build/Workers/createPolylineVolumeGeometry.js +0 -374
  86. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +0 -272
  87. package/Build/Workers/createRectangleGeometry.js +0 -1264
  88. package/Build/Workers/createRectangleOutlineGeometry.js +0 -476
  89. package/Build/Workers/createSimplePolylineGeometry.js +0 -397
  90. package/Build/Workers/createSphereGeometry.js +0 -116
  91. package/Build/Workers/createSphereOutlineGeometry.js +0 -116
  92. package/Build/Workers/createTaskProcessorWorker.js +0 -32
  93. package/Build/Workers/createVectorTileClampedPolylines.js +0 -492
  94. package/Build/Workers/createVectorTileGeometries.js +0 -387
  95. package/Build/Workers/createVectorTilePoints.js +0 -114
  96. package/Build/Workers/createVectorTilePolygons.js +0 -386
  97. package/Build/Workers/createVectorTilePolylines.js +0 -262
  98. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +0 -91
  99. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -565
  100. package/Build/Workers/createVerticesFromHeightmap.js +0 -2254
  101. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -499
  102. package/Build/Workers/createWallGeometry.js +0 -487
  103. package/Build/Workers/createWallOutlineGeometry.js +0 -335
  104. package/Build/Workers/decodeDraco.js +0 -369
  105. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +0 -2680
  106. package/Build/Workers/decodeI3S.js +0 -1339
  107. package/Build/Workers/gaussianSplatSorter.js +0 -62
  108. package/Build/Workers/gaussianSplatTextureGenerator.js +0 -68
  109. package/Build/Workers/incrementallyBuildTerrainPicker.js +0 -121
  110. package/Build/Workers/transcodeKTX2.js +0 -3463
  111. package/Build/Workers/transferTypedArrayTest.js +0 -41
  112. package/Build/Workers/upsampleQuantizedTerrainMesh.js +0 -820
  113. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +0 -95
@@ -1,397 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.1
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- Color_default
28
- } from "./chunk-JFO3ELF3.js";
29
- import {
30
- ArcType_default
31
- } from "./chunk-X65Y2JSA.js";
32
- import {
33
- PolylinePipeline_default
34
- } from "./chunk-Q2DXNFYW.js";
35
- import "./chunk-AIW5F22O.js";
36
- import "./chunk-FVYRV2T6.js";
37
- import "./chunk-66YGZWBI.js";
38
- import "./chunk-J4MIJCN5.js";
39
- import {
40
- IndexDatatype_default
41
- } from "./chunk-55IROWAX.js";
42
- import {
43
- GeometryAttributes_default
44
- } from "./chunk-BOV6T7FO.js";
45
- import {
46
- GeometryAttribute_default,
47
- Geometry_default,
48
- PrimitiveType_default
49
- } from "./chunk-XOVHLPKW.js";
50
- import {
51
- BoundingSphere_default
52
- } from "./chunk-OAOREOSO.js";
53
- import "./chunk-EKMWNF4U.js";
54
- import "./chunk-KQIZ7AFF.js";
55
- import "./chunk-POY6ZE32.js";
56
- import {
57
- ComponentDatatype_default
58
- } from "./chunk-AL22JVIA.js";
59
- import "./chunk-5VZISKJF.js";
60
- import "./chunk-UYT2PBMV.js";
61
- import {
62
- Ellipsoid_default
63
- } from "./chunk-YPGJSFOO.js";
64
- import {
65
- Cartesian3_default,
66
- Frozen_default
67
- } from "./chunk-QWV2DM66.js";
68
- import {
69
- Math_default
70
- } from "./chunk-6XJO625E.js";
71
- import {
72
- DeveloperError_default
73
- } from "./chunk-KH2OWUUA.js";
74
- import {
75
- defined_default
76
- } from "./chunk-AVSQILVI.js";
77
-
78
- // packages/engine/Source/Core/SimplePolylineGeometry.js
79
- function interpolateColors(p0, p1, color0, color1, minDistance, array, offset) {
80
- const numPoints = PolylinePipeline_default.numberOfPoints(p0, p1, minDistance);
81
- let i;
82
- const r0 = color0.red;
83
- const g0 = color0.green;
84
- const b0 = color0.blue;
85
- const a0 = color0.alpha;
86
- const r1 = color1.red;
87
- const g1 = color1.green;
88
- const b1 = color1.blue;
89
- const a1 = color1.alpha;
90
- if (Color_default.equals(color0, color1)) {
91
- for (i = 0; i < numPoints; i++) {
92
- array[offset++] = Color_default.floatToByte(r0);
93
- array[offset++] = Color_default.floatToByte(g0);
94
- array[offset++] = Color_default.floatToByte(b0);
95
- array[offset++] = Color_default.floatToByte(a0);
96
- }
97
- return offset;
98
- }
99
- const redPerVertex = (r1 - r0) / numPoints;
100
- const greenPerVertex = (g1 - g0) / numPoints;
101
- const bluePerVertex = (b1 - b0) / numPoints;
102
- const alphaPerVertex = (a1 - a0) / numPoints;
103
- let index = offset;
104
- for (i = 0; i < numPoints; i++) {
105
- array[index++] = Color_default.floatToByte(r0 + i * redPerVertex);
106
- array[index++] = Color_default.floatToByte(g0 + i * greenPerVertex);
107
- array[index++] = Color_default.floatToByte(b0 + i * bluePerVertex);
108
- array[index++] = Color_default.floatToByte(a0 + i * alphaPerVertex);
109
- }
110
- return index;
111
- }
112
- function SimplePolylineGeometry(options) {
113
- options = options ?? Frozen_default.EMPTY_OBJECT;
114
- const positions = options.positions;
115
- const colors = options.colors;
116
- const colorsPerVertex = options.colorsPerVertex ?? false;
117
- if (!defined_default(positions) || positions.length < 2) {
118
- throw new DeveloperError_default("At least two positions are required.");
119
- }
120
- if (defined_default(colors) && (colorsPerVertex && colors.length < positions.length || !colorsPerVertex && colors.length < positions.length - 1)) {
121
- throw new DeveloperError_default("colors has an invalid length.");
122
- }
123
- this._positions = positions;
124
- this._colors = colors;
125
- this._colorsPerVertex = colorsPerVertex;
126
- this._arcType = options.arcType ?? ArcType_default.GEODESIC;
127
- this._granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
128
- this._ellipsoid = options.ellipsoid ?? Ellipsoid_default.default;
129
- this._workerName = "createSimplePolylineGeometry";
130
- let numComponents = 1 + positions.length * Cartesian3_default.packedLength;
131
- numComponents += defined_default(colors) ? 1 + colors.length * Color_default.packedLength : 1;
132
- this.packedLength = numComponents + Ellipsoid_default.packedLength + 3;
133
- }
134
- SimplePolylineGeometry.pack = function(value, array, startingIndex) {
135
- if (!defined_default(value)) {
136
- throw new DeveloperError_default("value is required");
137
- }
138
- if (!defined_default(array)) {
139
- throw new DeveloperError_default("array is required");
140
- }
141
- startingIndex = startingIndex ?? 0;
142
- let i;
143
- const positions = value._positions;
144
- let length = positions.length;
145
- array[startingIndex++] = length;
146
- for (i = 0; i < length; ++i, startingIndex += Cartesian3_default.packedLength) {
147
- Cartesian3_default.pack(positions[i], array, startingIndex);
148
- }
149
- const colors = value._colors;
150
- length = defined_default(colors) ? colors.length : 0;
151
- array[startingIndex++] = length;
152
- for (i = 0; i < length; ++i, startingIndex += Color_default.packedLength) {
153
- Color_default.pack(colors[i], array, startingIndex);
154
- }
155
- Ellipsoid_default.pack(value._ellipsoid, array, startingIndex);
156
- startingIndex += Ellipsoid_default.packedLength;
157
- array[startingIndex++] = value._colorsPerVertex ? 1 : 0;
158
- array[startingIndex++] = value._arcType;
159
- array[startingIndex] = value._granularity;
160
- return array;
161
- };
162
- SimplePolylineGeometry.unpack = function(array, startingIndex, result) {
163
- if (!defined_default(array)) {
164
- throw new DeveloperError_default("array is required");
165
- }
166
- startingIndex = startingIndex ?? 0;
167
- let i;
168
- let length = array[startingIndex++];
169
- const positions = new Array(length);
170
- for (i = 0; i < length; ++i, startingIndex += Cartesian3_default.packedLength) {
171
- positions[i] = Cartesian3_default.unpack(array, startingIndex);
172
- }
173
- length = array[startingIndex++];
174
- const colors = length > 0 ? new Array(length) : void 0;
175
- for (i = 0; i < length; ++i, startingIndex += Color_default.packedLength) {
176
- colors[i] = Color_default.unpack(array, startingIndex);
177
- }
178
- const ellipsoid = Ellipsoid_default.unpack(array, startingIndex);
179
- startingIndex += Ellipsoid_default.packedLength;
180
- const colorsPerVertex = array[startingIndex++] === 1;
181
- const arcType = array[startingIndex++];
182
- const granularity = array[startingIndex];
183
- if (!defined_default(result)) {
184
- return new SimplePolylineGeometry({
185
- positions,
186
- colors,
187
- ellipsoid,
188
- colorsPerVertex,
189
- arcType,
190
- granularity
191
- });
192
- }
193
- result._positions = positions;
194
- result._colors = colors;
195
- result._ellipsoid = ellipsoid;
196
- result._colorsPerVertex = colorsPerVertex;
197
- result._arcType = arcType;
198
- result._granularity = granularity;
199
- return result;
200
- };
201
- var scratchArray1 = new Array(2);
202
- var scratchArray2 = new Array(2);
203
- var generateArcOptionsScratch = {
204
- positions: scratchArray1,
205
- height: scratchArray2,
206
- ellipsoid: void 0,
207
- minDistance: void 0,
208
- granularity: void 0
209
- };
210
- SimplePolylineGeometry.createGeometry = function(simplePolylineGeometry) {
211
- const positions = simplePolylineGeometry._positions;
212
- const colors = simplePolylineGeometry._colors;
213
- const colorsPerVertex = simplePolylineGeometry._colorsPerVertex;
214
- const arcType = simplePolylineGeometry._arcType;
215
- const granularity = simplePolylineGeometry._granularity;
216
- const ellipsoid = simplePolylineGeometry._ellipsoid;
217
- const minDistance = Math_default.chordLength(
218
- granularity,
219
- ellipsoid.maximumRadius
220
- );
221
- const perSegmentColors = defined_default(colors) && !colorsPerVertex;
222
- let i;
223
- const length = positions.length;
224
- let positionValues;
225
- let numberOfPositions;
226
- let colorValues;
227
- let color;
228
- let offset = 0;
229
- if (arcType === ArcType_default.GEODESIC || arcType === ArcType_default.RHUMB) {
230
- let subdivisionSize;
231
- let numberOfPointsFunction;
232
- let generateArcFunction;
233
- if (arcType === ArcType_default.GEODESIC) {
234
- subdivisionSize = Math_default.chordLength(
235
- granularity,
236
- ellipsoid.maximumRadius
237
- );
238
- numberOfPointsFunction = PolylinePipeline_default.numberOfPoints;
239
- generateArcFunction = PolylinePipeline_default.generateArc;
240
- } else {
241
- subdivisionSize = granularity;
242
- numberOfPointsFunction = PolylinePipeline_default.numberOfPointsRhumbLine;
243
- generateArcFunction = PolylinePipeline_default.generateRhumbArc;
244
- }
245
- const heights = PolylinePipeline_default.extractHeights(positions, ellipsoid);
246
- const generateArcOptions = generateArcOptionsScratch;
247
- if (arcType === ArcType_default.GEODESIC) {
248
- generateArcOptions.minDistance = minDistance;
249
- } else {
250
- generateArcOptions.granularity = granularity;
251
- }
252
- generateArcOptions.ellipsoid = ellipsoid;
253
- if (perSegmentColors) {
254
- let positionCount = 0;
255
- for (i = 0; i < length - 1; i++) {
256
- positionCount += numberOfPointsFunction(
257
- positions[i],
258
- positions[i + 1],
259
- subdivisionSize
260
- ) + 1;
261
- }
262
- positionValues = new Float64Array(positionCount * 3);
263
- colorValues = new Uint8Array(positionCount * 4);
264
- generateArcOptions.positions = scratchArray1;
265
- generateArcOptions.height = scratchArray2;
266
- let ci = 0;
267
- for (i = 0; i < length - 1; ++i) {
268
- scratchArray1[0] = positions[i];
269
- scratchArray1[1] = positions[i + 1];
270
- scratchArray2[0] = heights[i];
271
- scratchArray2[1] = heights[i + 1];
272
- const pos = generateArcFunction(generateArcOptions);
273
- if (defined_default(colors)) {
274
- const segLen = pos.length / 3;
275
- color = colors[i];
276
- for (let k = 0; k < segLen; ++k) {
277
- colorValues[ci++] = Color_default.floatToByte(color.red);
278
- colorValues[ci++] = Color_default.floatToByte(color.green);
279
- colorValues[ci++] = Color_default.floatToByte(color.blue);
280
- colorValues[ci++] = Color_default.floatToByte(color.alpha);
281
- }
282
- }
283
- positionValues.set(pos, offset);
284
- offset += pos.length;
285
- }
286
- } else {
287
- generateArcOptions.positions = positions;
288
- generateArcOptions.height = heights;
289
- positionValues = new Float64Array(
290
- generateArcFunction(generateArcOptions)
291
- );
292
- if (defined_default(colors)) {
293
- colorValues = new Uint8Array(positionValues.length / 3 * 4);
294
- for (i = 0; i < length - 1; ++i) {
295
- const p0 = positions[i];
296
- const p1 = positions[i + 1];
297
- const c0 = colors[i];
298
- const c1 = colors[i + 1];
299
- offset = interpolateColors(
300
- p0,
301
- p1,
302
- c0,
303
- c1,
304
- minDistance,
305
- colorValues,
306
- offset
307
- );
308
- }
309
- const lastColor = colors[length - 1];
310
- colorValues[offset++] = Color_default.floatToByte(lastColor.red);
311
- colorValues[offset++] = Color_default.floatToByte(lastColor.green);
312
- colorValues[offset++] = Color_default.floatToByte(lastColor.blue);
313
- colorValues[offset++] = Color_default.floatToByte(lastColor.alpha);
314
- }
315
- }
316
- } else {
317
- numberOfPositions = perSegmentColors ? length * 2 - 2 : length;
318
- positionValues = new Float64Array(numberOfPositions * 3);
319
- colorValues = defined_default(colors) ? new Uint8Array(numberOfPositions * 4) : void 0;
320
- let positionIndex = 0;
321
- let colorIndex = 0;
322
- for (i = 0; i < length; ++i) {
323
- const p = positions[i];
324
- if (perSegmentColors && i > 0) {
325
- Cartesian3_default.pack(p, positionValues, positionIndex);
326
- positionIndex += 3;
327
- color = colors[i - 1];
328
- colorValues[colorIndex++] = Color_default.floatToByte(color.red);
329
- colorValues[colorIndex++] = Color_default.floatToByte(color.green);
330
- colorValues[colorIndex++] = Color_default.floatToByte(color.blue);
331
- colorValues[colorIndex++] = Color_default.floatToByte(color.alpha);
332
- }
333
- if (perSegmentColors && i === length - 1) {
334
- break;
335
- }
336
- Cartesian3_default.pack(p, positionValues, positionIndex);
337
- positionIndex += 3;
338
- if (defined_default(colors)) {
339
- color = colors[i];
340
- colorValues[colorIndex++] = Color_default.floatToByte(color.red);
341
- colorValues[colorIndex++] = Color_default.floatToByte(color.green);
342
- colorValues[colorIndex++] = Color_default.floatToByte(color.blue);
343
- colorValues[colorIndex++] = Color_default.floatToByte(color.alpha);
344
- }
345
- }
346
- }
347
- const attributes = new GeometryAttributes_default();
348
- attributes.position = new GeometryAttribute_default({
349
- componentDatatype: ComponentDatatype_default.DOUBLE,
350
- componentsPerAttribute: 3,
351
- values: positionValues
352
- });
353
- if (defined_default(colors)) {
354
- attributes.color = new GeometryAttribute_default({
355
- componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
356
- componentsPerAttribute: 4,
357
- values: colorValues,
358
- normalize: true
359
- });
360
- }
361
- numberOfPositions = positionValues.length / 3;
362
- const numberOfIndices = (numberOfPositions - 1) * 2;
363
- const indices = IndexDatatype_default.createTypedArray(
364
- numberOfPositions,
365
- numberOfIndices
366
- );
367
- let index = 0;
368
- for (i = 0; i < numberOfPositions - 1; ++i) {
369
- indices[index++] = i;
370
- indices[index++] = i + 1;
371
- }
372
- return new Geometry_default({
373
- attributes,
374
- indices,
375
- primitiveType: PrimitiveType_default.LINES,
376
- boundingSphere: BoundingSphere_default.fromPoints(positions)
377
- });
378
- };
379
- var SimplePolylineGeometry_default = SimplePolylineGeometry;
380
-
381
- // packages/engine/Source/Workers/createSimplePolylineGeometry.js
382
- function createSimplePolylineGeometry(simplePolylineGeometry, offset) {
383
- if (defined_default(offset)) {
384
- simplePolylineGeometry = SimplePolylineGeometry_default.unpack(
385
- simplePolylineGeometry,
386
- offset
387
- );
388
- }
389
- simplePolylineGeometry._ellipsoid = Ellipsoid_default.clone(
390
- simplePolylineGeometry._ellipsoid
391
- );
392
- return SimplePolylineGeometry_default.createGeometry(simplePolylineGeometry);
393
- }
394
- var createSimplePolylineGeometry_default = createSimplePolylineGeometry;
395
- export {
396
- createSimplePolylineGeometry_default as default
397
- };
@@ -1,116 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.1
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- EllipsoidGeometry_default
28
- } from "./chunk-S3AE3MZZ.js";
29
- import "./chunk-6H33B6OL.js";
30
- import {
31
- VertexFormat_default
32
- } from "./chunk-I76SRIKN.js";
33
- import "./chunk-55IROWAX.js";
34
- import "./chunk-BOV6T7FO.js";
35
- import "./chunk-XOVHLPKW.js";
36
- import "./chunk-OAOREOSO.js";
37
- import "./chunk-EKMWNF4U.js";
38
- import "./chunk-KQIZ7AFF.js";
39
- import "./chunk-POY6ZE32.js";
40
- import "./chunk-AL22JVIA.js";
41
- import "./chunk-5VZISKJF.js";
42
- import "./chunk-UYT2PBMV.js";
43
- import "./chunk-YPGJSFOO.js";
44
- import {
45
- Cartesian3_default
46
- } from "./chunk-QWV2DM66.js";
47
- import "./chunk-6XJO625E.js";
48
- import {
49
- Check_default
50
- } from "./chunk-KH2OWUUA.js";
51
- import {
52
- defined_default
53
- } from "./chunk-AVSQILVI.js";
54
-
55
- // packages/engine/Source/Core/SphereGeometry.js
56
- function SphereGeometry(options) {
57
- const radius = options.radius ?? 1;
58
- const radii = new Cartesian3_default(radius, radius, radius);
59
- const ellipsoidOptions = {
60
- radii,
61
- stackPartitions: options.stackPartitions,
62
- slicePartitions: options.slicePartitions,
63
- vertexFormat: options.vertexFormat
64
- };
65
- this._ellipsoidGeometry = new EllipsoidGeometry_default(ellipsoidOptions);
66
- this._workerName = "createSphereGeometry";
67
- }
68
- SphereGeometry.packedLength = EllipsoidGeometry_default.packedLength;
69
- SphereGeometry.pack = function(value, array, startingIndex) {
70
- Check_default.typeOf.object("value", value);
71
- return EllipsoidGeometry_default.pack(value._ellipsoidGeometry, array, startingIndex);
72
- };
73
- var scratchEllipsoidGeometry = new EllipsoidGeometry_default();
74
- var scratchOptions = {
75
- radius: void 0,
76
- radii: new Cartesian3_default(),
77
- vertexFormat: new VertexFormat_default(),
78
- stackPartitions: void 0,
79
- slicePartitions: void 0
80
- };
81
- SphereGeometry.unpack = function(array, startingIndex, result) {
82
- const ellipsoidGeometry = EllipsoidGeometry_default.unpack(
83
- array,
84
- startingIndex,
85
- scratchEllipsoidGeometry
86
- );
87
- scratchOptions.vertexFormat = VertexFormat_default.clone(
88
- ellipsoidGeometry._vertexFormat,
89
- scratchOptions.vertexFormat
90
- );
91
- scratchOptions.stackPartitions = ellipsoidGeometry._stackPartitions;
92
- scratchOptions.slicePartitions = ellipsoidGeometry._slicePartitions;
93
- if (!defined_default(result)) {
94
- scratchOptions.radius = ellipsoidGeometry._radii.x;
95
- return new SphereGeometry(scratchOptions);
96
- }
97
- Cartesian3_default.clone(ellipsoidGeometry._radii, scratchOptions.radii);
98
- result._ellipsoidGeometry = new EllipsoidGeometry_default(scratchOptions);
99
- return result;
100
- };
101
- SphereGeometry.createGeometry = function(sphereGeometry) {
102
- return EllipsoidGeometry_default.createGeometry(sphereGeometry._ellipsoidGeometry);
103
- };
104
- var SphereGeometry_default = SphereGeometry;
105
-
106
- // packages/engine/Source/Workers/createSphereGeometry.js
107
- function createSphereGeometry(sphereGeometry, offset) {
108
- if (defined_default(offset)) {
109
- sphereGeometry = SphereGeometry_default.unpack(sphereGeometry, offset);
110
- }
111
- return SphereGeometry_default.createGeometry(sphereGeometry);
112
- }
113
- var createSphereGeometry_default = createSphereGeometry;
114
- export {
115
- createSphereGeometry_default as default
116
- };
@@ -1,116 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.1
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- EllipsoidOutlineGeometry_default
28
- } from "./chunk-5WAG5YKS.js";
29
- import "./chunk-6H33B6OL.js";
30
- import "./chunk-55IROWAX.js";
31
- import "./chunk-BOV6T7FO.js";
32
- import "./chunk-XOVHLPKW.js";
33
- import "./chunk-OAOREOSO.js";
34
- import "./chunk-EKMWNF4U.js";
35
- import "./chunk-KQIZ7AFF.js";
36
- import "./chunk-POY6ZE32.js";
37
- import "./chunk-AL22JVIA.js";
38
- import "./chunk-5VZISKJF.js";
39
- import "./chunk-UYT2PBMV.js";
40
- import "./chunk-YPGJSFOO.js";
41
- import {
42
- Cartesian3_default
43
- } from "./chunk-QWV2DM66.js";
44
- import "./chunk-6XJO625E.js";
45
- import {
46
- Check_default
47
- } from "./chunk-KH2OWUUA.js";
48
- import {
49
- defined_default
50
- } from "./chunk-AVSQILVI.js";
51
-
52
- // packages/engine/Source/Core/SphereOutlineGeometry.js
53
- function SphereOutlineGeometry(options) {
54
- const radius = options.radius ?? 1;
55
- const radii = new Cartesian3_default(radius, radius, radius);
56
- const ellipsoidOptions = {
57
- radii,
58
- stackPartitions: options.stackPartitions,
59
- slicePartitions: options.slicePartitions,
60
- subdivisions: options.subdivisions
61
- };
62
- this._ellipsoidGeometry = new EllipsoidOutlineGeometry_default(ellipsoidOptions);
63
- this._workerName = "createSphereOutlineGeometry";
64
- }
65
- SphereOutlineGeometry.packedLength = EllipsoidOutlineGeometry_default.packedLength;
66
- SphereOutlineGeometry.pack = function(value, array, startingIndex) {
67
- Check_default.typeOf.object("value", value);
68
- return EllipsoidOutlineGeometry_default.pack(
69
- value._ellipsoidGeometry,
70
- array,
71
- startingIndex
72
- );
73
- };
74
- var scratchEllipsoidGeometry = new EllipsoidOutlineGeometry_default();
75
- var scratchOptions = {
76
- radius: void 0,
77
- radii: new Cartesian3_default(),
78
- stackPartitions: void 0,
79
- slicePartitions: void 0,
80
- subdivisions: void 0
81
- };
82
- SphereOutlineGeometry.unpack = function(array, startingIndex, result) {
83
- const ellipsoidGeometry = EllipsoidOutlineGeometry_default.unpack(
84
- array,
85
- startingIndex,
86
- scratchEllipsoidGeometry
87
- );
88
- scratchOptions.stackPartitions = ellipsoidGeometry._stackPartitions;
89
- scratchOptions.slicePartitions = ellipsoidGeometry._slicePartitions;
90
- scratchOptions.subdivisions = ellipsoidGeometry._subdivisions;
91
- if (!defined_default(result)) {
92
- scratchOptions.radius = ellipsoidGeometry._radii.x;
93
- return new SphereOutlineGeometry(scratchOptions);
94
- }
95
- Cartesian3_default.clone(ellipsoidGeometry._radii, scratchOptions.radii);
96
- result._ellipsoidGeometry = new EllipsoidOutlineGeometry_default(scratchOptions);
97
- return result;
98
- };
99
- SphereOutlineGeometry.createGeometry = function(sphereGeometry) {
100
- return EllipsoidOutlineGeometry_default.createGeometry(
101
- sphereGeometry._ellipsoidGeometry
102
- );
103
- };
104
- var SphereOutlineGeometry_default = SphereOutlineGeometry;
105
-
106
- // packages/engine/Source/Workers/createSphereOutlineGeometry.js
107
- function createSphereOutlineGeometry(sphereGeometry, offset) {
108
- if (defined_default(offset)) {
109
- sphereGeometry = SphereOutlineGeometry_default.unpack(sphereGeometry, offset);
110
- }
111
- return SphereOutlineGeometry_default.createGeometry(sphereGeometry);
112
- }
113
- var createSphereOutlineGeometry_default = createSphereOutlineGeometry;
114
- export {
115
- createSphereOutlineGeometry_default as default
116
- };
@@ -1,32 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.1
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- createTaskProcessorWorker_default
28
- } from "./chunk-TSAJNE4K.js";
29
- import "./chunk-AVSQILVI.js";
30
- export {
31
- createTaskProcessorWorker_default as default
32
- };