@rtzh/engine 0.0.3 → 0.0.4

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 (172) hide show
  1. package/Build/ThirdParty/Workers/zip-web-worker.js +640 -0
  2. package/Build/Workers/chunk-245NZYCR.js +124 -0
  3. package/Build/Workers/chunk-25BA4527.js +837 -0
  4. package/Build/Workers/chunk-2APW7KRS.js +101 -0
  5. package/Build/Workers/chunk-2BLQ3B4Q.js +299 -0
  6. package/Build/Workers/chunk-2CAIFJD5.js +387 -0
  7. package/Build/Workers/chunk-3K2PK2OU.js +1045 -0
  8. package/Build/Workers/chunk-3M5CRHSG.js +288 -0
  9. package/Build/Workers/chunk-4HXPSZRC.js +1483 -0
  10. package/Build/Workers/chunk-4Z26IS65.js +3514 -0
  11. package/Build/Workers/chunk-55IROWAX.js +139 -0
  12. package/Build/Workers/chunk-56XTN5NJ.js +1800 -0
  13. package/Build/Workers/chunk-5BIQOSBV.js +55 -0
  14. package/Build/Workers/chunk-5CSRWY7L.js +280 -0
  15. package/Build/Workers/chunk-5QTPACZQ.js +455 -0
  16. package/Build/Workers/chunk-5VZISKJF.js +629 -0
  17. package/Build/Workers/chunk-5WAG5YKS.js +368 -0
  18. package/Build/Workers/chunk-64W2RXA4.js +219 -0
  19. package/Build/Workers/chunk-66YGZWBI.js +1317 -0
  20. package/Build/Workers/chunk-6H33B6OL.js +37 -0
  21. package/Build/Workers/chunk-6LZBBEA7.js +439 -0
  22. package/Build/Workers/chunk-6QVMKRJ4.js +3514 -0
  23. package/Build/Workers/chunk-6XJO625E.js +497 -0
  24. package/Build/Workers/chunk-75UGCVME.js +102 -0
  25. package/Build/Workers/chunk-7B23DD46.js +1054 -0
  26. package/Build/Workers/chunk-7NCJH26L.js +352 -0
  27. package/Build/Workers/chunk-ACH67MPW.js +1483 -0
  28. package/Build/Workers/chunk-AIW5F22O.js +352 -0
  29. package/Build/Workers/chunk-AL22JVIA.js +256 -0
  30. package/Build/Workers/chunk-AVSQILVI.js +75 -0
  31. package/Build/Workers/chunk-B2VFNYD7.js +280 -0
  32. package/Build/Workers/chunk-BJ6WXQOW.js +305 -0
  33. package/Build/Workers/chunk-BN4WA7LX.js +75 -0
  34. package/Build/Workers/chunk-BOV6T7FO.js +44 -0
  35. package/Build/Workers/chunk-BXBGWQ3Z.js +171 -0
  36. package/Build/Workers/chunk-D7TGILR3.js +1054 -0
  37. package/Build/Workers/chunk-DBKYAGM6.js +1800 -0
  38. package/Build/Workers/chunk-DEIMB3B5.js +629 -0
  39. package/Build/Workers/chunk-DP76S3IQ.js +1067 -0
  40. package/Build/Workers/chunk-DSBEWMOQ.js +1067 -0
  41. package/Build/Workers/chunk-E2CARZA7.js +73 -0
  42. package/Build/Workers/chunk-EDIUN7V3.js +219 -0
  43. package/Build/Workers/chunk-EISI2CR2.js +2058 -0
  44. package/Build/Workers/chunk-EKMWNF4U.js +55 -0
  45. package/Build/Workers/chunk-ELXGXAYS.js +682 -0
  46. package/Build/Workers/chunk-F5LAPCFC.js +1460 -0
  47. package/Build/Workers/chunk-FJREGHFG.js +138 -0
  48. package/Build/Workers/chunk-FVYRV2T6.js +455 -0
  49. package/Build/Workers/chunk-GDIBU55R.js +778 -0
  50. package/Build/Workers/chunk-HAWJ7FMN.js +8366 -0
  51. package/Build/Workers/chunk-HAY6YE7M.js +97 -0
  52. package/Build/Workers/chunk-HGIGANIQ.js +163 -0
  53. package/Build/Workers/chunk-HI6X33GO.js +58 -0
  54. package/Build/Workers/chunk-HU5P7PMU.js +1317 -0
  55. package/Build/Workers/chunk-I76SRIKN.js +138 -0
  56. package/Build/Workers/chunk-IDVURFRN.js +241 -0
  57. package/Build/Workers/chunk-IELTSYPZ.js +241 -0
  58. package/Build/Workers/chunk-J3FBVUY4.js +37 -0
  59. package/Build/Workers/chunk-J4MIJCN5.js +171 -0
  60. package/Build/Workers/chunk-JFO3ELF3.js +642 -0
  61. package/Build/Workers/chunk-JH27ZGLN.js +352 -0
  62. package/Build/Workers/chunk-JURLMTV2.js +398 -0
  63. package/Build/Workers/chunk-K4IMD7KH.js +162 -0
  64. package/Build/Workers/chunk-KBAGFNQ4.js +139 -0
  65. package/Build/Workers/chunk-KFMCOG26.js +692 -0
  66. package/Build/Workers/chunk-KH2OWUUA.js +163 -0
  67. package/Build/Workers/chunk-KHKSE4WQ.js +778 -0
  68. package/Build/Workers/chunk-KKYQRQ57.js +368 -0
  69. package/Build/Workers/chunk-KQIZ7AFF.js +8366 -0
  70. package/Build/Workers/chunk-KUAWPGSB.js +511 -0
  71. package/Build/Workers/chunk-KVDSJXRK.js +114 -0
  72. package/Build/Workers/chunk-KVE5EAPO.js +398 -0
  73. package/Build/Workers/chunk-KXB3AARU.js +162 -0
  74. package/Build/Workers/chunk-LN4NMLYY.js +55 -0
  75. package/Build/Workers/chunk-LPM2FVDN.js +642 -0
  76. package/Build/Workers/chunk-MLFVICFZ.js +102 -0
  77. package/Build/Workers/chunk-MQ62ZE2U.js +124 -0
  78. package/Build/Workers/chunk-NOH3R3YY.js +198 -0
  79. package/Build/Workers/chunk-OAOREOSO.js +940 -0
  80. package/Build/Workers/chunk-OFJRMGNX.js +788 -0
  81. package/Build/Workers/chunk-OOB2KZC6.js +476 -0
  82. package/Build/Workers/chunk-OVPPHDU7.js +97 -0
  83. package/Build/Workers/chunk-P7M4VYFT.js +788 -0
  84. package/Build/Workers/chunk-PHB5MRHM.js +439 -0
  85. package/Build/Workers/chunk-PLLZB3R4.js +198 -0
  86. package/Build/Workers/chunk-POY6ZE32.js +2058 -0
  87. package/Build/Workers/chunk-PV5B2YNB.js +2719 -0
  88. package/Build/Workers/chunk-Q2DXNFYW.js +414 -0
  89. package/Build/Workers/chunk-QWV2DM66.js +1443 -0
  90. package/Build/Workers/chunk-R73BHGGI.js +305 -0
  91. package/Build/Workers/chunk-S3AE3MZZ.js +511 -0
  92. package/Build/Workers/chunk-SBFTVHRW.js +57 -0
  93. package/Build/Workers/chunk-SOR7PD4V.js +114 -0
  94. package/Build/Workers/chunk-TDI7UQBO.js +57 -0
  95. package/Build/Workers/chunk-TO7TWUET.js +476 -0
  96. package/Build/Workers/chunk-TSAJNE4K.js +101 -0
  97. package/Build/Workers/chunk-TWF4XRZ6.js +73 -0
  98. package/Build/Workers/chunk-U364CIW4.js +682 -0
  99. package/Build/Workers/chunk-UOD5YNH3.js +940 -0
  100. package/Build/Workers/chunk-UTWLMOPM.js +387 -0
  101. package/Build/Workers/chunk-UUJXSLQ2.js +2719 -0
  102. package/Build/Workers/chunk-UYT2PBMV.js +58 -0
  103. package/Build/Workers/chunk-VIYQ56Z7.js +837 -0
  104. package/Build/Workers/chunk-VR2L2Y4Z.js +1443 -0
  105. package/Build/Workers/chunk-WAS3IHIQ.js +288 -0
  106. package/Build/Workers/chunk-WLREXLZ7.js +414 -0
  107. package/Build/Workers/chunk-WMGESUDW.js +497 -0
  108. package/Build/Workers/chunk-WO5ZNC7S.js +1045 -0
  109. package/Build/Workers/chunk-X65Y2JSA.js +55 -0
  110. package/Build/Workers/chunk-XJKMLTSH.js +692 -0
  111. package/Build/Workers/chunk-XOVHLPKW.js +299 -0
  112. package/Build/Workers/chunk-YBVMSCW4.js +352 -0
  113. package/Build/Workers/chunk-YPGJSFOO.js +1460 -0
  114. package/Build/Workers/chunk-Z356SW7E.js +256 -0
  115. package/Build/Workers/chunk-ZV42SJKS.js +44 -0
  116. package/Build/Workers/combineGeometry.js +66 -0
  117. package/Build/Workers/createBoxGeometry.js +58 -0
  118. package/Build/Workers/createBoxOutlineGeometry.js +231 -0
  119. package/Build/Workers/createCircleGeometry.js +201 -0
  120. package/Build/Workers/createCircleOutlineGeometry.js +147 -0
  121. package/Build/Workers/createCoplanarPolygonGeometry.js +505 -0
  122. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +225 -0
  123. package/Build/Workers/createCorridorGeometry.js +1258 -0
  124. package/Build/Workers/createCorridorOutlineGeometry.js +563 -0
  125. package/Build/Workers/createCylinderGeometry.js +60 -0
  126. package/Build/Workers/createCylinderOutlineGeometry.js +231 -0
  127. package/Build/Workers/createEllipseGeometry.js +72 -0
  128. package/Build/Workers/createEllipseOutlineGeometry.js +65 -0
  129. package/Build/Workers/createEllipsoidGeometry.js +59 -0
  130. package/Build/Workers/createEllipsoidOutlineGeometry.js +61 -0
  131. package/Build/Workers/createFrustumGeometry.js +58 -0
  132. package/Build/Workers/createFrustumOutlineGeometry.js +234 -0
  133. package/Build/Workers/createGeometry.js +173 -0
  134. package/Build/Workers/createGroundPolylineGeometry.js +1602 -0
  135. package/Build/Workers/createPlaneGeometry.js +223 -0
  136. package/Build/Workers/createPlaneOutlineGeometry.js +124 -0
  137. package/Build/Workers/createPolygonGeometry.js +1404 -0
  138. package/Build/Workers/createPolygonOutlineGeometry.js +532 -0
  139. package/Build/Workers/createPolylineGeometry.js +491 -0
  140. package/Build/Workers/createPolylineVolumeGeometry.js +374 -0
  141. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +272 -0
  142. package/Build/Workers/createRectangleGeometry.js +1264 -0
  143. package/Build/Workers/createRectangleOutlineGeometry.js +476 -0
  144. package/Build/Workers/createSimplePolylineGeometry.js +397 -0
  145. package/Build/Workers/createSphereGeometry.js +116 -0
  146. package/Build/Workers/createSphereOutlineGeometry.js +116 -0
  147. package/Build/Workers/createTaskProcessorWorker.js +32 -0
  148. package/Build/Workers/createVectorTileClampedPolylines.js +492 -0
  149. package/Build/Workers/createVectorTileGeometries.js +387 -0
  150. package/Build/Workers/createVectorTilePoints.js +114 -0
  151. package/Build/Workers/createVectorTilePolygons.js +386 -0
  152. package/Build/Workers/createVectorTilePolylines.js +262 -0
  153. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +91 -0
  154. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +565 -0
  155. package/Build/Workers/createVerticesFromHeightmap.js +2254 -0
  156. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +499 -0
  157. package/Build/Workers/createWallGeometry.js +487 -0
  158. package/Build/Workers/createWallOutlineGeometry.js +335 -0
  159. package/Build/Workers/decodeDraco.js +369 -0
  160. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +2680 -0
  161. package/Build/Workers/decodeI3S.js +1339 -0
  162. package/Build/Workers/gaussianSplatSorter.js +62 -0
  163. package/Build/Workers/gaussianSplatTextureGenerator.js +68 -0
  164. package/Build/Workers/incrementallyBuildTerrainPicker.js +121 -0
  165. package/Build/Workers/transcodeKTX2.js +3463 -0
  166. package/Build/Workers/transferTypedArrayTest.js +41 -0
  167. package/Build/Workers/upsampleQuantizedTerrainMesh.js +820 -0
  168. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +95 -0
  169. package/Source/Scene/GltfLoader.js +2 -2
  170. package/Source/Scene/Model/I3dmLoader.js +2 -2
  171. package/index.js +110 -110
  172. package/package.json +1 -1
