deeptwins-cesium-engine 0.0.39 → 0.0.41
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/Build/Workers/chunk-22YARAUJ.js +629 -0
- package/Build/Workers/chunk-27NCQCM4.js +163 -0
- package/Build/Workers/chunk-2HVM4MOI.js +220 -0
- package/Build/Workers/chunk-2PWEYBYR.js +75 -0
- package/Build/Workers/chunk-2UUDETVF.js +101 -0
- package/Build/Workers/chunk-2ZI2BRKI.js +37 -0
- package/Build/Workers/chunk-32DGBF6Y.js +959 -0
- package/Build/Workers/chunk-3CTY2CGO.js +220 -0
- package/Build/Workers/chunk-3Q6HPHTH.js +684 -0
- package/Build/Workers/chunk-4LE3SGQH.js +634 -0
- package/Build/Workers/chunk-4UQOXHJT.js +421 -0
- package/Build/Workers/chunk-5IBSBFAA.js +287 -0
- package/Build/Workers/chunk-5ZELPLWF.js +58 -0
- package/Build/Workers/chunk-666ITZYK.js +1073 -0
- package/Build/Workers/chunk-6IFCG35V.js +390 -0
- package/Build/Workers/chunk-6LFOGNRP.js +1800 -0
- package/Build/Workers/chunk-6QHSHP53.js +1258 -0
- package/Build/Workers/chunk-6XIAYRGW.js +1055 -0
- package/Build/Workers/chunk-73EDFMPB.js +1073 -0
- package/Build/Workers/chunk-76TOSCCT.js +629 -0
- package/Build/Workers/chunk-7ODSCNSY.js +2857 -0
- package/Build/Workers/chunk-ALIDMMNJ.js +10357 -0
- package/Build/Workers/chunk-AXTXYHVG.js +59 -0
- package/Build/Workers/chunk-B3DSUDQQ.js +101 -0
- package/Build/Workers/chunk-B7R4KLQV.js +959 -0
- package/Build/Workers/chunk-BR5MKJPV.js +963 -0
- package/Build/Workers/chunk-BSQAU7IM.js +138 -0
- package/Build/Workers/chunk-C2ACDJD5.js +58 -0
- package/Build/Workers/chunk-CET7MMFD.js +1055 -0
- package/Build/Workers/chunk-CZUIRW4F.js +44 -0
- package/Build/Workers/chunk-D6ESIYSS.js +75 -0
- package/Build/Workers/chunk-DGWWFN6L.js +102 -0
- package/Build/Workers/chunk-DPZEBUVY.js +122 -0
- package/Build/Workers/chunk-EKUYACAZ.js +163 -0
- package/Build/Workers/chunk-EOQHBUGL.js +239 -0
- package/Build/Workers/chunk-ETQJFLBY.js +435 -0
- package/Build/Workers/chunk-EZKONOBC.js +300 -0
- package/Build/Workers/chunk-GXRKKREQ.js +2717 -0
- package/Build/Workers/chunk-HDJDQBU6.js +758 -0
- package/Build/Workers/chunk-HOO3H5M5.js +171 -0
- package/Build/Workers/chunk-IOE6TIOI.js +39 -0
- package/Build/Workers/chunk-JRFRSSGD.js +1800 -0
- package/Build/Workers/chunk-JUI6MY3E.js +435 -0
- package/Build/Workers/chunk-JV7ZLA3D.js +398 -0
- package/Build/Workers/chunk-KM5VHFRK.js +100 -0
- package/Build/Workers/chunk-KMDXAR34.js +1481 -0
- package/Build/Workers/chunk-KZDZFG2L.js +157 -0
- package/Build/Workers/chunk-L5A2N2AG.js +262 -0
- package/Build/Workers/chunk-LDXSEGOX.js +2857 -0
- package/Build/Workers/chunk-LSUSXL5L.js +353 -0
- package/Build/Workers/chunk-LYJFG66W.js +196 -0
- package/Build/Workers/chunk-ME5FR5CS.js +511 -0
- package/Build/Workers/chunk-MNCDXIX2.js +691 -0
- package/Build/Workers/chunk-N2UJHZ4W.js +368 -0
- package/Build/Workers/chunk-NZU4VBYI.js +834 -0
- package/Build/Workers/chunk-O2ZGG4HX.js +59 -0
- package/Build/Workers/chunk-O7JXDDHF.js +758 -0
- package/Build/Workers/chunk-OHM3HXGW.js +781 -0
- package/Build/Workers/chunk-OUFXKPAP.js +115 -0
- package/Build/Workers/chunk-OY2Z6SFD.js +100 -0
- package/Build/Workers/chunk-P3YNN4UB.js +10357 -0
- package/Build/Workers/chunk-PA4JZFFM.js +353 -0
- package/Build/Workers/chunk-PBS2UPII.js +122 -0
- package/Build/Workers/chunk-QFSPETA6.js +834 -0
- package/Build/Workers/chunk-QSO4DE6J.js +171 -0
- package/Build/Workers/chunk-QSTX55K5.js +37 -0
- package/Build/Workers/chunk-QUJ6BNQF.js +39 -0
- package/Build/Workers/chunk-QXWEMH73.js +102 -0
- package/Build/Workers/chunk-ROPEB47Y.js +300 -0
- package/Build/Workers/chunk-S3RIIJID.js +781 -0
- package/Build/Workers/chunk-SPS2I45W.js +73 -0
- package/Build/Workers/chunk-SUSQ3MVC.js +684 -0
- package/Build/Workers/chunk-TA7O77R5.js +368 -0
- package/Build/Workers/chunk-TBJBVKDE.js +262 -0
- package/Build/Workers/chunk-TJAONFQM.js +44 -0
- package/Build/Workers/chunk-TJNJ6CLS.js +239 -0
- package/Build/Workers/chunk-TMW7OQZD.js +476 -0
- package/Build/Workers/chunk-U4SUBL6L.js +390 -0
- package/Build/Workers/chunk-U6RITS73.js +456 -0
- package/Build/Workers/chunk-UHPBZJQF.js +2717 -0
- package/Build/Workers/chunk-UHS2YM44.js +115 -0
- package/Build/Workers/chunk-UHYBTCZW.js +305 -0
- package/Build/Workers/chunk-UN3RMNI2.js +500 -0
- package/Build/Workers/chunk-UYS2HZVM.js +421 -0
- package/Build/Workers/chunk-VGP546UW.js +1481 -0
- package/Build/Workers/chunk-VQY5ILOS.js +500 -0
- package/Build/Workers/chunk-VSEDVQN7.js +305 -0
- package/Build/Workers/chunk-VVDHEEL6.js +55 -0
- package/Build/Workers/chunk-VZSNLUE3.js +287 -0
- package/Build/Workers/chunk-W4BJBHPZ.js +456 -0
- package/Build/Workers/chunk-W7KOAHR2.js +691 -0
- package/Build/Workers/chunk-WCYXXO6P.js +139 -0
- package/Build/Workers/chunk-WGHS4HMU.js +55 -0
- package/Build/Workers/chunk-XV4SYFDP.js +138 -0
- package/Build/Workers/chunk-XX7RETEX.js +1258 -0
- package/Build/Workers/chunk-XYFT3BAX.js +196 -0
- package/Build/Workers/chunk-XYMJZUFF.js +476 -0
- package/Build/Workers/chunk-YCU6WHSN.js +963 -0
- package/Build/Workers/chunk-YTCJWLQC.js +73 -0
- package/Build/Workers/chunk-YWEX5QFW.js +398 -0
- package/Build/Workers/chunk-Z2WOKKJM.js +511 -0
- package/Build/Workers/chunk-ZEFV3C42.js +634 -0
- package/Build/Workers/chunk-ZYUOPFWQ.js +139 -0
- package/Build/Workers/chunk-ZYYPIDBI.js +157 -0
- package/Build/Workers/combineGeometry.js +22 -22
- package/Build/Workers/createBoxGeometry.js +16 -16
- package/Build/Workers/createBoxOutlineGeometry.js +14 -14
- package/Build/Workers/createCircleGeometry.js +24 -24
- package/Build/Workers/createCircleOutlineGeometry.js +17 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createCorridorGeometry.js +27 -27
- package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
- package/Build/Workers/createCylinderGeometry.js +18 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipseGeometry.js +24 -24
- package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipsoidGeometry.js +17 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/Build/Workers/createFrustumGeometry.js +16 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
- package/Build/Workers/createGeometry.js +22 -22
- package/Build/Workers/createGroundPolylineGeometry.js +20 -20
- package/Build/Workers/createPlaneGeometry.js +14 -14
- package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
- package/Build/Workers/createPolygonGeometry.js +30 -30
- package/Build/Workers/createPolygonOutlineGeometry.js +28 -28
- package/Build/Workers/createPolylineGeometry.js +23 -23
- package/Build/Workers/createPolylineVolumeGeometry.js +29 -29
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
- package/Build/Workers/createRectangleGeometry.js +25 -25
- package/Build/Workers/createRectangleOutlineGeometry.js +18 -18
- package/Build/Workers/createSimplePolylineGeometry.js +21 -21
- package/Build/Workers/createSphereGeometry.js +17 -17
- package/Build/Workers/createSphereOutlineGeometry.js +16 -16
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
- package/Build/Workers/createVectorTileGeometries.js +22 -22
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +20 -20
- package/Build/Workers/createVectorTilePolylines.js +13 -13
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +20 -20
- package/Build/Workers/createVerticesFromHeightmap.js +20 -20
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +17 -17
- package/Build/Workers/createWallGeometry.js +22 -22
- package/Build/Workers/createWallOutlineGeometry.js +21 -21
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/transcodeKTX2.js +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Renderer/TextureAtlas.js +28 -1
- package/Source/Scene/Billboard.js +22 -0
- package/Source/Scene/BillboardTexture.js +95 -3
- package/index.js +53 -53
- package/package.json +1 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 0.0.39
|
|
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
|
+
Math_default
|
|
28
|
+
} from "./chunk-UN3RMNI2.js";
|
|
29
|
+
import {
|
|
30
|
+
WebGLConstants_default
|
|
31
|
+
} from "./chunk-22YARAUJ.js";
|
|
32
|
+
import {
|
|
33
|
+
DeveloperError_default
|
|
34
|
+
} from "./chunk-EKUYACAZ.js";
|
|
35
|
+
import {
|
|
36
|
+
defined_default
|
|
37
|
+
} from "./chunk-2PWEYBYR.js";
|
|
38
|
+
|
|
39
|
+
// packages/engine/Source/Core/IndexDatatype.js
|
|
40
|
+
var IndexDatatype = {
|
|
41
|
+
/**
|
|
42
|
+
* 8-bit unsigned byte corresponding to <code>UNSIGNED_BYTE</code> and the type
|
|
43
|
+
* of an element in <code>Uint8Array</code>.
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @constant
|
|
47
|
+
*/
|
|
48
|
+
UNSIGNED_BYTE: WebGLConstants_default.UNSIGNED_BYTE,
|
|
49
|
+
/**
|
|
50
|
+
* 16-bit unsigned short corresponding to <code>UNSIGNED_SHORT</code> and the type
|
|
51
|
+
* of an element in <code>Uint16Array</code>.
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @constant
|
|
55
|
+
*/
|
|
56
|
+
UNSIGNED_SHORT: WebGLConstants_default.UNSIGNED_SHORT,
|
|
57
|
+
/**
|
|
58
|
+
* 32-bit unsigned int corresponding to <code>UNSIGNED_INT</code> and the type
|
|
59
|
+
* of an element in <code>Uint32Array</code>.
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @constant
|
|
63
|
+
*/
|
|
64
|
+
UNSIGNED_INT: WebGLConstants_default.UNSIGNED_INT
|
|
65
|
+
};
|
|
66
|
+
IndexDatatype.getSizeInBytes = function(indexDatatype) {
|
|
67
|
+
switch (indexDatatype) {
|
|
68
|
+
case IndexDatatype.UNSIGNED_BYTE:
|
|
69
|
+
return Uint8Array.BYTES_PER_ELEMENT;
|
|
70
|
+
case IndexDatatype.UNSIGNED_SHORT:
|
|
71
|
+
return Uint16Array.BYTES_PER_ELEMENT;
|
|
72
|
+
case IndexDatatype.UNSIGNED_INT:
|
|
73
|
+
return Uint32Array.BYTES_PER_ELEMENT;
|
|
74
|
+
}
|
|
75
|
+
throw new DeveloperError_default(
|
|
76
|
+
"indexDatatype is required and must be a valid IndexDatatype constant."
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
IndexDatatype.fromSizeInBytes = function(sizeInBytes) {
|
|
80
|
+
switch (sizeInBytes) {
|
|
81
|
+
case 2:
|
|
82
|
+
return IndexDatatype.UNSIGNED_SHORT;
|
|
83
|
+
case 4:
|
|
84
|
+
return IndexDatatype.UNSIGNED_INT;
|
|
85
|
+
case 1:
|
|
86
|
+
return IndexDatatype.UNSIGNED_BYTE;
|
|
87
|
+
//>>includeStart('debug', pragmas.debug);
|
|
88
|
+
default:
|
|
89
|
+
throw new DeveloperError_default(
|
|
90
|
+
"Size in bytes cannot be mapped to an IndexDatatype"
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
IndexDatatype.validate = function(indexDatatype) {
|
|
95
|
+
return defined_default(indexDatatype) && (indexDatatype === IndexDatatype.UNSIGNED_BYTE || indexDatatype === IndexDatatype.UNSIGNED_SHORT || indexDatatype === IndexDatatype.UNSIGNED_INT);
|
|
96
|
+
};
|
|
97
|
+
IndexDatatype.createTypedArray = function(numberOfVertices, indicesLengthOrArray) {
|
|
98
|
+
if (!defined_default(numberOfVertices)) {
|
|
99
|
+
throw new DeveloperError_default("numberOfVertices is required.");
|
|
100
|
+
}
|
|
101
|
+
if (numberOfVertices >= Math_default.SIXTY_FOUR_KILOBYTES) {
|
|
102
|
+
return new Uint32Array(indicesLengthOrArray);
|
|
103
|
+
}
|
|
104
|
+
return new Uint16Array(indicesLengthOrArray);
|
|
105
|
+
};
|
|
106
|
+
IndexDatatype.createTypedArrayFromArrayBuffer = function(numberOfVertices, sourceArray, byteOffset, length) {
|
|
107
|
+
if (!defined_default(numberOfVertices)) {
|
|
108
|
+
throw new DeveloperError_default("numberOfVertices is required.");
|
|
109
|
+
}
|
|
110
|
+
if (!defined_default(sourceArray)) {
|
|
111
|
+
throw new DeveloperError_default("sourceArray is required.");
|
|
112
|
+
}
|
|
113
|
+
if (!defined_default(byteOffset)) {
|
|
114
|
+
throw new DeveloperError_default("byteOffset is required.");
|
|
115
|
+
}
|
|
116
|
+
if (numberOfVertices >= Math_default.SIXTY_FOUR_KILOBYTES) {
|
|
117
|
+
return new Uint32Array(sourceArray, byteOffset, length);
|
|
118
|
+
}
|
|
119
|
+
return new Uint16Array(sourceArray, byteOffset, length);
|
|
120
|
+
};
|
|
121
|
+
IndexDatatype.fromTypedArray = function(array) {
|
|
122
|
+
if (array instanceof Uint8Array) {
|
|
123
|
+
return IndexDatatype.UNSIGNED_BYTE;
|
|
124
|
+
}
|
|
125
|
+
if (array instanceof Uint16Array) {
|
|
126
|
+
return IndexDatatype.UNSIGNED_SHORT;
|
|
127
|
+
}
|
|
128
|
+
if (array instanceof Uint32Array) {
|
|
129
|
+
return IndexDatatype.UNSIGNED_INT;
|
|
130
|
+
}
|
|
131
|
+
throw new DeveloperError_default(
|
|
132
|
+
"array must be a Uint8Array, Uint16Array, or Uint32Array."
|
|
133
|
+
);
|
|
134
|
+
};
|
|
135
|
+
var IndexDatatype_default = Object.freeze(IndexDatatype);
|
|
136
|
+
|
|
137
|
+
export {
|
|
138
|
+
IndexDatatype_default
|
|
139
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 0.0.40
|
|
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
|
+
Intersect_default
|
|
28
|
+
} from "./chunk-BR5MKJPV.js";
|
|
29
|
+
import {
|
|
30
|
+
Cartesian3_default
|
|
31
|
+
} from "./chunk-7ODSCNSY.js";
|
|
32
|
+
import {
|
|
33
|
+
defaultValue_default
|
|
34
|
+
} from "./chunk-IOE6TIOI.js";
|
|
35
|
+
import {
|
|
36
|
+
Check_default
|
|
37
|
+
} from "./chunk-27NCQCM4.js";
|
|
38
|
+
import {
|
|
39
|
+
defined_default
|
|
40
|
+
} from "./chunk-D6ESIYSS.js";
|
|
41
|
+
|
|
42
|
+
// packages/engine/Source/Core/AxisAlignedBoundingBox.js
|
|
43
|
+
function AxisAlignedBoundingBox(minimum, maximum, center) {
|
|
44
|
+
this.minimum = Cartesian3_default.clone(defaultValue_default(minimum, Cartesian3_default.ZERO));
|
|
45
|
+
this.maximum = Cartesian3_default.clone(defaultValue_default(maximum, Cartesian3_default.ZERO));
|
|
46
|
+
if (!defined_default(center)) {
|
|
47
|
+
center = Cartesian3_default.midpoint(this.minimum, this.maximum, new Cartesian3_default());
|
|
48
|
+
} else {
|
|
49
|
+
center = Cartesian3_default.clone(center);
|
|
50
|
+
}
|
|
51
|
+
this.center = center;
|
|
52
|
+
}
|
|
53
|
+
AxisAlignedBoundingBox.fromCorners = function(minimum, maximum, result) {
|
|
54
|
+
Check_default.defined("minimum", minimum);
|
|
55
|
+
Check_default.defined("maximum", maximum);
|
|
56
|
+
if (!defined_default(result)) {
|
|
57
|
+
result = new AxisAlignedBoundingBox();
|
|
58
|
+
}
|
|
59
|
+
result.minimum = Cartesian3_default.clone(minimum, result.minimum);
|
|
60
|
+
result.maximum = Cartesian3_default.clone(maximum, result.maximum);
|
|
61
|
+
result.center = Cartesian3_default.midpoint(minimum, maximum, result.center);
|
|
62
|
+
return result;
|
|
63
|
+
};
|
|
64
|
+
AxisAlignedBoundingBox.fromPoints = function(positions, result) {
|
|
65
|
+
if (!defined_default(result)) {
|
|
66
|
+
result = new AxisAlignedBoundingBox();
|
|
67
|
+
}
|
|
68
|
+
if (!defined_default(positions) || positions.length === 0) {
|
|
69
|
+
result.minimum = Cartesian3_default.clone(Cartesian3_default.ZERO, result.minimum);
|
|
70
|
+
result.maximum = Cartesian3_default.clone(Cartesian3_default.ZERO, result.maximum);
|
|
71
|
+
result.center = Cartesian3_default.clone(Cartesian3_default.ZERO, result.center);
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
let minimumX = positions[0].x;
|
|
75
|
+
let minimumY = positions[0].y;
|
|
76
|
+
let minimumZ = positions[0].z;
|
|
77
|
+
let maximumX = positions[0].x;
|
|
78
|
+
let maximumY = positions[0].y;
|
|
79
|
+
let maximumZ = positions[0].z;
|
|
80
|
+
const length = positions.length;
|
|
81
|
+
for (let i = 1; i < length; i++) {
|
|
82
|
+
const p = positions[i];
|
|
83
|
+
const x = p.x;
|
|
84
|
+
const y = p.y;
|
|
85
|
+
const z = p.z;
|
|
86
|
+
minimumX = Math.min(x, minimumX);
|
|
87
|
+
maximumX = Math.max(x, maximumX);
|
|
88
|
+
minimumY = Math.min(y, minimumY);
|
|
89
|
+
maximumY = Math.max(y, maximumY);
|
|
90
|
+
minimumZ = Math.min(z, minimumZ);
|
|
91
|
+
maximumZ = Math.max(z, maximumZ);
|
|
92
|
+
}
|
|
93
|
+
const minimum = result.minimum;
|
|
94
|
+
minimum.x = minimumX;
|
|
95
|
+
minimum.y = minimumY;
|
|
96
|
+
minimum.z = minimumZ;
|
|
97
|
+
const maximum = result.maximum;
|
|
98
|
+
maximum.x = maximumX;
|
|
99
|
+
maximum.y = maximumY;
|
|
100
|
+
maximum.z = maximumZ;
|
|
101
|
+
result.center = Cartesian3_default.midpoint(minimum, maximum, result.center);
|
|
102
|
+
return result;
|
|
103
|
+
};
|
|
104
|
+
AxisAlignedBoundingBox.clone = function(box, result) {
|
|
105
|
+
if (!defined_default(box)) {
|
|
106
|
+
return void 0;
|
|
107
|
+
}
|
|
108
|
+
if (!defined_default(result)) {
|
|
109
|
+
return new AxisAlignedBoundingBox(box.minimum, box.maximum, box.center);
|
|
110
|
+
}
|
|
111
|
+
result.minimum = Cartesian3_default.clone(box.minimum, result.minimum);
|
|
112
|
+
result.maximum = Cartesian3_default.clone(box.maximum, result.maximum);
|
|
113
|
+
result.center = Cartesian3_default.clone(box.center, result.center);
|
|
114
|
+
return result;
|
|
115
|
+
};
|
|
116
|
+
AxisAlignedBoundingBox.equals = function(left, right) {
|
|
117
|
+
return left === right || defined_default(left) && defined_default(right) && Cartesian3_default.equals(left.center, right.center) && Cartesian3_default.equals(left.minimum, right.minimum) && Cartesian3_default.equals(left.maximum, right.maximum);
|
|
118
|
+
};
|
|
119
|
+
var intersectScratch = new Cartesian3_default();
|
|
120
|
+
AxisAlignedBoundingBox.intersectPlane = function(box, plane) {
|
|
121
|
+
Check_default.defined("box", box);
|
|
122
|
+
Check_default.defined("plane", plane);
|
|
123
|
+
intersectScratch = Cartesian3_default.subtract(
|
|
124
|
+
box.maximum,
|
|
125
|
+
box.minimum,
|
|
126
|
+
intersectScratch
|
|
127
|
+
);
|
|
128
|
+
const h = Cartesian3_default.multiplyByScalar(
|
|
129
|
+
intersectScratch,
|
|
130
|
+
0.5,
|
|
131
|
+
intersectScratch
|
|
132
|
+
);
|
|
133
|
+
const normal = plane.normal;
|
|
134
|
+
const e = h.x * Math.abs(normal.x) + h.y * Math.abs(normal.y) + h.z * Math.abs(normal.z);
|
|
135
|
+
const s = Cartesian3_default.dot(box.center, normal) + plane.distance;
|
|
136
|
+
if (s - e > 0) {
|
|
137
|
+
return Intersect_default.INSIDE;
|
|
138
|
+
}
|
|
139
|
+
if (s + e < 0) {
|
|
140
|
+
return Intersect_default.OUTSIDE;
|
|
141
|
+
}
|
|
142
|
+
return Intersect_default.INTERSECTING;
|
|
143
|
+
};
|
|
144
|
+
AxisAlignedBoundingBox.prototype.clone = function(result) {
|
|
145
|
+
return AxisAlignedBoundingBox.clone(this, result);
|
|
146
|
+
};
|
|
147
|
+
AxisAlignedBoundingBox.prototype.intersectPlane = function(plane) {
|
|
148
|
+
return AxisAlignedBoundingBox.intersectPlane(this, plane);
|
|
149
|
+
};
|
|
150
|
+
AxisAlignedBoundingBox.prototype.equals = function(right) {
|
|
151
|
+
return AxisAlignedBoundingBox.equals(this, right);
|
|
152
|
+
};
|
|
153
|
+
var AxisAlignedBoundingBox_default = AxisAlignedBoundingBox;
|
|
154
|
+
|
|
155
|
+
export {
|
|
156
|
+
AxisAlignedBoundingBox_default
|
|
157
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.40
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,29 +25,29 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
PrimitivePipeline_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OHM3HXGW.js";
|
|
29
29
|
import {
|
|
30
30
|
createTaskProcessorWorker_default
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-2UUDETVF.js";
|
|
32
|
+
import "./chunk-OUFXKPAP.js";
|
|
33
|
+
import "./chunk-GXRKKREQ.js";
|
|
34
|
+
import "./chunk-JUI6MY3E.js";
|
|
35
|
+
import "./chunk-QXWEMH73.js";
|
|
36
|
+
import "./chunk-6QHSHP53.js";
|
|
37
|
+
import "./chunk-QSO4DE6J.js";
|
|
38
|
+
import "./chunk-WCYXXO6P.js";
|
|
39
|
+
import "./chunk-CZUIRW4F.js";
|
|
40
|
+
import "./chunk-EZKONOBC.js";
|
|
41
|
+
import "./chunk-BR5MKJPV.js";
|
|
42
|
+
import "./chunk-P3YNN4UB.js";
|
|
43
|
+
import "./chunk-L5A2N2AG.js";
|
|
44
|
+
import "./chunk-7ODSCNSY.js";
|
|
45
|
+
import "./chunk-VQY5ILOS.js";
|
|
46
|
+
import "./chunk-76TOSCCT.js";
|
|
47
|
+
import "./chunk-C2ACDJD5.js";
|
|
48
|
+
import "./chunk-IOE6TIOI.js";
|
|
49
|
+
import "./chunk-27NCQCM4.js";
|
|
50
|
+
import "./chunk-D6ESIYSS.js";
|
|
51
51
|
|
|
52
52
|
// packages/engine/Source/Workers/combineGeometry.js
|
|
53
53
|
function combineGeometry(packedParameters, transferableObjects) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.40
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,23 +25,23 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
BoxGeometry_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-SUSQ3MVC.js";
|
|
29
|
+
import "./chunk-QSTX55K5.js";
|
|
30
|
+
import "./chunk-BSQAU7IM.js";
|
|
31
|
+
import "./chunk-CZUIRW4F.js";
|
|
32
|
+
import "./chunk-EZKONOBC.js";
|
|
33
|
+
import "./chunk-BR5MKJPV.js";
|
|
34
|
+
import "./chunk-P3YNN4UB.js";
|
|
35
|
+
import "./chunk-L5A2N2AG.js";
|
|
36
|
+
import "./chunk-7ODSCNSY.js";
|
|
37
|
+
import "./chunk-VQY5ILOS.js";
|
|
38
|
+
import "./chunk-76TOSCCT.js";
|
|
39
|
+
import "./chunk-C2ACDJD5.js";
|
|
40
|
+
import "./chunk-IOE6TIOI.js";
|
|
41
|
+
import "./chunk-27NCQCM4.js";
|
|
42
42
|
import {
|
|
43
43
|
defined_default
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-D6ESIYSS.js";
|
|
45
45
|
|
|
46
46
|
// packages/engine/Source/Workers/createBoxGeometry.js
|
|
47
47
|
function createBoxGeometry(boxGeometry, offset) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.40
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,38 +25,38 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
GeometryOffsetAttribute_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QSTX55K5.js";
|
|
29
29
|
import {
|
|
30
30
|
GeometryAttributes_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CZUIRW4F.js";
|
|
32
32
|
import {
|
|
33
33
|
GeometryAttribute_default,
|
|
34
34
|
Geometry_default,
|
|
35
35
|
PrimitiveType_default
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-EZKONOBC.js";
|
|
37
37
|
import {
|
|
38
38
|
BoundingSphere_default
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-BR5MKJPV.js";
|
|
40
|
+
import "./chunk-P3YNN4UB.js";
|
|
41
41
|
import {
|
|
42
42
|
ComponentDatatype_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-L5A2N2AG.js";
|
|
44
44
|
import {
|
|
45
45
|
Cartesian3_default
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-7ODSCNSY.js";
|
|
47
|
+
import "./chunk-VQY5ILOS.js";
|
|
48
|
+
import "./chunk-76TOSCCT.js";
|
|
49
|
+
import "./chunk-C2ACDJD5.js";
|
|
50
50
|
import {
|
|
51
51
|
defaultValue_default
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-IOE6TIOI.js";
|
|
53
53
|
import {
|
|
54
54
|
Check_default,
|
|
55
55
|
DeveloperError_default
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-27NCQCM4.js";
|
|
57
57
|
import {
|
|
58
58
|
defined_default
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-D6ESIYSS.js";
|
|
60
60
|
|
|
61
61
|
// packages/engine/Source/Core/BoxOutlineGeometry.js
|
|
62
62
|
var diffScratch = new Cartesian3_default();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.40
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,40 +25,40 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
EllipseGeometry_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-666ITZYK.js";
|
|
29
|
+
import "./chunk-UHYBTCZW.js";
|
|
30
|
+
import "./chunk-O2ZGG4HX.js";
|
|
31
|
+
import "./chunk-GXRKKREQ.js";
|
|
32
|
+
import "./chunk-JUI6MY3E.js";
|
|
33
|
+
import "./chunk-QXWEMH73.js";
|
|
34
|
+
import "./chunk-QSTX55K5.js";
|
|
35
35
|
import {
|
|
36
36
|
VertexFormat_default
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-BSQAU7IM.js";
|
|
38
|
+
import "./chunk-6QHSHP53.js";
|
|
39
|
+
import "./chunk-QSO4DE6J.js";
|
|
40
|
+
import "./chunk-WCYXXO6P.js";
|
|
41
|
+
import "./chunk-CZUIRW4F.js";
|
|
42
|
+
import "./chunk-EZKONOBC.js";
|
|
43
|
+
import "./chunk-BR5MKJPV.js";
|
|
44
|
+
import "./chunk-P3YNN4UB.js";
|
|
45
|
+
import "./chunk-L5A2N2AG.js";
|
|
46
46
|
import {
|
|
47
47
|
Cartesian3_default,
|
|
48
48
|
Ellipsoid_default
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-7ODSCNSY.js";
|
|
50
|
+
import "./chunk-VQY5ILOS.js";
|
|
51
|
+
import "./chunk-76TOSCCT.js";
|
|
52
|
+
import "./chunk-C2ACDJD5.js";
|
|
53
53
|
import {
|
|
54
54
|
defaultValue_default
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-IOE6TIOI.js";
|
|
56
56
|
import {
|
|
57
57
|
Check_default
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-27NCQCM4.js";
|
|
59
59
|
import {
|
|
60
60
|
defined_default
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-D6ESIYSS.js";
|
|
62
62
|
|
|
63
63
|
// packages/engine/Source/Core/CircleGeometry.js
|
|
64
64
|
function CircleGeometry(options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.
|
|
4
|
+
* Version 0.0.40
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,31 +25,31 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
EllipseOutlineGeometry_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-6IFCG35V.js";
|
|
29
|
+
import "./chunk-UHYBTCZW.js";
|
|
30
|
+
import "./chunk-QSTX55K5.js";
|
|
31
|
+
import "./chunk-WCYXXO6P.js";
|
|
32
|
+
import "./chunk-CZUIRW4F.js";
|
|
33
|
+
import "./chunk-EZKONOBC.js";
|
|
34
|
+
import "./chunk-BR5MKJPV.js";
|
|
35
|
+
import "./chunk-P3YNN4UB.js";
|
|
36
|
+
import "./chunk-L5A2N2AG.js";
|
|
37
37
|
import {
|
|
38
38
|
Cartesian3_default,
|
|
39
39
|
Ellipsoid_default
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-7ODSCNSY.js";
|
|
41
|
+
import "./chunk-VQY5ILOS.js";
|
|
42
|
+
import "./chunk-76TOSCCT.js";
|
|
43
|
+
import "./chunk-C2ACDJD5.js";
|
|
44
44
|
import {
|
|
45
45
|
defaultValue_default
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-IOE6TIOI.js";
|
|
47
47
|
import {
|
|
48
48
|
Check_default
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-27NCQCM4.js";
|
|
50
50
|
import {
|
|
51
51
|
defined_default
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-D6ESIYSS.js";
|
|
53
53
|
|
|
54
54
|
// packages/engine/Source/Core/CircleOutlineGeometry.js
|
|
55
55
|
function CircleOutlineGeometry(options) {
|