@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,223 +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
- VertexFormat_default
28
- } from "./chunk-I76SRIKN.js";
29
- import {
30
- GeometryAttributes_default
31
- } from "./chunk-BOV6T7FO.js";
32
- import {
33
- GeometryAttribute_default,
34
- Geometry_default,
35
- PrimitiveType_default
36
- } from "./chunk-XOVHLPKW.js";
37
- import {
38
- BoundingSphere_default
39
- } from "./chunk-OAOREOSO.js";
40
- import "./chunk-EKMWNF4U.js";
41
- import "./chunk-KQIZ7AFF.js";
42
- import "./chunk-POY6ZE32.js";
43
- import {
44
- ComponentDatatype_default
45
- } from "./chunk-AL22JVIA.js";
46
- import "./chunk-5VZISKJF.js";
47
- import "./chunk-UYT2PBMV.js";
48
- import "./chunk-YPGJSFOO.js";
49
- import {
50
- Cartesian3_default,
51
- Frozen_default
52
- } from "./chunk-QWV2DM66.js";
53
- import "./chunk-6XJO625E.js";
54
- import {
55
- Check_default
56
- } from "./chunk-KH2OWUUA.js";
57
- import {
58
- defined_default
59
- } from "./chunk-AVSQILVI.js";
60
-
61
- // packages/engine/Source/Core/PlaneGeometry.js
62
- function PlaneGeometry(options) {
63
- options = options ?? Frozen_default.EMPTY_OBJECT;
64
- const vertexFormat = options.vertexFormat ?? VertexFormat_default.DEFAULT;
65
- this._vertexFormat = vertexFormat;
66
- this._workerName = "createPlaneGeometry";
67
- }
68
- PlaneGeometry.packedLength = VertexFormat_default.packedLength;
69
- PlaneGeometry.pack = function(value, array, startingIndex) {
70
- Check_default.typeOf.object("value", value);
71
- Check_default.defined("array", array);
72
- startingIndex = startingIndex ?? 0;
73
- VertexFormat_default.pack(value._vertexFormat, array, startingIndex);
74
- return array;
75
- };
76
- var scratchVertexFormat = new VertexFormat_default();
77
- var scratchOptions = {
78
- vertexFormat: scratchVertexFormat
79
- };
80
- PlaneGeometry.unpack = function(array, startingIndex, result) {
81
- Check_default.defined("array", array);
82
- startingIndex = startingIndex ?? 0;
83
- const vertexFormat = VertexFormat_default.unpack(
84
- array,
85
- startingIndex,
86
- scratchVertexFormat
87
- );
88
- if (!defined_default(result)) {
89
- return new PlaneGeometry(scratchOptions);
90
- }
91
- result._vertexFormat = VertexFormat_default.clone(vertexFormat, result._vertexFormat);
92
- return result;
93
- };
94
- var min = new Cartesian3_default(-0.5, -0.5, 0);
95
- var max = new Cartesian3_default(0.5, 0.5, 0);
96
- PlaneGeometry.createGeometry = function(planeGeometry) {
97
- const vertexFormat = planeGeometry._vertexFormat;
98
- const attributes = new GeometryAttributes_default();
99
- let indices;
100
- let positions;
101
- if (vertexFormat.position) {
102
- positions = new Float64Array(4 * 3);
103
- positions[0] = min.x;
104
- positions[1] = min.y;
105
- positions[2] = 0;
106
- positions[3] = max.x;
107
- positions[4] = min.y;
108
- positions[5] = 0;
109
- positions[6] = max.x;
110
- positions[7] = max.y;
111
- positions[8] = 0;
112
- positions[9] = min.x;
113
- positions[10] = max.y;
114
- positions[11] = 0;
115
- attributes.position = new GeometryAttribute_default({
116
- componentDatatype: ComponentDatatype_default.DOUBLE,
117
- componentsPerAttribute: 3,
118
- values: positions
119
- });
120
- if (vertexFormat.normal) {
121
- const normals = new Float32Array(4 * 3);
122
- normals[0] = 0;
123
- normals[1] = 0;
124
- normals[2] = 1;
125
- normals[3] = 0;
126
- normals[4] = 0;
127
- normals[5] = 1;
128
- normals[6] = 0;
129
- normals[7] = 0;
130
- normals[8] = 1;
131
- normals[9] = 0;
132
- normals[10] = 0;
133
- normals[11] = 1;
134
- attributes.normal = new GeometryAttribute_default({
135
- componentDatatype: ComponentDatatype_default.FLOAT,
136
- componentsPerAttribute: 3,
137
- values: normals
138
- });
139
- }
140
- if (vertexFormat.st) {
141
- const texCoords = new Float32Array(4 * 2);
142
- texCoords[0] = 0;
143
- texCoords[1] = 0;
144
- texCoords[2] = 1;
145
- texCoords[3] = 0;
146
- texCoords[4] = 1;
147
- texCoords[5] = 1;
148
- texCoords[6] = 0;
149
- texCoords[7] = 1;
150
- attributes.st = new GeometryAttribute_default({
151
- componentDatatype: ComponentDatatype_default.FLOAT,
152
- componentsPerAttribute: 2,
153
- values: texCoords
154
- });
155
- }
156
- if (vertexFormat.tangent) {
157
- const tangents = new Float32Array(4 * 3);
158
- tangents[0] = 1;
159
- tangents[1] = 0;
160
- tangents[2] = 0;
161
- tangents[3] = 1;
162
- tangents[4] = 0;
163
- tangents[5] = 0;
164
- tangents[6] = 1;
165
- tangents[7] = 0;
166
- tangents[8] = 0;
167
- tangents[9] = 1;
168
- tangents[10] = 0;
169
- tangents[11] = 0;
170
- attributes.tangent = new GeometryAttribute_default({
171
- componentDatatype: ComponentDatatype_default.FLOAT,
172
- componentsPerAttribute: 3,
173
- values: tangents
174
- });
175
- }
176
- if (vertexFormat.bitangent) {
177
- const bitangents = new Float32Array(4 * 3);
178
- bitangents[0] = 0;
179
- bitangents[1] = 1;
180
- bitangents[2] = 0;
181
- bitangents[3] = 0;
182
- bitangents[4] = 1;
183
- bitangents[5] = 0;
184
- bitangents[6] = 0;
185
- bitangents[7] = 1;
186
- bitangents[8] = 0;
187
- bitangents[9] = 0;
188
- bitangents[10] = 1;
189
- bitangents[11] = 0;
190
- attributes.bitangent = new GeometryAttribute_default({
191
- componentDatatype: ComponentDatatype_default.FLOAT,
192
- componentsPerAttribute: 3,
193
- values: bitangents
194
- });
195
- }
196
- indices = new Uint16Array(2 * 3);
197
- indices[0] = 0;
198
- indices[1] = 1;
199
- indices[2] = 2;
200
- indices[3] = 0;
201
- indices[4] = 2;
202
- indices[5] = 3;
203
- }
204
- return new Geometry_default({
205
- attributes,
206
- indices,
207
- primitiveType: PrimitiveType_default.TRIANGLES,
208
- boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, Math.sqrt(2))
209
- });
210
- };
211
- var PlaneGeometry_default = PlaneGeometry;
212
-
213
- // packages/engine/Source/Workers/createPlaneGeometry.js
214
- function createPlaneGeometry(planeGeometry, offset) {
215
- if (defined_default(offset)) {
216
- planeGeometry = PlaneGeometry_default.unpack(planeGeometry, offset);
217
- }
218
- return PlaneGeometry_default.createGeometry(planeGeometry);
219
- }
220
- var createPlaneGeometry_default = createPlaneGeometry;
221
- export {
222
- createPlaneGeometry_default as default
223
- };
@@ -1,124 +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
- GeometryAttributes_default
28
- } from "./chunk-BOV6T7FO.js";
29
- import {
30
- GeometryAttribute_default,
31
- Geometry_default,
32
- PrimitiveType_default
33
- } from "./chunk-XOVHLPKW.js";
34
- import {
35
- BoundingSphere_default
36
- } from "./chunk-OAOREOSO.js";
37
- import "./chunk-EKMWNF4U.js";
38
- import "./chunk-KQIZ7AFF.js";
39
- import "./chunk-POY6ZE32.js";
40
- import {
41
- ComponentDatatype_default
42
- } from "./chunk-AL22JVIA.js";
43
- import "./chunk-5VZISKJF.js";
44
- import "./chunk-UYT2PBMV.js";
45
- import "./chunk-YPGJSFOO.js";
46
- import {
47
- Cartesian3_default
48
- } from "./chunk-QWV2DM66.js";
49
- import "./chunk-6XJO625E.js";
50
- import {
51
- Check_default
52
- } from "./chunk-KH2OWUUA.js";
53
- import {
54
- defined_default
55
- } from "./chunk-AVSQILVI.js";
56
-
57
- // packages/engine/Source/Core/PlaneOutlineGeometry.js
58
- function PlaneOutlineGeometry() {
59
- this._workerName = "createPlaneOutlineGeometry";
60
- }
61
- PlaneOutlineGeometry.packedLength = 0;
62
- PlaneOutlineGeometry.pack = function(value, array) {
63
- Check_default.defined("value", value);
64
- Check_default.defined("array", array);
65
- return array;
66
- };
67
- PlaneOutlineGeometry.unpack = function(array, startingIndex, result) {
68
- Check_default.defined("array", array);
69
- if (!defined_default(result)) {
70
- return new PlaneOutlineGeometry();
71
- }
72
- return result;
73
- };
74
- var min = new Cartesian3_default(-0.5, -0.5, 0);
75
- var max = new Cartesian3_default(0.5, 0.5, 0);
76
- PlaneOutlineGeometry.createGeometry = function() {
77
- const attributes = new GeometryAttributes_default();
78
- const indices = new Uint16Array(4 * 2);
79
- const positions = new Float64Array(4 * 3);
80
- positions[0] = min.x;
81
- positions[1] = min.y;
82
- positions[2] = min.z;
83
- positions[3] = max.x;
84
- positions[4] = min.y;
85
- positions[5] = min.z;
86
- positions[6] = max.x;
87
- positions[7] = max.y;
88
- positions[8] = min.z;
89
- positions[9] = min.x;
90
- positions[10] = max.y;
91
- positions[11] = min.z;
92
- attributes.position = new GeometryAttribute_default({
93
- componentDatatype: ComponentDatatype_default.DOUBLE,
94
- componentsPerAttribute: 3,
95
- values: positions
96
- });
97
- indices[0] = 0;
98
- indices[1] = 1;
99
- indices[2] = 1;
100
- indices[3] = 2;
101
- indices[4] = 2;
102
- indices[5] = 3;
103
- indices[6] = 3;
104
- indices[7] = 0;
105
- return new Geometry_default({
106
- attributes,
107
- indices,
108
- primitiveType: PrimitiveType_default.LINES,
109
- boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, Math.sqrt(2))
110
- });
111
- };
112
- var PlaneOutlineGeometry_default = PlaneOutlineGeometry;
113
-
114
- // packages/engine/Source/Workers/createPlaneOutlineGeometry.js
115
- function createPlaneOutlineGeometry(planeGeometry, offset) {
116
- if (defined_default(offset)) {
117
- planeGeometry = PlaneOutlineGeometry_default.unpack(planeGeometry, offset);
118
- }
119
- return PlaneOutlineGeometry_default.createGeometry(planeGeometry);
120
- }
121
- var createPlaneOutlineGeometry_default = createPlaneOutlineGeometry;
122
- export {
123
- createPlaneOutlineGeometry_default as default
124
- };