@@ -0,0 +1,256 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 0.0.4
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
+ WebGLConstants_default
28
+ } from "./chunk-DEIMB3B5.js";
29
+ import {
30
+ DeveloperError_default
31
+ } from "./chunk-HGIGANIQ.js";
32
+ import {
33
+ defined_default
34
+ } from "./chunk-BN4WA7LX.js";
35
+
36
+ // packages/engine/Source/Core/ComponentDatatype.js
37
+ var ComponentDatatype = {
38
+ /**
39
+ * 8-bit signed byte corresponding to <code>gl.BYTE</code> and the type
40
+ * of an element in <code>Int8Array</code>.
41
+ *
42
+ * @type {number}
43
+ * @constant
44
+ */
45
+ BYTE: WebGLConstants_default.BYTE,
46
+ /**
47
+ * 8-bit unsigned byte corresponding to <code>UNSIGNED_BYTE</code> and the type
48
+ * of an element in <code>Uint8Array</code>.
49
+ *
50
+ * @type {number}
51
+ * @constant
52
+ */
53
+ UNSIGNED_BYTE: WebGLConstants_default.UNSIGNED_BYTE,
54
+ /**
55
+ * 16-bit signed short corresponding to <code>SHORT</code> and the type
56
+ * of an element in <code>Int16Array</code>.
57
+ *
58
+ * @type {number}
59
+ * @constant
60
+ */
61
+ SHORT: WebGLConstants_default.SHORT,
62
+ /**
63
+ * 16-bit unsigned short corresponding to <code>UNSIGNED_SHORT</code> and the type
64
+ * of an element in <code>Uint16Array</code>.
65
+ *
66
+ * @type {number}
67
+ * @constant
68
+ */
69
+ UNSIGNED_SHORT: WebGLConstants_default.UNSIGNED_SHORT,
70
+ /**
71
+ * 32-bit signed int corresponding to <code>INT</code> and the type
72
+ * of an element in <code>Int32Array</code>.
73
+ *
74
+ * @memberOf ComponentDatatype
75
+ *
76
+ * @type {number}
77
+ * @constant
78
+ */
79
+ INT: WebGLConstants_default.INT,
80
+ /**
81
+ * 32-bit unsigned int corresponding to <code>UNSIGNED_INT</code> and the type
82
+ * of an element in <code>Uint32Array</code>.
83
+ *
84
+ * @memberOf ComponentDatatype
85
+ *
86
+ * @type {number}
87
+ * @constant
88
+ */
89
+ UNSIGNED_INT: WebGLConstants_default.UNSIGNED_INT,
90
+ /**
91
+ * 32-bit floating-point corresponding to <code>FLOAT</code> and the type
92
+ * of an element in <code>Float32Array</code>.
93
+ *
94
+ * @type {number}
95
+ * @constant
96
+ */
97
+ FLOAT: WebGLConstants_default.FLOAT,
98
+ /**
99
+ * 64-bit floating-point corresponding to <code>gl.DOUBLE</code> (in Desktop OpenGL;
100
+ * this is not supported in WebGL, and is emulated in Cesium via {@link GeometryPipeline.encodeAttribute})
101
+ * and the type of an element in <code>Float64Array</code>.
102
+ *
103
+ * @memberOf ComponentDatatype
104
+ *
105
+ * @type {number}
106
+ * @constant
107
+ * @default 0x140A
108
+ */
109
+ DOUBLE: WebGLConstants_default.DOUBLE
110
+ };
111
+ ComponentDatatype.getSizeInBytes = function(componentDatatype) {
112
+ if (!defined_default(componentDatatype)) {
113
+ throw new DeveloperError_default("value is required.");
114
+ }
115
+ switch (componentDatatype) {
116
+ case ComponentDatatype.BYTE:
117
+ return Int8Array.BYTES_PER_ELEMENT;
118
+ case ComponentDatatype.UNSIGNED_BYTE:
119
+ return Uint8Array.BYTES_PER_ELEMENT;
120
+ case ComponentDatatype.SHORT:
121
+ return Int16Array.BYTES_PER_ELEMENT;
122
+ case ComponentDatatype.UNSIGNED_SHORT:
123
+ return Uint16Array.BYTES_PER_ELEMENT;
124
+ case ComponentDatatype.INT:
125
+ return Int32Array.BYTES_PER_ELEMENT;
126
+ case ComponentDatatype.UNSIGNED_INT:
127
+ return Uint32Array.BYTES_PER_ELEMENT;
128
+ case ComponentDatatype.FLOAT:
129
+ return Float32Array.BYTES_PER_ELEMENT;
130
+ case ComponentDatatype.DOUBLE:
131
+ return Float64Array.BYTES_PER_ELEMENT;
132
+ //>>includeStart('debug', pragmas.debug);
133
+ default:
134
+ throw new DeveloperError_default("componentDatatype is not a valid value.");
135
+ }
136
+ };
137
+ ComponentDatatype.fromTypedArray = function(array) {
138
+ if (array instanceof Int8Array) {
139
+ return ComponentDatatype.BYTE;
140
+ }
141
+ if (array instanceof Uint8Array) {
142
+ return ComponentDatatype.UNSIGNED_BYTE;
143
+ }
144
+ if (array instanceof Int16Array) {
145
+ return ComponentDatatype.SHORT;
146
+ }
147
+ if (array instanceof Uint16Array) {
148
+ return ComponentDatatype.UNSIGNED_SHORT;
149
+ }
150
+ if (array instanceof Int32Array) {
151
+ return ComponentDatatype.INT;
152
+ }
153
+ if (array instanceof Uint32Array) {
154
+ return ComponentDatatype.UNSIGNED_INT;
155
+ }
156
+ if (array instanceof Float32Array) {
157
+ return ComponentDatatype.FLOAT;
158
+ }
159
+ if (array instanceof Float64Array) {
160
+ return ComponentDatatype.DOUBLE;
161
+ }
162
+ throw new DeveloperError_default(
163
+ "array must be an Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, or Float64Array."
164
+ );
165
+ };
166
+ ComponentDatatype.validate = function(componentDatatype) {
167
+ return defined_default(componentDatatype) && (componentDatatype === ComponentDatatype.BYTE || componentDatatype === ComponentDatatype.UNSIGNED_BYTE || componentDatatype === ComponentDatatype.SHORT || componentDatatype === ComponentDatatype.UNSIGNED_SHORT || componentDatatype === ComponentDatatype.INT || componentDatatype === ComponentDatatype.UNSIGNED_INT || componentDatatype === ComponentDatatype.FLOAT || componentDatatype === ComponentDatatype.DOUBLE);
168
+ };
169
+ ComponentDatatype.createTypedArray = function(componentDatatype, valuesOrLength) {
170
+ if (!defined_default(componentDatatype)) {
171
+ throw new DeveloperError_default("componentDatatype is required.");
172
+ }
173
+ if (!defined_default(valuesOrLength)) {
174
+ throw new DeveloperError_default("valuesOrLength is required.");
175
+ }
176
+ switch (componentDatatype) {
177
+ case ComponentDatatype.BYTE:
178
+ return new Int8Array(valuesOrLength);
179
+ case ComponentDatatype.UNSIGNED_BYTE:
180
+ return new Uint8Array(valuesOrLength);
181
+ case ComponentDatatype.SHORT:
182
+ return new Int16Array(valuesOrLength);
183
+ case ComponentDatatype.UNSIGNED_SHORT:
184
+ return new Uint16Array(valuesOrLength);
185
+ case ComponentDatatype.INT:
186
+ return new Int32Array(valuesOrLength);
187
+ case ComponentDatatype.UNSIGNED_INT:
188
+ return new Uint32Array(valuesOrLength);
189
+ case ComponentDatatype.FLOAT:
190
+ return new Float32Array(valuesOrLength);
191
+ case ComponentDatatype.DOUBLE:
192
+ return new Float64Array(valuesOrLength);
193
+ //>>includeStart('debug', pragmas.debug);
194
+ default:
195
+ throw new DeveloperError_default("componentDatatype is not a valid value.");
196
+ }
197
+ };
198
+ ComponentDatatype.createArrayBufferView = function(componentDatatype, buffer, byteOffset, length) {
199
+ if (!defined_default(componentDatatype)) {
200
+ throw new DeveloperError_default("componentDatatype is required.");
201
+ }
202
+ if (!defined_default(buffer)) {
203
+ throw new DeveloperError_default("buffer is required.");
204
+ }
205
+ byteOffset = byteOffset ?? 0;
206
+ length = length ?? (buffer.byteLength - byteOffset) / ComponentDatatype.getSizeInBytes(componentDatatype);
207
+ switch (componentDatatype) {
208
+ case ComponentDatatype.BYTE:
209
+ return new Int8Array(buffer, byteOffset, length);
210
+ case ComponentDatatype.UNSIGNED_BYTE:
211
+ return new Uint8Array(buffer, byteOffset, length);
212
+ case ComponentDatatype.SHORT:
213
+ return new Int16Array(buffer, byteOffset, length);
214
+ case ComponentDatatype.UNSIGNED_SHORT:
215
+ return new Uint16Array(buffer, byteOffset, length);
216
+ case ComponentDatatype.INT:
217
+ return new Int32Array(buffer, byteOffset, length);
218
+ case ComponentDatatype.UNSIGNED_INT:
219
+ return new Uint32Array(buffer, byteOffset, length);
220
+ case ComponentDatatype.FLOAT:
221
+ return new Float32Array(buffer, byteOffset, length);
222
+ case ComponentDatatype.DOUBLE:
223
+ return new Float64Array(buffer, byteOffset, length);
224
+ //>>includeStart('debug', pragmas.debug);
225
+ default:
226
+ throw new DeveloperError_default("componentDatatype is not a valid value.");
227
+ }
228
+ };
229
+ ComponentDatatype.fromName = function(name) {
230
+ switch (name) {
231
+ case "BYTE":
232
+ return ComponentDatatype.BYTE;
233
+ case "UNSIGNED_BYTE":
234
+ return ComponentDatatype.UNSIGNED_BYTE;
235
+ case "SHORT":
236
+ return ComponentDatatype.SHORT;
237
+ case "UNSIGNED_SHORT":
238
+ return ComponentDatatype.UNSIGNED_SHORT;
239
+ case "INT":
240
+ return ComponentDatatype.INT;
241
+ case "UNSIGNED_INT":
242
+ return ComponentDatatype.UNSIGNED_INT;
243
+ case "FLOAT":
244
+ return ComponentDatatype.FLOAT;
245
+ case "DOUBLE":
246
+ return ComponentDatatype.DOUBLE;
247
+ //>>includeStart('debug', pragmas.debug);
248
+ default:
249
+ throw new DeveloperError_default("name is not a valid value.");
250
+ }
251
+ };
252
+ var ComponentDatatype_default = Object.freeze(ComponentDatatype);
253
+
254
+ export {
255
+ ComponentDatatype_default
256
+ };
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 0.0.4
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
+ Frozen_default
28
+ } from "./chunk-VR2L2Y4Z.js";
29
+
30
+ // packages/engine/Source/Core/GeometryAttributes.js
31
+ function GeometryAttributes(options) {
32
+ options = options ?? Frozen_default.EMPTY_OBJECT;
33
+ this.position = options.position;
34
+ this.normal = options.normal;
35
+ this.st = options.st;
36
+ this.bitangent = options.bitangent;
37
+ this.tangent = options.tangent;
38
+ this.color = options.color;
39
+ }
40
+ var GeometryAttributes_default = GeometryAttributes;
41
+
42
+ export {
43
+ GeometryAttributes_default
44
+ };
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 0.0.4
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
+ PrimitivePipeline_default
28
+ } from "./chunk-KHKSE4WQ.js";
29
+ import {
30
+ createTaskProcessorWorker_default
31
+ } from "./chunk-2APW7KRS.js";
32
+ import "./chunk-KVDSJXRK.js";
33
+ import "./chunk-UUJXSLQ2.js";
34
+ import "./chunk-PHB5MRHM.js";
35
+ import "./chunk-MLFVICFZ.js";
36
+ import "./chunk-HU5P7PMU.js";
37
+ import "./chunk-BXBGWQ3Z.js";
38
+ import "./chunk-KBAGFNQ4.js";
39
+ import "./chunk-ZV42SJKS.js";
40
+ import "./chunk-2BLQ3B4Q.js";
41
+ import "./chunk-UOD5YNH3.js";
42
+ import "./chunk-5BIQOSBV.js";
43
+ import "./chunk-HAWJ7FMN.js";
44
+ import "./chunk-EISI2CR2.js";
45
+ import "./chunk-Z356SW7E.js";
46
+ import "./chunk-DEIMB3B5.js";
47
+ import "./chunk-HI6X33GO.js";
48
+ import "./chunk-F5LAPCFC.js";
49
+ import "./chunk-VR2L2Y4Z.js";
50
+ import "./chunk-WMGESUDW.js";
51
+ import "./chunk-HGIGANIQ.js";
52
+ import "./chunk-BN4WA7LX.js";
53
+
54
+ // packages/engine/Source/Workers/combineGeometry.js
55
+ function combineGeometry(packedParameters, transferableObjects) {
56
+ const parameters = PrimitivePipeline_default.unpackCombineGeometryParameters(packedParameters);
57
+ const results = PrimitivePipeline_default.combineGeometry(parameters);
58
+ return PrimitivePipeline_default.packCombineGeometryResults(
59
+ results,
60
+ transferableObjects
61
+ );
62
+ }
63
+ var combineGeometry_default = createTaskProcessorWorker_default(combineGeometry);
64
+ export {
65
+ combineGeometry_default as default
66
+ };
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 0.0.4
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
+ BoxGeometry_default
28
+ } from "./chunk-U364CIW4.js";
29
+ import "./chunk-J3FBVUY4.js";
30
+ import "./chunk-FJREGHFG.js";
31
+ import "./chunk-ZV42SJKS.js";
32
+ import "./chunk-2BLQ3B4Q.js";
33
+ import "./chunk-UOD5YNH3.js";
34
+ import "./chunk-5BIQOSBV.js";
35
+ import "./chunk-HAWJ7FMN.js";
36
+ import "./chunk-EISI2CR2.js";
37
+ import "./chunk-Z356SW7E.js";
38
+ import "./chunk-DEIMB3B5.js";
39
+ import "./chunk-HI6X33GO.js";
40
+ import "./chunk-F5LAPCFC.js";
41
+ import "./chunk-VR2L2Y4Z.js";
42
+ import "./chunk-WMGESUDW.js";
43
+ import "./chunk-HGIGANIQ.js";
44
+ import {
45
+ defined_default
46
+ } from "./chunk-BN4WA7LX.js";
47
+
48
+ // packages/engine/Source/Workers/createBoxGeometry.js
49
+ function createBoxGeometry(boxGeometry, offset) {
50
+ if (defined_default(offset)) {
51
+ boxGeometry = BoxGeometry_default.unpack(boxGeometry, offset);
52
+ }
53
+ return BoxGeometry_default.createGeometry(boxGeometry);
54
+ }
55
+ var createBoxGeometry_default = createBoxGeometry;
56
+ export {
57
+ createBoxGeometry_default as default
58
+ };
@@ -0,0 +1,231 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 0.0.4
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
+ GeometryOffsetAttribute_default
28
+ } from "./chunk-J3FBVUY4.js";
29
+ import {
30
+ GeometryAttributes_default
31
+ } from "./chunk-ZV42SJKS.js";
32
+ import {
33
+ GeometryAttribute_default,
34
+ Geometry_default,
35
+ PrimitiveType_default
36
+ } from "./chunk-2BLQ3B4Q.js";
37
+ import {
38
+ BoundingSphere_default
39
+ } from "./chunk-UOD5YNH3.js";
40
+ import "./chunk-5BIQOSBV.js";
41
+ import "./chunk-HAWJ7FMN.js";
42
+ import "./chunk-EISI2CR2.js";
43
+ import {
44
+ ComponentDatatype_default
45
+ } from "./chunk-Z356SW7E.js";
46
+ import "./chunk-DEIMB3B5.js";
47
+ import "./chunk-HI6X33GO.js";
48
+ import "./chunk-F5LAPCFC.js";
49
+ import {
50
+ Cartesian3_default,
51
+ Frozen_default
52
+ } from "./chunk-VR2L2Y4Z.js";
53
+ import "./chunk-WMGESUDW.js";
54
+ import {
55
+ Check_default,
56
+ DeveloperError_default
57
+ } from "./chunk-HGIGANIQ.js";
58
+ import {
59
+ defined_default
60
+ } from "./chunk-BN4WA7LX.js";
61
+
62
+ // packages/engine/Source/Core/BoxOutlineGeometry.js
63
+ var diffScratch = new Cartesian3_default();
64
+ function BoxOutlineGeometry(options) {
65
+ options = options ?? Frozen_default.EMPTY_OBJECT;
66
+ const min = options.minimum;
67
+ const max = options.maximum;
68
+ Check_default.typeOf.object("min", min);
69
+ Check_default.typeOf.object("max", max);
70
+ if (defined_default(options.offsetAttribute) && options.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
71
+ throw new DeveloperError_default(
72
+ "GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry."
73
+ );
74
+ }
75
+ this._min = Cartesian3_default.clone(min);
76
+ this._max = Cartesian3_default.clone(max);
77
+ this._offsetAttribute = options.offsetAttribute;
78
+ this._workerName = "createBoxOutlineGeometry";
79
+ }
80
+ BoxOutlineGeometry.fromDimensions = function(options) {
81
+ options = options ?? Frozen_default.EMPTY_OBJECT;
82
+ const dimensions = options.dimensions;
83
+ Check_default.typeOf.object("dimensions", dimensions);
84
+ Check_default.typeOf.number.greaterThanOrEquals("dimensions.x", dimensions.x, 0);
85
+ Check_default.typeOf.number.greaterThanOrEquals("dimensions.y", dimensions.y, 0);
86
+ Check_default.typeOf.number.greaterThanOrEquals("dimensions.z", dimensions.z, 0);
87
+ const corner = Cartesian3_default.multiplyByScalar(dimensions, 0.5, new Cartesian3_default());
88
+ return new BoxOutlineGeometry({
89
+ minimum: Cartesian3_default.negate(corner, new Cartesian3_default()),
90
+ maximum: corner,
91
+ offsetAttribute: options.offsetAttribute
92
+ });
93
+ };
94
+ BoxOutlineGeometry.fromAxisAlignedBoundingBox = function(boundingBox) {
95
+ Check_default.typeOf.object("boundindBox", boundingBox);
96
+ return new BoxOutlineGeometry({
97
+ minimum: boundingBox.minimum,
98
+ maximum: boundingBox.maximum
99
+ });
100
+ };
101
+ BoxOutlineGeometry.packedLength = 2 * Cartesian3_default.packedLength + 1;
102
+ BoxOutlineGeometry.pack = function(value, array, startingIndex) {
103
+ Check_default.typeOf.object("value", value);
104
+ Check_default.defined("array", array);
105
+ startingIndex = startingIndex ?? 0;
106
+ Cartesian3_default.pack(value._min, array, startingIndex);
107
+ Cartesian3_default.pack(value._max, array, startingIndex + Cartesian3_default.packedLength);
108
+ array[startingIndex + Cartesian3_default.packedLength * 2] = value._offsetAttribute ?? -1;
109
+ return array;
110
+ };
111
+ var scratchMin = new Cartesian3_default();
112
+ var scratchMax = new Cartesian3_default();
113
+ var scratchOptions = {
114
+ minimum: scratchMin,
115
+ maximum: scratchMax,
116
+ offsetAttribute: void 0
117
+ };
118
+ BoxOutlineGeometry.unpack = function(array, startingIndex, result) {
119
+ Check_default.defined("array", array);
120
+ startingIndex = startingIndex ?? 0;
121
+ const min = Cartesian3_default.unpack(array, startingIndex, scratchMin);
122
+ const max = Cartesian3_default.unpack(
123
+ array,
124
+ startingIndex + Cartesian3_default.packedLength,
125
+ scratchMax
126
+ );
127
+ const offsetAttribute = array[startingIndex + Cartesian3_default.packedLength * 2];
128
+ if (!defined_default(result)) {
129
+ scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
130
+ return new BoxOutlineGeometry(scratchOptions);
131
+ }
132
+ result._min = Cartesian3_default.clone(min, result._min);
133
+ result._max = Cartesian3_default.clone(max, result._max);
134
+ result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
135
+ return result;
136
+ };
137
+ BoxOutlineGeometry.createGeometry = function(boxGeometry) {
138
+ const min = boxGeometry._min;
139
+ const max = boxGeometry._max;
140
+ if (Cartesian3_default.equals(min, max)) {
141
+ return;
142
+ }
143
+ const attributes = new GeometryAttributes_default();
144
+ const indices = new Uint16Array(12 * 2);
145
+ const positions = new Float64Array(8 * 3);
146
+ positions[0] = min.x;
147
+ positions[1] = min.y;
148
+ positions[2] = min.z;
149
+ positions[3] = max.x;
150
+ positions[4] = min.y;
151
+ positions[5] = min.z;
152
+ positions[6] = max.x;
153
+ positions[7] = max.y;
154
+ positions[8] = min.z;
155
+ positions[9] = min.x;
156
+ positions[10] = max.y;
157
+ positions[11] = min.z;
158
+ positions[12] = min.x;
159
+ positions[13] = min.y;
160
+ positions[14] = max.z;
161
+ positions[15] = max.x;
162
+ positions[16] = min.y;
163
+ positions[17] = max.z;
164
+ positions[18] = max.x;
165
+ positions[19] = max.y;
166
+ positions[20] = max.z;
167
+ positions[21] = min.x;
168
+ positions[22] = max.y;
169
+ positions[23] = max.z;
170
+ attributes.position = new GeometryAttribute_default({
171
+ componentDatatype: ComponentDatatype_default.DOUBLE,
172
+ componentsPerAttribute: 3,
173
+ values: positions
174
+ });
175
+ indices[0] = 4;
176
+ indices[1] = 5;
177
+ indices[2] = 5;
178
+ indices[3] = 6;
179
+ indices[4] = 6;
180
+ indices[5] = 7;
181
+ indices[6] = 7;
182
+ indices[7] = 4;
183
+ indices[8] = 0;
184
+ indices[9] = 1;
185
+ indices[10] = 1;
186
+ indices[11] = 2;
187
+ indices[12] = 2;
188
+ indices[13] = 3;
189
+ indices[14] = 3;
190
+ indices[15] = 0;
191
+ indices[16] = 0;
192
+ indices[17] = 4;
193
+ indices[18] = 1;
194
+ indices[19] = 5;
195
+ indices[20] = 2;
196
+ indices[21] = 6;
197
+ indices[22] = 3;
198
+ indices[23] = 7;
199
+ const diff = Cartesian3_default.subtract(max, min, diffScratch);
200
+ const radius = Cartesian3_default.magnitude(diff) * 0.5;
201
+ if (defined_default(boxGeometry._offsetAttribute)) {
202
+ const length = positions.length;
203
+ const offsetValue = boxGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
204
+ const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
205
+ attributes.applyOffset = new GeometryAttribute_default({
206
+ componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
207
+ componentsPerAttribute: 1,
208
+ values: applyOffset
209
+ });
210
+ }
211
+ return new Geometry_default({
212
+ attributes,
213
+ indices,
214
+ primitiveType: PrimitiveType_default.LINES,
215
+ boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, radius),
216
+ offsetAttribute: boxGeometry._offsetAttribute
217
+ });
218
+ };
219
+ var BoxOutlineGeometry_default = BoxOutlineGeometry;
220
+
221
+ // packages/engine/Source/Workers/createBoxOutlineGeometry.js
222
+ function createBoxOutlineGeometry(boxGeometry, offset) {
223
+ if (defined_default(offset)) {
224
+ boxGeometry = BoxOutlineGeometry_default.unpack(boxGeometry, offset);
225
+ }
226
+ return BoxOutlineGeometry_default.createGeometry(boxGeometry);
227
+ }
228
+ var createBoxOutlineGeometry_default = createBoxOutlineGeometry;
229
+ export {
230
+ createBoxOutlineGeometry_default as default
231
+ };