deeptwins-cesium-engine 0.1.2 → 0.1.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.
- package/Build/Workers/chunk-2HWLF3FT.js +837 -0
- package/Build/Workers/chunk-2KXMJ5XS.js +3792 -0
- package/Build/Workers/chunk-2NPCLB3H.js +56 -0
- package/Build/Workers/chunk-2ZHQTIBH.js +1483 -0
- package/Build/Workers/chunk-3GLYOW63.js +352 -0
- package/Build/Workers/chunk-3L22KMPU.js +219 -0
- package/Build/Workers/chunk-3Q6V2B2I.js +73 -0
- package/Build/Workers/chunk-3QOKKRIG.js +387 -0
- package/Build/Workers/chunk-44YZFGRH.js +1800 -0
- package/Build/Workers/chunk-45VV4SBO.js +2342 -0
- package/Build/Workers/chunk-4EJ4AA2S.js +368 -0
- package/Build/Workers/chunk-4IJFHUL6.js +414 -0
- package/Build/Workers/chunk-4K3V5CGW.js +454 -0
- package/Build/Workers/chunk-4M4QL6KJ.js +305 -0
- package/Build/Workers/chunk-4YNRIEQ6.js +288 -0
- package/Build/Workers/chunk-56CVDPH5.js +352 -0
- package/Build/Workers/chunk-5CTAAPXH.js +1483 -0
- package/Build/Workers/chunk-5ISZ6NJD.js +102 -0
- package/Build/Workers/chunk-5SDHYIOS.js +56 -0
- package/Build/Workers/chunk-66TGUMCU.js +2719 -0
- package/Build/Workers/chunk-6EJMTDQJ.js +163 -0
- package/Build/Workers/chunk-6VWXYSMH.js +959 -0
- package/Build/Workers/chunk-6VZ7VB2Q.js +241 -0
- package/Build/Workers/chunk-7AMRE57Q.js +301 -0
- package/Build/Workers/chunk-7DH6C33H.js +398 -0
- package/Build/Workers/chunk-7VUS3FVE.js +38 -0
- package/Build/Workers/chunk-7Y3ZA6H3.js +198 -0
- package/Build/Workers/chunk-A6BMHZNA.js +38 -0
- package/Build/Workers/chunk-A7XY2MN7.js +171 -0
- package/Build/Workers/chunk-AC7ND63S.js +57 -0
- package/Build/Workers/chunk-AHCZ757M.js +9230 -0
- package/Build/Workers/chunk-ANOA7E7F.js +56 -0
- package/Build/Workers/chunk-AYO5HHV6.js +789 -0
- package/Build/Workers/chunk-BE2N56VZ.js +1344 -0
- package/Build/Workers/chunk-BR3BPM64.js +9230 -0
- package/Build/Workers/chunk-BVMRWGOK.js +455 -0
- package/Build/Workers/chunk-BXEL2NX7.js +455 -0
- package/Build/Workers/chunk-C5BO2JCG.js +278 -0
- package/Build/Workers/chunk-CIRQNZVR.js +301 -0
- package/Build/Workers/chunk-CM67CQME.js +305 -0
- package/Build/Workers/chunk-D3QIW4DH.js +630 -0
- package/Build/Workers/chunk-E5W7QIGZ.js +511 -0
- package/Build/Workers/chunk-E6CYGUJI.js +1054 -0
- package/Build/Workers/chunk-EIZ23IOX.js +414 -0
- package/Build/Workers/chunk-EIZJUMQY.js +101 -0
- package/Build/Workers/chunk-EXTMZJXB.js +82 -0
- package/Build/Workers/chunk-EYOOSIBW.js +682 -0
- package/Build/Workers/chunk-F37WADVC.js +1054 -0
- package/Build/Workers/chunk-FIWPJFHX.js +101 -0
- package/Build/Workers/chunk-FM32TNGT.js +198 -0
- package/Build/Workers/chunk-FOMYIEIB.js +476 -0
- package/Build/Workers/chunk-FWYDLSVQ.js +97 -0
- package/Build/Workers/chunk-HGZR6CZF.js +1067 -0
- package/Build/Workers/chunk-HIXHDABG.js +288 -0
- package/Build/Workers/chunk-HMCCZZWE.js +97 -0
- package/Build/Workers/chunk-HW54WHGM.js +2719 -0
- package/Build/Workers/chunk-IHYAI7GF.js +973 -0
- package/Build/Workers/chunk-INLQ7LVK.js +837 -0
- package/Build/Workers/chunk-IQMESTCB.js +124 -0
- package/Build/Workers/chunk-J4PISUNT.js +2342 -0
- package/Build/Workers/chunk-JSWU557I.js +693 -0
- package/Build/Workers/chunk-KHONDSQ7.js +693 -0
- package/Build/Workers/chunk-KLUL2SOE.js +352 -0
- package/Build/Workers/chunk-KMBLKQCC.js +1992 -0
- package/Build/Workers/chunk-KOTWWQN7.js +171 -0
- package/Build/Workers/chunk-KWV6ZTF4.js +163 -0
- package/Build/Workers/chunk-LSEFPQHG.js +476 -0
- package/Build/Workers/chunk-M66X4O24.js +44 -0
- package/Build/Workers/chunk-M6IXKBC7.js +1992 -0
- package/Build/Workers/chunk-MFUC3D5C.js +162 -0
- package/Build/Workers/chunk-MRMNELAH.js +82 -0
- package/Build/Workers/chunk-N3NUA5H2.js +3792 -0
- package/Build/Workers/chunk-NFB2NXJN.js +138 -0
- package/Build/Workers/chunk-NQAXBK4K.js +789 -0
- package/Build/Workers/chunk-NUGQWV6S.js +352 -0
- package/Build/Workers/chunk-O7S7WL7K.js +278 -0
- package/Build/Workers/chunk-ODZYB26X.js +1287 -0
- package/Build/Workers/chunk-OEHJY463.js +3201 -0
- package/Build/Workers/chunk-OMMRNMXF.js +44 -0
- package/Build/Workers/chunk-OZ3CQDO3.js +138 -0
- package/Build/Workers/chunk-PNXBG64I.js +219 -0
- package/Build/Workers/chunk-PYR35GK4.js +973 -0
- package/Build/Workers/chunk-Q4CXGW74.js +57 -0
- package/Build/Workers/chunk-QGISLKCW.js +147 -0
- package/Build/Workers/chunk-QQHVOJW6.js +497 -0
- package/Build/Workers/chunk-QWCMMRJW.js +58 -0
- package/Build/Workers/chunk-RDEZCHF4.js +398 -0
- package/Build/Workers/chunk-SJTE7FVN.js +778 -0
- package/Build/Workers/chunk-SM5T67LR.js +162 -0
- package/Build/Workers/chunk-T27NNXEU.js +58 -0
- package/Build/Workers/chunk-T4J5BWUO.js +511 -0
- package/Build/Workers/chunk-T6JS4BRN.js +140 -0
- package/Build/Workers/chunk-UH6DUQBW.js +140 -0
- package/Build/Workers/chunk-UJAH6XKF.js +73 -0
- package/Build/Workers/chunk-UKSTJ2PH.js +454 -0
- package/Build/Workers/chunk-UQCDCCZ7.js +368 -0
- package/Build/Workers/chunk-UXIFNEA3.js +1287 -0
- package/Build/Workers/chunk-UXJ6J5L7.js +56 -0
- package/Build/Workers/chunk-V4VUAZXI.js +1800 -0
- package/Build/Workers/chunk-VQH2YXO2.js +497 -0
- package/Build/Workers/chunk-VXKCLSE4.js +241 -0
- package/Build/Workers/chunk-W3U6YBEI.js +280 -0
- package/Build/Workers/chunk-W75ZVFKP.js +778 -0
- package/Build/Workers/chunk-WCDFJYFB.js +1344 -0
- package/Build/Workers/chunk-WME5M6W3.js +630 -0
- package/Build/Workers/chunk-XDQBQB64.js +1067 -0
- package/Build/Workers/chunk-Y6HOIWE5.js +959 -0
- package/Build/Workers/chunk-YEMC2ZOR.js +147 -0
- package/Build/Workers/chunk-YWNF3TPE.js +682 -0
- package/Build/Workers/chunk-Z55VGWJP.js +280 -0
- package/Build/Workers/chunk-Z5YWP24C.js +124 -0
- package/Build/Workers/chunk-ZHXCWUJB.js +387 -0
- package/Build/Workers/chunk-ZIMPUF2I.js +102 -0
- package/Build/Workers/chunk-ZKDWYQKC.js +3201 -0
- package/Build/Workers/combineGeometry.js +24 -22
- package/Build/Workers/createBoxGeometry.js +18 -16
- package/Build/Workers/createBoxOutlineGeometry.js +23 -25
- package/Build/Workers/createCircleGeometry.js +29 -27
- package/Build/Workers/createCircleOutlineGeometry.js +22 -20
- package/Build/Workers/createCoplanarPolygonGeometry.js +43 -43
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +37 -35
- package/Build/Workers/createCorridorGeometry.js +46 -49
- package/Build/Workers/createCorridorOutlineGeometry.js +40 -43
- package/Build/Workers/createCylinderGeometry.js +20 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +27 -25
- package/Build/Workers/createEllipseGeometry.js +28 -25
- package/Build/Workers/createEllipseOutlineGeometry.js +21 -18
- package/Build/Workers/createEllipsoidGeometry.js +19 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -16
- package/Build/Workers/createFrustumGeometry.js +18 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +21 -21
- package/Build/Workers/createGeometry.js +31 -26
- package/Build/Workers/createGroundPolylineGeometry.js +188 -135
- package/Build/Workers/createPlaneGeometry.js +22 -21
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -13
- package/Build/Workers/createPolygonGeometry.js +51 -52
- package/Build/Workers/createPolygonOutlineGeometry.js +43 -44
- package/Build/Workers/createPolylineGeometry.js +37 -40
- package/Build/Workers/createPolylineVolumeGeometry.js +41 -44
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +36 -39
- package/Build/Workers/createRectangleGeometry.js +47 -53
- package/Build/Workers/createRectangleOutlineGeometry.js +32 -33
- package/Build/Workers/createSimplePolylineGeometry.js +33 -34
- package/Build/Workers/createSphereGeometry.js +20 -20
- package/Build/Workers/createSphereOutlineGeometry.js +19 -19
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +16 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -22
- package/Build/Workers/createVectorTilePoints.js +15 -13
- package/Build/Workers/createVectorTilePolygons.js +24 -21
- package/Build/Workers/createVectorTilePolylines.js +16 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +29 -27
- package/Build/Workers/createVerticesFromHeightmap.js +42 -63
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -280
- package/Build/Workers/createWallGeometry.js +35 -36
- package/Build/Workers/createWallOutlineGeometry.js +33 -34
- package/Build/Workers/decodeDraco.js +10 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +16 -20
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +20 -12
- package/Build/Workers/transcodeKTX2.js +42 -14
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +24 -21
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Source/Shaders/BillboardCollectionFS.js +85 -81
- package/Source/Shaders/BillboardCollectionVS.js +60 -118
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.js +12 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdgesDirect.js +11 -0
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +11 -0
- package/Source/Shaders/Builtin/Constants/passOpaque.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.js +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.js +1 -1
- package/Source/Shaders/Builtin/CzmBuiltins.js +12 -0
- package/Source/Shaders/Builtin/Functions/columbusViewMorph.js +8 -1
- package/Source/Shaders/Builtin/Functions/computeTextureTransform.js +25 -0
- package/Source/Shaders/Builtin/Functions/decodeRGB8.js +24 -0
- package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.js +2 -1
- package/Source/Shaders/Builtin/Functions/unpackTexture.js +37 -0
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +0 -1
- package/Source/Shaders/EllipsoidVS.js +4 -4
- package/Source/Shaders/FXAA3_11.js +2 -0
- package/Source/Shaders/GlobeFS.js +22 -0
- package/Source/Shaders/GlobeVS.js +3 -2
- package/Source/Shaders/Model/MaterialStageFS.js +50 -20
- package/Source/Shaders/Model/MetadataStageFS.js +2 -1
- package/Source/Shaders/Model/MetadataStageVS.js +2 -1
- package/Source/Shaders/Model/ModelFS.js +32 -2
- package/Source/Shaders/Model/ModelVS.js +15 -1
- package/Source/Shaders/Model/PointCloudStylingStageVS.js +2 -1
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.js +0 -1
- package/Source/Shaders/PointPrimitiveCollectionVS.js +8 -39
- package/Source/Shaders/PolygonSignedDistanceFS.js +64 -33
- package/Source/Shaders/PolylineCommon.js +1 -1
- package/Source/Shaders/ShadowVolumeAppearanceFS.js +7 -15
- package/Source/Shaders/SkyAtmosphereVS.js +2 -1
- package/Source/Shaders/Voxels/IntersectBox.js +20 -33
- package/Source/Shaders/Voxels/IntersectCylinder.js +28 -32
- package/Source/Shaders/Voxels/IntersectDepth.js +10 -6
- package/Source/Shaders/Voxels/IntersectEllipsoid.js +12 -20
- package/Source/Shaders/Voxels/IntersectLongitude.js +21 -9
- package/Source/Shaders/Voxels/Intersection.js +3 -5
- package/Source/Shaders/Voxels/IntersectionUtils.js +2 -1
- package/Source/Shaders/Voxels/Megatexture.js +15 -83
- package/Source/Shaders/Voxels/Octree.js +53 -61
- package/Source/Shaders/Voxels/VoxelFS.js +67 -52
- package/Source/Shaders/Voxels/VoxelUtils.js +0 -19
- package/index.js +346 -261
- package/package.json +1 -1
- package/Source/Shaders/Voxels/IntersectClippingPlanes.js +0 -80
- package/Source/Shaders/Voxels/convertUvToBox.js +0 -46
- package/Source/Shaders/Voxels/convertUvToCylinder.js +0 -101
- package/Source/Shaders/Voxels/convertUvToEllipsoid.js +0 -141
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,71 +25,73 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
BoundingRectangle_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PNXBG64I.js";
|
|
29
29
|
import {
|
|
30
30
|
GeometryPipeline_default
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-HW54WHGM.js";
|
|
32
|
+
import "./chunk-4K3V5CGW.js";
|
|
33
|
+
import "./chunk-5ISZ6NJD.js";
|
|
34
34
|
import {
|
|
35
35
|
CornerType_default,
|
|
36
36
|
PolylineVolumeGeometryLibrary_default,
|
|
37
37
|
oneTimeWarning_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-JSWU557I.js";
|
|
39
|
+
import "./chunk-EIZ23IOX.js";
|
|
40
|
+
import "./chunk-KLUL2SOE.js";
|
|
41
41
|
import {
|
|
42
42
|
VertexFormat_default
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-OZ3CQDO3.js";
|
|
44
|
+
import "./chunk-4YNRIEQ6.js";
|
|
45
|
+
import "./chunk-MFUC3D5C.js";
|
|
46
46
|
import {
|
|
47
47
|
PolygonPipeline_default,
|
|
48
48
|
WindingOrder_default
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-6VWXYSMH.js";
|
|
50
50
|
import {
|
|
51
51
|
arrayRemoveDuplicates_default
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-FWYDLSVQ.js";
|
|
53
|
+
import "./chunk-BVMRWGOK.js";
|
|
54
|
+
import "./chunk-BE2N56VZ.js";
|
|
55
|
+
import "./chunk-KOTWWQN7.js";
|
|
56
56
|
import {
|
|
57
57
|
IndexDatatype_default
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-T6JS4BRN.js";
|
|
59
59
|
import {
|
|
60
60
|
GeometryAttributes_default
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-OMMRNMXF.js";
|
|
62
62
|
import {
|
|
63
63
|
GeometryAttribute_default,
|
|
64
64
|
Geometry_default,
|
|
65
65
|
PrimitiveType_default
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-7AMRE57Q.js";
|
|
67
67
|
import {
|
|
68
68
|
BoundingSphere_default
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-ODZYB26X.js";
|
|
70
|
+
import "./chunk-ANOA7E7F.js";
|
|
71
|
+
import "./chunk-BR3BPM64.js";
|
|
72
|
+
import "./chunk-OEHJY463.js";
|
|
71
73
|
import {
|
|
72
74
|
ComponentDatatype_default
|
|
73
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-C5BO2JCG.js";
|
|
76
|
+
import "./chunk-D3QIW4DH.js";
|
|
77
|
+
import "./chunk-T27NNXEU.js";
|
|
74
78
|
import {
|
|
75
79
|
Cartesian2_default,
|
|
76
|
-
Cartesian3_default,
|
|
77
80
|
Ellipsoid_default
|
|
78
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-M6IXKBC7.js";
|
|
79
82
|
import {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
import "./chunk-I73Q3AG7.js";
|
|
83
|
+
Cartesian3_default,
|
|
84
|
+
Frozen_default
|
|
85
|
+
} from "./chunk-J4PISUNT.js";
|
|
84
86
|
import {
|
|
85
|
-
|
|
86
|
-
} from "./chunk-
|
|
87
|
+
Math_default
|
|
88
|
+
} from "./chunk-VQH2YXO2.js";
|
|
87
89
|
import {
|
|
88
90
|
DeveloperError_default
|
|
89
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
90
92
|
import {
|
|
91
93
|
defined_default
|
|
92
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-MRMNELAH.js";
|
|
93
95
|
|
|
94
96
|
// packages/engine/Source/Core/PolylineVolumeGeometry.js
|
|
95
97
|
function computeAttributes(combinedPositions, shape, boundingRectangle, vertexFormat) {
|
|
@@ -219,7 +221,7 @@ function computeAttributes(combinedPositions, shape, boundingRectangle, vertexFo
|
|
|
219
221
|
return geometry;
|
|
220
222
|
}
|
|
221
223
|
function PolylineVolumeGeometry(options) {
|
|
222
|
-
options =
|
|
224
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
223
225
|
const positions = options.polylinePositions;
|
|
224
226
|
const shape = options.shapePositions;
|
|
225
227
|
if (!defined_default(positions)) {
|
|
@@ -230,17 +232,12 @@ function PolylineVolumeGeometry(options) {
|
|
|
230
232
|
}
|
|
231
233
|
this._positions = positions;
|
|
232
234
|
this._shape = shape;
|
|
233
|
-
this._ellipsoid = Ellipsoid_default.clone(
|
|
234
|
-
|
|
235
|
-
);
|
|
236
|
-
this._cornerType = defaultValue_default(options.cornerType, CornerType_default.ROUNDED);
|
|
235
|
+
this._ellipsoid = Ellipsoid_default.clone(options.ellipsoid ?? Ellipsoid_default.default);
|
|
236
|
+
this._cornerType = options.cornerType ?? CornerType_default.ROUNDED;
|
|
237
237
|
this._vertexFormat = VertexFormat_default.clone(
|
|
238
|
-
|
|
239
|
-
);
|
|
240
|
-
this._granularity = defaultValue_default(
|
|
241
|
-
options.granularity,
|
|
242
|
-
Math_default.RADIANS_PER_DEGREE
|
|
238
|
+
options.vertexFormat ?? VertexFormat_default.DEFAULT
|
|
243
239
|
);
|
|
240
|
+
this._granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
|
|
244
241
|
this._workerName = "createPolylineVolumeGeometry";
|
|
245
242
|
let numComponents = 1 + positions.length * Cartesian3_default.packedLength;
|
|
246
243
|
numComponents += 1 + shape.length * Cartesian2_default.packedLength;
|
|
@@ -253,7 +250,7 @@ PolylineVolumeGeometry.pack = function(value, array, startingIndex) {
|
|
|
253
250
|
if (!defined_default(array)) {
|
|
254
251
|
throw new DeveloperError_default("array is required");
|
|
255
252
|
}
|
|
256
|
-
startingIndex =
|
|
253
|
+
startingIndex = startingIndex ?? 0;
|
|
257
254
|
let i;
|
|
258
255
|
const positions = value._positions;
|
|
259
256
|
let length = positions.length;
|
|
@@ -289,7 +286,7 @@ PolylineVolumeGeometry.unpack = function(array, startingIndex, result) {
|
|
|
289
286
|
if (!defined_default(array)) {
|
|
290
287
|
throw new DeveloperError_default("array is required");
|
|
291
288
|
}
|
|
292
|
-
startingIndex =
|
|
289
|
+
startingIndex = startingIndex ?? 0;
|
|
293
290
|
let i;
|
|
294
291
|
let length = array[startingIndex++];
|
|
295
292
|
const positions = new Array(length);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,62 +25,64 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
BoundingRectangle_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PNXBG64I.js";
|
|
29
29
|
import {
|
|
30
30
|
CornerType_default,
|
|
31
31
|
PolylineVolumeGeometryLibrary_default
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-JSWU557I.js";
|
|
33
|
+
import "./chunk-EIZ23IOX.js";
|
|
34
|
+
import "./chunk-KLUL2SOE.js";
|
|
35
|
+
import "./chunk-4YNRIEQ6.js";
|
|
36
|
+
import "./chunk-MFUC3D5C.js";
|
|
37
37
|
import {
|
|
38
38
|
PolygonPipeline_default,
|
|
39
39
|
WindingOrder_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6VWXYSMH.js";
|
|
41
41
|
import {
|
|
42
42
|
arrayRemoveDuplicates_default
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-FWYDLSVQ.js";
|
|
44
|
+
import "./chunk-BVMRWGOK.js";
|
|
45
|
+
import "./chunk-BE2N56VZ.js";
|
|
46
|
+
import "./chunk-KOTWWQN7.js";
|
|
47
47
|
import {
|
|
48
48
|
IndexDatatype_default
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-T6JS4BRN.js";
|
|
50
50
|
import {
|
|
51
51
|
GeometryAttributes_default
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-OMMRNMXF.js";
|
|
53
53
|
import {
|
|
54
54
|
GeometryAttribute_default,
|
|
55
55
|
Geometry_default,
|
|
56
56
|
PrimitiveType_default
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-7AMRE57Q.js";
|
|
58
58
|
import {
|
|
59
59
|
BoundingSphere_default
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-ODZYB26X.js";
|
|
61
|
+
import "./chunk-ANOA7E7F.js";
|
|
62
|
+
import "./chunk-BR3BPM64.js";
|
|
63
|
+
import "./chunk-OEHJY463.js";
|
|
62
64
|
import {
|
|
63
65
|
ComponentDatatype_default
|
|
64
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-C5BO2JCG.js";
|
|
67
|
+
import "./chunk-D3QIW4DH.js";
|
|
68
|
+
import "./chunk-T27NNXEU.js";
|
|
65
69
|
import {
|
|
66
70
|
Cartesian2_default,
|
|
67
|
-
Cartesian3_default,
|
|
68
71
|
Ellipsoid_default
|
|
69
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-M6IXKBC7.js";
|
|
70
73
|
import {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
import "./chunk-I73Q3AG7.js";
|
|
74
|
+
Cartesian3_default,
|
|
75
|
+
Frozen_default
|
|
76
|
+
} from "./chunk-J4PISUNT.js";
|
|
75
77
|
import {
|
|
76
|
-
|
|
77
|
-
} from "./chunk-
|
|
78
|
+
Math_default
|
|
79
|
+
} from "./chunk-VQH2YXO2.js";
|
|
78
80
|
import {
|
|
79
81
|
DeveloperError_default
|
|
80
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
81
83
|
import {
|
|
82
84
|
defined_default
|
|
83
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-MRMNELAH.js";
|
|
84
86
|
|
|
85
87
|
// packages/engine/Source/Core/PolylineVolumeOutlineGeometry.js
|
|
86
88
|
function computeAttributes(positions, shape) {
|
|
@@ -133,7 +135,7 @@ function computeAttributes(positions, shape) {
|
|
|
133
135
|
return geometry;
|
|
134
136
|
}
|
|
135
137
|
function PolylineVolumeOutlineGeometry(options) {
|
|
136
|
-
options =
|
|
138
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
137
139
|
const positions = options.polylinePositions;
|
|
138
140
|
const shape = options.shapePositions;
|
|
139
141
|
if (!defined_default(positions)) {
|
|
@@ -144,14 +146,9 @@ function PolylineVolumeOutlineGeometry(options) {
|
|
|
144
146
|
}
|
|
145
147
|
this._positions = positions;
|
|
146
148
|
this._shape = shape;
|
|
147
|
-
this._ellipsoid = Ellipsoid_default.clone(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
this._cornerType = defaultValue_default(options.cornerType, CornerType_default.ROUNDED);
|
|
151
|
-
this._granularity = defaultValue_default(
|
|
152
|
-
options.granularity,
|
|
153
|
-
Math_default.RADIANS_PER_DEGREE
|
|
154
|
-
);
|
|
149
|
+
this._ellipsoid = Ellipsoid_default.clone(options.ellipsoid ?? Ellipsoid_default.default);
|
|
150
|
+
this._cornerType = options.cornerType ?? CornerType_default.ROUNDED;
|
|
151
|
+
this._granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
|
|
155
152
|
this._workerName = "createPolylineVolumeOutlineGeometry";
|
|
156
153
|
let numComponents = 1 + positions.length * Cartesian3_default.packedLength;
|
|
157
154
|
numComponents += 1 + shape.length * Cartesian2_default.packedLength;
|
|
@@ -164,7 +161,7 @@ PolylineVolumeOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
|
164
161
|
if (!defined_default(array)) {
|
|
165
162
|
throw new DeveloperError_default("array is required");
|
|
166
163
|
}
|
|
167
|
-
startingIndex =
|
|
164
|
+
startingIndex = startingIndex ?? 0;
|
|
168
165
|
let i;
|
|
169
166
|
const positions = value._positions;
|
|
170
167
|
let length = positions.length;
|
|
@@ -197,7 +194,7 @@ PolylineVolumeOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
|
197
194
|
if (!defined_default(array)) {
|
|
198
195
|
throw new DeveloperError_default("array is required");
|
|
199
196
|
}
|
|
200
|
-
startingIndex =
|
|
197
|
+
startingIndex = startingIndex ?? 0;
|
|
201
198
|
let i;
|
|
202
199
|
let length = array[startingIndex++];
|
|
203
200
|
const positions = new Array(length);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,71 +25,73 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
RectangleGeometryLibrary_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VXKCLSE4.js";
|
|
29
29
|
import {
|
|
30
30
|
GeometryInstance_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Q4CXGW74.js";
|
|
32
32
|
import {
|
|
33
33
|
GeometryPipeline_default
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-HW54WHGM.js";
|
|
35
|
+
import "./chunk-4K3V5CGW.js";
|
|
36
|
+
import "./chunk-5ISZ6NJD.js";
|
|
37
37
|
import {
|
|
38
38
|
GeometryOffsetAttribute_default
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-7VUS3FVE.js";
|
|
40
40
|
import {
|
|
41
41
|
VertexFormat_default
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-OZ3CQDO3.js";
|
|
43
43
|
import {
|
|
44
44
|
PolygonPipeline_default
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-6VWXYSMH.js";
|
|
46
|
+
import "./chunk-BVMRWGOK.js";
|
|
47
|
+
import "./chunk-BE2N56VZ.js";
|
|
48
|
+
import "./chunk-KOTWWQN7.js";
|
|
49
49
|
import {
|
|
50
50
|
IndexDatatype_default
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-T6JS4BRN.js";
|
|
52
52
|
import {
|
|
53
53
|
GeometryAttributes_default
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-OMMRNMXF.js";
|
|
55
55
|
import {
|
|
56
56
|
GeometryAttribute_default,
|
|
57
57
|
Geometry_default,
|
|
58
58
|
PrimitiveType_default
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-7AMRE57Q.js";
|
|
60
60
|
import {
|
|
61
61
|
BoundingSphere_default
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-ODZYB26X.js";
|
|
63
|
+
import "./chunk-ANOA7E7F.js";
|
|
63
64
|
import {
|
|
64
65
|
Matrix2_default,
|
|
65
66
|
Quaternion_default,
|
|
66
67
|
Rectangle_default
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-BR3BPM64.js";
|
|
69
|
+
import "./chunk-OEHJY463.js";
|
|
68
70
|
import {
|
|
69
71
|
ComponentDatatype_default
|
|
70
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-C5BO2JCG.js";
|
|
73
|
+
import "./chunk-D3QIW4DH.js";
|
|
74
|
+
import "./chunk-T27NNXEU.js";
|
|
71
75
|
import {
|
|
72
76
|
Cartesian2_default,
|
|
73
|
-
Cartesian3_default,
|
|
74
77
|
Cartographic_default,
|
|
75
|
-
Ellipsoid_default
|
|
78
|
+
Ellipsoid_default
|
|
79
|
+
} from "./chunk-M6IXKBC7.js";
|
|
80
|
+
import {
|
|
81
|
+
Cartesian3_default,
|
|
82
|
+
Frozen_default,
|
|
76
83
|
Matrix3_default
|
|
77
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-J4PISUNT.js";
|
|
78
85
|
import {
|
|
79
86
|
Math_default
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-RZQLZIUI.js";
|
|
82
|
-
import "./chunk-I73Q3AG7.js";
|
|
83
|
-
import {
|
|
84
|
-
defaultValue_default
|
|
85
|
-
} from "./chunk-ATLWOZFF.js";
|
|
87
|
+
} from "./chunk-VQH2YXO2.js";
|
|
86
88
|
import {
|
|
87
89
|
Check_default,
|
|
88
90
|
DeveloperError_default
|
|
89
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
90
92
|
import {
|
|
91
93
|
defined_default
|
|
92
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-MRMNELAH.js";
|
|
93
95
|
|
|
94
96
|
// packages/engine/Source/Core/RectangleGeometry.js
|
|
95
97
|
var positionScratch = new Cartesian3_default();
|
|
@@ -918,7 +920,7 @@ function computeRectangle(rectangle, granularity, rotation, ellipsoid, result) {
|
|
|
918
920
|
return Rectangle_default.fromCartesianArray(positions, ellipsoid, result);
|
|
919
921
|
}
|
|
920
922
|
function RectangleGeometry(options) {
|
|
921
|
-
options =
|
|
923
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
922
924
|
const rectangle = options.rectangle;
|
|
923
925
|
Check_default.typeOf.object("rectangle", rectangle);
|
|
924
926
|
Rectangle_default._validate(rectangle);
|
|
@@ -927,24 +929,19 @@ function RectangleGeometry(options) {
|
|
|
927
929
|
"options.rectangle.north must be greater than or equal to options.rectangle.south"
|
|
928
930
|
);
|
|
929
931
|
}
|
|
930
|
-
const height =
|
|
931
|
-
const extrudedHeight =
|
|
932
|
+
const height = options.height ?? 0;
|
|
933
|
+
const extrudedHeight = options.extrudedHeight ?? height;
|
|
932
934
|
this._rectangle = Rectangle_default.clone(rectangle);
|
|
933
|
-
this._granularity =
|
|
934
|
-
|
|
935
|
-
Math_default.RADIANS_PER_DEGREE
|
|
936
|
-
);
|
|
937
|
-
this._ellipsoid = Ellipsoid_default.clone(
|
|
938
|
-
defaultValue_default(options.ellipsoid, Ellipsoid_default.default)
|
|
939
|
-
);
|
|
935
|
+
this._granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
|
|
936
|
+
this._ellipsoid = Ellipsoid_default.clone(options.ellipsoid ?? Ellipsoid_default.default);
|
|
940
937
|
this._surfaceHeight = Math.max(height, extrudedHeight);
|
|
941
|
-
this._rotation =
|
|
942
|
-
this._stRotation =
|
|
938
|
+
this._rotation = options.rotation ?? 0;
|
|
939
|
+
this._stRotation = options.stRotation ?? 0;
|
|
943
940
|
this._vertexFormat = VertexFormat_default.clone(
|
|
944
|
-
|
|
941
|
+
options.vertexFormat ?? VertexFormat_default.DEFAULT
|
|
945
942
|
);
|
|
946
943
|
this._extrudedHeight = Math.min(height, extrudedHeight);
|
|
947
|
-
this._shadowVolume =
|
|
944
|
+
this._shadowVolume = options.shadowVolume ?? false;
|
|
948
945
|
this._workerName = "createRectangleGeometry";
|
|
949
946
|
this._offsetAttribute = options.offsetAttribute;
|
|
950
947
|
this._rotatedRectangle = void 0;
|
|
@@ -954,7 +951,7 @@ RectangleGeometry.packedLength = Rectangle_default.packedLength + Ellipsoid_defa
|
|
|
954
951
|
RectangleGeometry.pack = function(value, array, startingIndex) {
|
|
955
952
|
Check_default.typeOf.object("value", value);
|
|
956
953
|
Check_default.defined("array", array);
|
|
957
|
-
startingIndex =
|
|
954
|
+
startingIndex = startingIndex ?? 0;
|
|
958
955
|
Rectangle_default.pack(value._rectangle, array, startingIndex);
|
|
959
956
|
startingIndex += Rectangle_default.packedLength;
|
|
960
957
|
Ellipsoid_default.pack(value._ellipsoid, array, startingIndex);
|
|
@@ -967,7 +964,7 @@ RectangleGeometry.pack = function(value, array, startingIndex) {
|
|
|
967
964
|
array[startingIndex++] = value._stRotation;
|
|
968
965
|
array[startingIndex++] = value._extrudedHeight;
|
|
969
966
|
array[startingIndex++] = value._shadowVolume ? 1 : 0;
|
|
970
|
-
array[startingIndex] =
|
|
967
|
+
array[startingIndex] = value._offsetAttribute ?? -1;
|
|
971
968
|
return array;
|
|
972
969
|
};
|
|
973
970
|
var scratchRectangle = new Rectangle_default();
|
|
@@ -986,7 +983,7 @@ var scratchOptions = {
|
|
|
986
983
|
};
|
|
987
984
|
RectangleGeometry.unpack = function(array, startingIndex, result) {
|
|
988
985
|
Check_default.defined("array", array);
|
|
989
|
-
startingIndex =
|
|
986
|
+
startingIndex = startingIndex ?? 0;
|
|
990
987
|
const rectangle = Rectangle_default.unpack(array, startingIndex, scratchRectangle);
|
|
991
988
|
startingIndex += Rectangle_default.packedLength;
|
|
992
989
|
const ellipsoid = Ellipsoid_default.unpack(array, startingIndex, scratchEllipsoid);
|
|
@@ -1027,7 +1024,7 @@ RectangleGeometry.unpack = function(array, startingIndex, result) {
|
|
|
1027
1024
|
return result;
|
|
1028
1025
|
};
|
|
1029
1026
|
RectangleGeometry.computeRectangle = function(options, result) {
|
|
1030
|
-
options =
|
|
1027
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
1031
1028
|
const rectangle = options.rectangle;
|
|
1032
1029
|
Check_default.typeOf.object("rectangle", rectangle);
|
|
1033
1030
|
Rectangle_default._validate(rectangle);
|
|
@@ -1036,12 +1033,9 @@ RectangleGeometry.computeRectangle = function(options, result) {
|
|
|
1036
1033
|
"options.rectangle.north must be greater than or equal to options.rectangle.south"
|
|
1037
1034
|
);
|
|
1038
1035
|
}
|
|
1039
|
-
const granularity =
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
);
|
|
1043
|
-
const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.default);
|
|
1044
|
-
const rotation = defaultValue_default(options.rotation, 0);
|
|
1036
|
+
const granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
|
|
1037
|
+
const ellipsoid = options.ellipsoid ?? Ellipsoid_default.default;
|
|
1038
|
+
const rotation = options.rotation ?? 0;
|
|
1045
1039
|
return computeRectangle(rectangle, granularity, rotation, ellipsoid, result);
|
|
1046
1040
|
};
|
|
1047
1041
|
var tangentRotationMatrixScratch = new Matrix3_default();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,53 +25,55 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
RectangleGeometryLibrary_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VXKCLSE4.js";
|
|
29
29
|
import {
|
|
30
30
|
GeometryOffsetAttribute_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7VUS3FVE.js";
|
|
32
32
|
import {
|
|
33
33
|
PolygonPipeline_default
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-6VWXYSMH.js";
|
|
35
|
+
import "./chunk-BVMRWGOK.js";
|
|
36
36
|
import {
|
|
37
37
|
IndexDatatype_default
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-T6JS4BRN.js";
|
|
39
39
|
import {
|
|
40
40
|
GeometryAttributes_default
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-OMMRNMXF.js";
|
|
42
42
|
import {
|
|
43
43
|
GeometryAttribute_default,
|
|
44
44
|
Geometry_default,
|
|
45
45
|
PrimitiveType_default
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-7AMRE57Q.js";
|
|
47
47
|
import {
|
|
48
48
|
BoundingSphere_default
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ODZYB26X.js";
|
|
50
|
+
import "./chunk-ANOA7E7F.js";
|
|
50
51
|
import {
|
|
51
52
|
Rectangle_default
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-BR3BPM64.js";
|
|
54
|
+
import "./chunk-OEHJY463.js";
|
|
53
55
|
import {
|
|
54
56
|
ComponentDatatype_default
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-C5BO2JCG.js";
|
|
58
|
+
import "./chunk-D3QIW4DH.js";
|
|
59
|
+
import "./chunk-T27NNXEU.js";
|
|
56
60
|
import {
|
|
57
|
-
Cartesian3_default,
|
|
58
61
|
Cartographic_default,
|
|
59
62
|
Ellipsoid_default
|
|
60
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-M6IXKBC7.js";
|
|
61
64
|
import {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
import "./chunk-I73Q3AG7.js";
|
|
65
|
+
Cartesian3_default,
|
|
66
|
+
Frozen_default
|
|
67
|
+
} from "./chunk-J4PISUNT.js";
|
|
66
68
|
import {
|
|
67
|
-
|
|
68
|
-
} from "./chunk-
|
|
69
|
+
Math_default
|
|
70
|
+
} from "./chunk-VQH2YXO2.js";
|
|
69
71
|
import {
|
|
70
72
|
DeveloperError_default
|
|
71
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
72
74
|
import {
|
|
73
75
|
defined_default
|
|
74
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-MRMNELAH.js";
|
|
75
77
|
|
|
76
78
|
// packages/engine/Source/Core/RectangleOutlineGeometry.js
|
|
77
79
|
var bottomBoundingSphere = new BoundingSphere_default();
|
|
@@ -272,14 +274,11 @@ function constructExtrudedRectangle(rectangleGeometry, computedOptions) {
|
|
|
272
274
|
return geo;
|
|
273
275
|
}
|
|
274
276
|
function RectangleOutlineGeometry(options) {
|
|
275
|
-
options =
|
|
277
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
276
278
|
const rectangle = options.rectangle;
|
|
277
|
-
const granularity =
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
);
|
|
281
|
-
const ellipsoid = defaultValue_default(options.ellipsoid, Ellipsoid_default.default);
|
|
282
|
-
const rotation = defaultValue_default(options.rotation, 0);
|
|
279
|
+
const granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
|
|
280
|
+
const ellipsoid = options.ellipsoid ?? Ellipsoid_default.default;
|
|
281
|
+
const rotation = options.rotation ?? 0;
|
|
283
282
|
if (!defined_default(rectangle)) {
|
|
284
283
|
throw new DeveloperError_default("rectangle is required.");
|
|
285
284
|
}
|
|
@@ -289,8 +288,8 @@ function RectangleOutlineGeometry(options) {
|
|
|
289
288
|
"options.rectangle.north must be greater than options.rectangle.south"
|
|
290
289
|
);
|
|
291
290
|
}
|
|
292
|
-
const height =
|
|
293
|
-
const extrudedHeight =
|
|
291
|
+
const height = options.height ?? 0;
|
|
292
|
+
const extrudedHeight = options.extrudedHeight ?? height;
|
|
294
293
|
this._rectangle = Rectangle_default.clone(rectangle);
|
|
295
294
|
this._granularity = granularity;
|
|
296
295
|
this._ellipsoid = ellipsoid;
|
|
@@ -308,7 +307,7 @@ RectangleOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
|
308
307
|
if (!defined_default(array)) {
|
|
309
308
|
throw new DeveloperError_default("array is required");
|
|
310
309
|
}
|
|
311
|
-
startingIndex =
|
|
310
|
+
startingIndex = startingIndex ?? 0;
|
|
312
311
|
Rectangle_default.pack(value._rectangle, array, startingIndex);
|
|
313
312
|
startingIndex += Rectangle_default.packedLength;
|
|
314
313
|
Ellipsoid_default.pack(value._ellipsoid, array, startingIndex);
|
|
@@ -317,7 +316,7 @@ RectangleOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
|
317
316
|
array[startingIndex++] = value._surfaceHeight;
|
|
318
317
|
array[startingIndex++] = value._rotation;
|
|
319
318
|
array[startingIndex++] = value._extrudedHeight;
|
|
320
|
-
array[startingIndex] =
|
|
319
|
+
array[startingIndex] = value._offsetAttribute ?? -1;
|
|
321
320
|
return array;
|
|
322
321
|
};
|
|
323
322
|
var scratchRectangle = new Rectangle_default();
|
|
@@ -335,7 +334,7 @@ RectangleOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
|
335
334
|
if (!defined_default(array)) {
|
|
336
335
|
throw new DeveloperError_default("array is required");
|
|
337
336
|
}
|
|
338
|
-
startingIndex =
|
|
337
|
+
startingIndex = startingIndex ?? 0;
|
|
339
338
|
const rectangle = Rectangle_default.unpack(array, startingIndex, scratchRectangle);
|
|
340
339
|
startingIndex += Rectangle_default.packedLength;
|
|
341
340
|
const ellipsoid = Ellipsoid_default.unpack(array, startingIndex, scratchEllipsoid);
|