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,82 +25,84 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
BoundingRectangle_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PNXBG64I.js";
|
|
29
29
|
import {
|
|
30
30
|
PolygonGeometryLibrary_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-E6CYGUJI.js";
|
|
32
32
|
import {
|
|
33
33
|
ArcType_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UXJ6J5L7.js";
|
|
35
35
|
import {
|
|
36
36
|
GeometryInstance_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-Q4CXGW74.js";
|
|
38
38
|
import {
|
|
39
39
|
GeometryPipeline_default
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-HW54WHGM.js";
|
|
41
|
+
import "./chunk-4K3V5CGW.js";
|
|
42
|
+
import "./chunk-5ISZ6NJD.js";
|
|
43
43
|
import {
|
|
44
44
|
GeometryOffsetAttribute_default
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-7VUS3FVE.js";
|
|
46
46
|
import {
|
|
47
47
|
VertexFormat_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-OZ3CQDO3.js";
|
|
49
49
|
import {
|
|
50
50
|
EllipsoidTangentPlane_default
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-4YNRIEQ6.js";
|
|
52
|
+
import "./chunk-MFUC3D5C.js";
|
|
53
53
|
import {
|
|
54
54
|
PolygonPipeline_default,
|
|
55
55
|
WindingOrder_default
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-6VWXYSMH.js";
|
|
57
|
+
import "./chunk-FWYDLSVQ.js";
|
|
58
|
+
import "./chunk-BVMRWGOK.js";
|
|
59
59
|
import {
|
|
60
60
|
IntersectionTests_default,
|
|
61
61
|
Ray_default
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-BE2N56VZ.js";
|
|
63
|
+
import "./chunk-KOTWWQN7.js";
|
|
64
64
|
import {
|
|
65
65
|
IndexDatatype_default
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-T6JS4BRN.js";
|
|
67
|
+
import "./chunk-OMMRNMXF.js";
|
|
68
68
|
import {
|
|
69
69
|
GeometryAttribute_default,
|
|
70
70
|
Geometry_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-7AMRE57Q.js";
|
|
72
72
|
import {
|
|
73
73
|
BoundingSphere_default
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-ODZYB26X.js";
|
|
75
|
+
import "./chunk-ANOA7E7F.js";
|
|
75
76
|
import {
|
|
76
77
|
Quaternion_default,
|
|
77
78
|
Rectangle_default
|
|
78
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-BR3BPM64.js";
|
|
80
|
+
import "./chunk-OEHJY463.js";
|
|
79
81
|
import {
|
|
80
82
|
ComponentDatatype_default
|
|
81
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-C5BO2JCG.js";
|
|
84
|
+
import "./chunk-D3QIW4DH.js";
|
|
85
|
+
import "./chunk-T27NNXEU.js";
|
|
82
86
|
import {
|
|
83
87
|
Cartesian2_default,
|
|
84
|
-
Cartesian3_default,
|
|
85
88
|
Cartographic_default,
|
|
86
|
-
Ellipsoid_default
|
|
89
|
+
Ellipsoid_default
|
|
90
|
+
} from "./chunk-M6IXKBC7.js";
|
|
91
|
+
import {
|
|
92
|
+
Cartesian3_default,
|
|
93
|
+
Frozen_default,
|
|
87
94
|
Matrix3_default
|
|
88
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-J4PISUNT.js";
|
|
89
96
|
import {
|
|
90
97
|
Math_default
|
|
91
|
-
} from "./chunk-
|
|
92
|
-
import "./chunk-RZQLZIUI.js";
|
|
93
|
-
import "./chunk-I73Q3AG7.js";
|
|
94
|
-
import {
|
|
95
|
-
defaultValue_default
|
|
96
|
-
} from "./chunk-ATLWOZFF.js";
|
|
98
|
+
} from "./chunk-VQH2YXO2.js";
|
|
97
99
|
import {
|
|
98
100
|
Check_default,
|
|
99
101
|
DeveloperError_default
|
|
100
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
101
103
|
import {
|
|
102
104
|
defined_default
|
|
103
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-MRMNELAH.js";
|
|
104
106
|
|
|
105
107
|
// packages/engine/Source/Core/Stereographic.js
|
|
106
108
|
function Stereographic(position, tangentPlane) {
|
|
@@ -734,18 +736,15 @@ function PolygonGeometry(options) {
|
|
|
734
736
|
);
|
|
735
737
|
}
|
|
736
738
|
const polygonHierarchy = options.polygonHierarchy;
|
|
737
|
-
const vertexFormat =
|
|
738
|
-
const ellipsoid =
|
|
739
|
-
const granularity =
|
|
740
|
-
|
|
741
|
-
Math_default.RADIANS_PER_DEGREE
|
|
742
|
-
);
|
|
743
|
-
const stRotation = defaultValue_default(options.stRotation, 0);
|
|
739
|
+
const vertexFormat = options.vertexFormat ?? VertexFormat_default.DEFAULT;
|
|
740
|
+
const ellipsoid = options.ellipsoid ?? Ellipsoid_default.default;
|
|
741
|
+
const granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
|
|
742
|
+
const stRotation = options.stRotation ?? 0;
|
|
744
743
|
const textureCoordinates = options.textureCoordinates;
|
|
745
|
-
const perPositionHeight =
|
|
744
|
+
const perPositionHeight = options.perPositionHeight ?? false;
|
|
746
745
|
const perPositionHeightExtrude = perPositionHeight && defined_default(options.extrudedHeight);
|
|
747
|
-
let height =
|
|
748
|
-
let extrudedHeight =
|
|
746
|
+
let height = options.height ?? 0;
|
|
747
|
+
let extrudedHeight = options.extrudedHeight ?? height;
|
|
749
748
|
if (!perPositionHeightExtrude) {
|
|
750
749
|
const h = Math.max(height, extrudedHeight);
|
|
751
750
|
extrudedHeight = Math.min(height, extrudedHeight);
|
|
@@ -757,15 +756,15 @@ function PolygonGeometry(options) {
|
|
|
757
756
|
this._stRotation = stRotation;
|
|
758
757
|
this._height = height;
|
|
759
758
|
this._extrudedHeight = extrudedHeight;
|
|
760
|
-
this._closeTop =
|
|
761
|
-
this._closeBottom =
|
|
759
|
+
this._closeTop = options.closeTop ?? true;
|
|
760
|
+
this._closeBottom = options.closeBottom ?? true;
|
|
762
761
|
this._polygonHierarchy = polygonHierarchy;
|
|
763
762
|
this._perPositionHeight = perPositionHeight;
|
|
764
763
|
this._perPositionHeightExtrude = perPositionHeightExtrude;
|
|
765
|
-
this._shadowVolume =
|
|
764
|
+
this._shadowVolume = options.shadowVolume ?? false;
|
|
766
765
|
this._workerName = "createPolygonGeometry";
|
|
767
766
|
this._offsetAttribute = options.offsetAttribute;
|
|
768
|
-
this._arcType =
|
|
767
|
+
this._arcType = options.arcType ?? ArcType_default.GEODESIC;
|
|
769
768
|
this._rectangle = void 0;
|
|
770
769
|
this._textureCoordinateRotationPoints = void 0;
|
|
771
770
|
this._textureCoordinates = textureCoordinates;
|
|
@@ -778,7 +777,7 @@ function PolygonGeometry(options) {
|
|
|
778
777
|
) : 1) + 12;
|
|
779
778
|
}
|
|
780
779
|
PolygonGeometry.fromPositions = function(options) {
|
|
781
|
-
options =
|
|
780
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
782
781
|
Check_default.defined("options.positions", options.positions);
|
|
783
782
|
const newOptions = {
|
|
784
783
|
polygonHierarchy: {
|
|
@@ -802,7 +801,7 @@ PolygonGeometry.fromPositions = function(options) {
|
|
|
802
801
|
PolygonGeometry.pack = function(value, array, startingIndex) {
|
|
803
802
|
Check_default.typeOf.object("value", value);
|
|
804
803
|
Check_default.defined("array", array);
|
|
805
|
-
startingIndex =
|
|
804
|
+
startingIndex = startingIndex ?? 0;
|
|
806
805
|
startingIndex = PolygonGeometryLibrary_default.packPolygonHierarchy(
|
|
807
806
|
value._polygonHierarchy,
|
|
808
807
|
array,
|
|
@@ -822,7 +821,7 @@ PolygonGeometry.pack = function(value, array, startingIndex) {
|
|
|
822
821
|
array[startingIndex++] = value._closeTop ? 1 : 0;
|
|
823
822
|
array[startingIndex++] = value._closeBottom ? 1 : 0;
|
|
824
823
|
array[startingIndex++] = value._shadowVolume ? 1 : 0;
|
|
825
|
-
array[startingIndex++] =
|
|
824
|
+
array[startingIndex++] = value._offsetAttribute ?? -1;
|
|
826
825
|
array[startingIndex++] = value._arcType;
|
|
827
826
|
if (defined_default(value._textureCoordinates)) {
|
|
828
827
|
startingIndex = PolygonGeometryLibrary_default.packPolygonHierarchy(
|
|
@@ -844,7 +843,7 @@ var dummyOptions = {
|
|
|
844
843
|
};
|
|
845
844
|
PolygonGeometry.unpack = function(array, startingIndex, result) {
|
|
846
845
|
Check_default.defined("array", array);
|
|
847
|
-
startingIndex =
|
|
846
|
+
startingIndex = startingIndex ?? 0;
|
|
848
847
|
const polygonHierarchy = PolygonGeometryLibrary_default.unpackPolygonHierarchy(
|
|
849
848
|
array,
|
|
850
849
|
startingIndex,
|
|
@@ -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,70 +25,72 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
PolygonGeometryLibrary_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-E6CYGUJI.js";
|
|
29
29
|
import {
|
|
30
30
|
ArcType_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UXJ6J5L7.js";
|
|
32
32
|
import {
|
|
33
33
|
GeometryInstance_default
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-Q4CXGW74.js";
|
|
35
35
|
import {
|
|
36
36
|
GeometryPipeline_default
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-HW54WHGM.js";
|
|
38
|
+
import "./chunk-4K3V5CGW.js";
|
|
39
|
+
import "./chunk-5ISZ6NJD.js";
|
|
40
40
|
import {
|
|
41
41
|
GeometryOffsetAttribute_default
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7VUS3FVE.js";
|
|
43
43
|
import {
|
|
44
44
|
EllipsoidTangentPlane_default
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-4YNRIEQ6.js";
|
|
46
|
+
import "./chunk-MFUC3D5C.js";
|
|
47
47
|
import {
|
|
48
48
|
PolygonPipeline_default,
|
|
49
49
|
WindingOrder_default
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-6VWXYSMH.js";
|
|
51
|
+
import "./chunk-FWYDLSVQ.js";
|
|
52
|
+
import "./chunk-BVMRWGOK.js";
|
|
53
|
+
import "./chunk-BE2N56VZ.js";
|
|
54
|
+
import "./chunk-KOTWWQN7.js";
|
|
55
55
|
import {
|
|
56
56
|
IndexDatatype_default
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-T6JS4BRN.js";
|
|
58
58
|
import {
|
|
59
59
|
GeometryAttributes_default
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-OMMRNMXF.js";
|
|
61
61
|
import {
|
|
62
62
|
GeometryAttribute_default,
|
|
63
63
|
Geometry_default,
|
|
64
64
|
PrimitiveType_default
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-7AMRE57Q.js";
|
|
66
66
|
import {
|
|
67
67
|
BoundingSphere_default
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-ODZYB26X.js";
|
|
69
|
+
import "./chunk-ANOA7E7F.js";
|
|
70
|
+
import "./chunk-BR3BPM64.js";
|
|
71
|
+
import "./chunk-OEHJY463.js";
|
|
70
72
|
import {
|
|
71
73
|
ComponentDatatype_default
|
|
72
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-C5BO2JCG.js";
|
|
75
|
+
import "./chunk-D3QIW4DH.js";
|
|
76
|
+
import "./chunk-T27NNXEU.js";
|
|
73
77
|
import {
|
|
74
|
-
Cartesian3_default,
|
|
75
78
|
Ellipsoid_default
|
|
76
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-M6IXKBC7.js";
|
|
77
80
|
import {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
import "./chunk-I73Q3AG7.js";
|
|
81
|
+
Cartesian3_default,
|
|
82
|
+
Frozen_default
|
|
83
|
+
} from "./chunk-J4PISUNT.js";
|
|
82
84
|
import {
|
|
83
|
-
|
|
84
|
-
} from "./chunk-
|
|
85
|
+
Math_default
|
|
86
|
+
} from "./chunk-VQH2YXO2.js";
|
|
85
87
|
import {
|
|
86
88
|
Check_default,
|
|
87
89
|
DeveloperError_default
|
|
88
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
89
91
|
import {
|
|
90
92
|
defined_default
|
|
91
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-MRMNELAH.js";
|
|
92
94
|
|
|
93
95
|
// packages/engine/Source/Core/PolygonOutlineGeometry.js
|
|
94
96
|
var createGeometryFromPositionsPositions = [];
|
|
@@ -311,16 +313,13 @@ function PolygonOutlineGeometry(options) {
|
|
|
311
313
|
);
|
|
312
314
|
}
|
|
313
315
|
const polygonHierarchy = options.polygonHierarchy;
|
|
314
|
-
const ellipsoid =
|
|
315
|
-
const granularity =
|
|
316
|
-
|
|
317
|
-
Math_default.RADIANS_PER_DEGREE
|
|
318
|
-
);
|
|
319
|
-
const perPositionHeight = defaultValue_default(options.perPositionHeight, false);
|
|
316
|
+
const ellipsoid = options.ellipsoid ?? Ellipsoid_default.default;
|
|
317
|
+
const granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
|
|
318
|
+
const perPositionHeight = options.perPositionHeight ?? false;
|
|
320
319
|
const perPositionHeightExtrude = perPositionHeight && defined_default(options.extrudedHeight);
|
|
321
|
-
const arcType =
|
|
322
|
-
let height =
|
|
323
|
-
let extrudedHeight =
|
|
320
|
+
const arcType = options.arcType ?? ArcType_default.GEODESIC;
|
|
321
|
+
let height = options.height ?? 0;
|
|
322
|
+
let extrudedHeight = options.extrudedHeight ?? height;
|
|
324
323
|
if (!perPositionHeightExtrude) {
|
|
325
324
|
const h = Math.max(height, extrudedHeight);
|
|
326
325
|
extrudedHeight = Math.min(height, extrudedHeight);
|
|
@@ -344,7 +343,7 @@ function PolygonOutlineGeometry(options) {
|
|
|
344
343
|
PolygonOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
345
344
|
Check_default.typeOf.object("value", value);
|
|
346
345
|
Check_default.defined("array", array);
|
|
347
|
-
startingIndex =
|
|
346
|
+
startingIndex = startingIndex ?? 0;
|
|
348
347
|
startingIndex = PolygonGeometryLibrary_default.packPolygonHierarchy(
|
|
349
348
|
value._polygonHierarchy,
|
|
350
349
|
array,
|
|
@@ -359,7 +358,7 @@ PolygonOutlineGeometry.pack = function(value, array, startingIndex) {
|
|
|
359
358
|
array[startingIndex++] = value._perPositionHeightExtrude ? 1 : 0;
|
|
360
359
|
array[startingIndex++] = value._perPositionHeight ? 1 : 0;
|
|
361
360
|
array[startingIndex++] = value._arcType;
|
|
362
|
-
array[startingIndex++] =
|
|
361
|
+
array[startingIndex++] = value._offsetAttribute ?? -1;
|
|
363
362
|
array[startingIndex] = value.packedLength;
|
|
364
363
|
return array;
|
|
365
364
|
};
|
|
@@ -369,7 +368,7 @@ var dummyOptions = {
|
|
|
369
368
|
};
|
|
370
369
|
PolygonOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
371
370
|
Check_default.defined("array", array);
|
|
372
|
-
startingIndex =
|
|
371
|
+
startingIndex = startingIndex ?? 0;
|
|
373
372
|
const polygonHierarchy = PolygonGeometryLibrary_default.unpackPolygonHierarchy(
|
|
374
373
|
array,
|
|
375
374
|
startingIndex,
|
|
@@ -403,7 +402,7 @@ PolygonOutlineGeometry.unpack = function(array, startingIndex, result) {
|
|
|
403
402
|
return result;
|
|
404
403
|
};
|
|
405
404
|
PolygonOutlineGeometry.fromPositions = function(options) {
|
|
406
|
-
options =
|
|
405
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
407
406
|
Check_default.defined("options.positions", options.positions);
|
|
408
407
|
const newOptions = {
|
|
409
408
|
polygonHierarchy: {
|
|
@@ -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,60 +25,62 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
Color_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-IHYAI7GF.js";
|
|
29
29
|
import {
|
|
30
30
|
ArcType_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UXJ6J5L7.js";
|
|
32
32
|
import {
|
|
33
33
|
PolylinePipeline_default
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-EIZ23IOX.js";
|
|
35
|
+
import "./chunk-KLUL2SOE.js";
|
|
36
36
|
import {
|
|
37
37
|
VertexFormat_default
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OZ3CQDO3.js";
|
|
39
39
|
import {
|
|
40
40
|
arrayRemoveDuplicates_default
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-FWYDLSVQ.js";
|
|
42
|
+
import "./chunk-BVMRWGOK.js";
|
|
43
|
+
import "./chunk-BE2N56VZ.js";
|
|
44
|
+
import "./chunk-KOTWWQN7.js";
|
|
45
45
|
import {
|
|
46
46
|
IndexDatatype_default
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-T6JS4BRN.js";
|
|
48
48
|
import {
|
|
49
49
|
GeometryAttributes_default
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-OMMRNMXF.js";
|
|
51
51
|
import {
|
|
52
52
|
GeometryAttribute_default,
|
|
53
53
|
GeometryType_default,
|
|
54
54
|
Geometry_default,
|
|
55
55
|
PrimitiveType_default
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-7AMRE57Q.js";
|
|
57
57
|
import {
|
|
58
58
|
BoundingSphere_default
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-ODZYB26X.js";
|
|
60
|
+
import "./chunk-ANOA7E7F.js";
|
|
61
|
+
import "./chunk-BR3BPM64.js";
|
|
62
|
+
import "./chunk-OEHJY463.js";
|
|
61
63
|
import {
|
|
62
64
|
ComponentDatatype_default
|
|
63
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-C5BO2JCG.js";
|
|
66
|
+
import "./chunk-D3QIW4DH.js";
|
|
67
|
+
import "./chunk-T27NNXEU.js";
|
|
64
68
|
import {
|
|
65
|
-
Cartesian3_default,
|
|
66
69
|
Ellipsoid_default
|
|
67
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-M6IXKBC7.js";
|
|
68
71
|
import {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
import "./chunk-I73Q3AG7.js";
|
|
72
|
+
Cartesian3_default,
|
|
73
|
+
Frozen_default
|
|
74
|
+
} from "./chunk-J4PISUNT.js";
|
|
73
75
|
import {
|
|
74
|
-
|
|
75
|
-
} from "./chunk-
|
|
76
|
+
Math_default
|
|
77
|
+
} from "./chunk-VQH2YXO2.js";
|
|
76
78
|
import {
|
|
77
79
|
DeveloperError_default
|
|
78
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
79
81
|
import {
|
|
80
82
|
defined_default
|
|
81
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-MRMNELAH.js";
|
|
82
84
|
|
|
83
85
|
// packages/engine/Source/Core/PolylineGeometry.js
|
|
84
86
|
var scratchInterpolateColorsArray = [];
|
|
@@ -115,11 +117,11 @@ function interpolateColors(p0, p1, color0, color1, numPoints) {
|
|
|
115
117
|
return colors;
|
|
116
118
|
}
|
|
117
119
|
function PolylineGeometry(options) {
|
|
118
|
-
options =
|
|
120
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
119
121
|
const positions = options.positions;
|
|
120
122
|
const colors = options.colors;
|
|
121
|
-
const width =
|
|
122
|
-
const colorsPerVertex =
|
|
123
|
+
const width = options.width ?? 1;
|
|
124
|
+
const colorsPerVertex = options.colorsPerVertex ?? false;
|
|
123
125
|
if (!defined_default(positions) || positions.length < 2) {
|
|
124
126
|
throw new DeveloperError_default("At least two positions are required.");
|
|
125
127
|
}
|
|
@@ -134,16 +136,11 @@ function PolylineGeometry(options) {
|
|
|
134
136
|
this._width = width;
|
|
135
137
|
this._colorsPerVertex = colorsPerVertex;
|
|
136
138
|
this._vertexFormat = VertexFormat_default.clone(
|
|
137
|
-
|
|
138
|
-
);
|
|
139
|
-
this._arcType = defaultValue_default(options.arcType, ArcType_default.GEODESIC);
|
|
140
|
-
this._granularity = defaultValue_default(
|
|
141
|
-
options.granularity,
|
|
142
|
-
Math_default.RADIANS_PER_DEGREE
|
|
143
|
-
);
|
|
144
|
-
this._ellipsoid = Ellipsoid_default.clone(
|
|
145
|
-
defaultValue_default(options.ellipsoid, Ellipsoid_default.default)
|
|
139
|
+
options.vertexFormat ?? VertexFormat_default.DEFAULT
|
|
146
140
|
);
|
|
141
|
+
this._arcType = options.arcType ?? ArcType_default.GEODESIC;
|
|
142
|
+
this._granularity = options.granularity ?? Math_default.RADIANS_PER_DEGREE;
|
|
143
|
+
this._ellipsoid = Ellipsoid_default.clone(options.ellipsoid ?? Ellipsoid_default.default);
|
|
147
144
|
this._workerName = "createPolylineGeometry";
|
|
148
145
|
let numComponents = 1 + positions.length * Cartesian3_default.packedLength;
|
|
149
146
|
numComponents += defined_default(colors) ? 1 + colors.length * Color_default.packedLength : 1;
|
|
@@ -156,7 +153,7 @@ PolylineGeometry.pack = function(value, array, startingIndex) {
|
|
|
156
153
|
if (!defined_default(array)) {
|
|
157
154
|
throw new DeveloperError_default("array is required");
|
|
158
155
|
}
|
|
159
|
-
startingIndex =
|
|
156
|
+
startingIndex = startingIndex ?? 0;
|
|
160
157
|
let i;
|
|
161
158
|
const positions = value._positions;
|
|
162
159
|
let length = positions.length;
|
|
@@ -196,7 +193,7 @@ PolylineGeometry.unpack = function(array, startingIndex, result) {
|
|
|
196
193
|
if (!defined_default(array)) {
|
|
197
194
|
throw new DeveloperError_default("array is required");
|
|
198
195
|
}
|
|
199
|
-
startingIndex =
|
|
196
|
+
startingIndex = startingIndex ?? 0;
|
|
200
197
|
let i;
|
|
201
198
|
let length = array[startingIndex++];
|
|
202
199
|
const positions = new Array(length);
|