qd-changjing/public/static/Build/CesiumUnminified/Workers/PrimitivePipeline-ffc4dd1c....

1 line
56 KiB
Plaintext

{"version":3,"file":"PrimitivePipeline-ffc4dd1c.js","sources":["../../../../Source/Core/OffsetGeometryInstanceAttribute.js","../../../../Source/Scene/PrimitivePipeline.js"],"sourcesContent":["import Check from \"./Check.js\";\nimport ComponentDatatype from \"./ComponentDatatype.js\";\nimport defaultValue from \"./defaultValue.js\";\nimport defined from \"./defined.js\";\n\n/**\n * Value and type information for per-instance geometry attribute that determines the geometry instance offset\n *\n * @alias OffsetGeometryInstanceAttribute\n * @constructor\n *\n * @param {Number} [x=0] The x translation\n * @param {Number} [y=0] The y translation\n * @param {Number} [z=0] The z translation\n *\n * @private\n *\n * @see GeometryInstance\n * @see GeometryInstanceAttribute\n */\nfunction OffsetGeometryInstanceAttribute(x, y, z) {\n x = defaultValue(x, 0);\n y = defaultValue(y, 0);\n z = defaultValue(z, 0);\n\n /**\n * The values for the attributes stored in a typed array.\n *\n * @type Float32Array\n */\n this.value = new Float32Array([x, y, z]);\n}\n\nObject.defineProperties(OffsetGeometryInstanceAttribute.prototype, {\n /**\n * The datatype of each component in the attribute, e.g., individual elements in\n * {@link OffsetGeometryInstanceAttribute#value}.\n *\n * @memberof OffsetGeometryInstanceAttribute.prototype\n *\n * @type {ComponentDatatype}\n * @readonly\n *\n * @default {@link ComponentDatatype.FLOAT}\n */\n componentDatatype: {\n get: function () {\n return ComponentDatatype.FLOAT;\n },\n },\n\n /**\n * The number of components in the attributes, i.e., {@link OffsetGeometryInstanceAttribute#value}.\n *\n * @memberof OffsetGeometryInstanceAttribute.prototype\n *\n * @type {Number}\n * @readonly\n *\n * @default 3\n */\n componentsPerAttribute: {\n get: function () {\n return 3;\n },\n },\n\n /**\n * When <code>true</code> and <code>componentDatatype</code> is an integer format,\n * indicate that the components should be mapped to the range [0, 1] (unsigned)\n * or [-1, 1] (signed) when they are accessed as floating-point for rendering.\n *\n * @memberof OffsetGeometryInstanceAttribute.prototype\n *\n * @type {Boolean}\n * @readonly\n *\n * @default false\n */\n normalize: {\n get: function () {\n return false;\n },\n },\n});\n\n/**\n * Creates a new {@link OffsetGeometryInstanceAttribute} instance given the provided an enabled flag and {@link DistanceDisplayCondition}.\n *\n * @param {Cartesian3} offset The cartesian offset\n * @returns {OffsetGeometryInstanceAttribute} The new {@link OffsetGeometryInstanceAttribute} instance.\n */\nOffsetGeometryInstanceAttribute.fromCartesian3 = function (offset) {\n //>>includeStart('debug', pragmas.debug);\n Check.defined(\"offset\", offset);\n //>>includeEnd('debug');\n\n return new OffsetGeometryInstanceAttribute(offset.x, offset.y, offset.z);\n};\n\n/**\n * Converts a distance display condition to a typed array that can be used to assign a distance display condition attribute.\n *\n * @param {Cartesian3} offset The cartesian offset\n * @param {Float32Array} [result] The array to store the result in, if undefined a new instance will be created.\n * @returns {Float32Array} The modified result parameter or a new instance if result was undefined.\n *\n * @example\n * const attributes = primitive.getGeometryInstanceAttributes('an id');\n * attributes.modelMatrix = Cesium.OffsetGeometryInstanceAttribute.toValue(modelMatrix, attributes.modelMatrix);\n */\nOffsetGeometryInstanceAttribute.toValue = function (offset, result) {\n //>>includeStart('debug', pragmas.debug);\n Check.defined(\"offset\", offset);\n //>>includeEnd('debug');\n\n if (!defined(result)) {\n result = new Float32Array([offset.x, offset.y, offset.z]);\n }\n\n result[0] = offset.x;\n result[1] = offset.y;\n result[2] = offset.z;\n return result;\n};\nexport default OffsetGeometryInstanceAttribute;\n","import BoundingSphere from \"../Core/BoundingSphere.js\";\nimport ComponentDatatype from \"../Core/ComponentDatatype.js\";\nimport defaultValue from \"../Core/defaultValue.js\";\nimport defined from \"../Core/defined.js\";\nimport DeveloperError from \"../Core/DeveloperError.js\";\nimport Ellipsoid from \"../Core/Ellipsoid.js\";\nimport GeographicProjection from \"../Core/GeographicProjection.js\";\nimport Geometry from \"../Core/Geometry.js\";\nimport GeometryAttribute from \"../Core/GeometryAttribute.js\";\nimport GeometryAttributes from \"../Core/GeometryAttributes.js\";\nimport GeometryPipeline from \"../Core/GeometryPipeline.js\";\nimport IndexDatatype from \"../Core/IndexDatatype.js\";\nimport Matrix4 from \"../Core/Matrix4.js\";\nimport OffsetGeometryInstanceAttribute from \"../Core/OffsetGeometryInstanceAttribute.js\";\nimport WebMercatorProjection from \"../Core/WebMercatorProjection.js\";\n\nfunction transformToWorldCoordinates(\n instances,\n primitiveModelMatrix,\n scene3DOnly\n) {\n let toWorld = !scene3DOnly;\n const length = instances.length;\n let i;\n\n if (!toWorld && length > 1) {\n const modelMatrix = instances[0].modelMatrix;\n\n for (i = 1; i < length; ++i) {\n if (!Matrix4.equals(modelMatrix, instances[i].modelMatrix)) {\n toWorld = true;\n break;\n }\n }\n }\n\n if (toWorld) {\n for (i = 0; i < length; ++i) {\n if (defined(instances[i].geometry)) {\n GeometryPipeline.transformToWorldCoordinates(instances[i]);\n }\n }\n } else {\n // Leave geometry in local coordinate system; auto update model-matrix.\n Matrix4.multiplyTransformation(\n primitiveModelMatrix,\n instances[0].modelMatrix,\n primitiveModelMatrix\n );\n }\n}\n\nfunction addGeometryBatchId(geometry, batchId) {\n const attributes = geometry.attributes;\n const positionAttr = attributes.position;\n const numberOfComponents =\n positionAttr.values.length / positionAttr.componentsPerAttribute;\n\n attributes.batchId = new GeometryAttribute({\n componentDatatype: ComponentDatatype.FLOAT,\n componentsPerAttribute: 1,\n values: new Float32Array(numberOfComponents),\n });\n\n const values = attributes.batchId.values;\n for (let j = 0; j < numberOfComponents; ++j) {\n values[j] = batchId;\n }\n}\n\nfunction addBatchIds(instances) {\n const length = instances.length;\n\n for (let i = 0; i < length; ++i) {\n const instance = instances[i];\n if (defined(instance.geometry)) {\n addGeometryBatchId(instance.geometry, i);\n } else if (\n defined(instance.westHemisphereGeometry) &&\n defined(instance.eastHemisphereGeometry)\n ) {\n addGeometryBatchId(instance.westHemisphereGeometry, i);\n addGeometryBatchId(instance.eastHemisphereGeometry, i);\n }\n }\n}\n\nfunction geometryPipeline(parameters) {\n const instances = parameters.instances;\n const projection = parameters.projection;\n const uintIndexSupport = parameters.elementIndexUintSupported;\n const scene3DOnly = parameters.scene3DOnly;\n const vertexCacheOptimize = parameters.vertexCacheOptimize;\n const compressVertices = parameters.compressVertices;\n const modelMatrix = parameters.modelMatrix;\n\n let i;\n let geometry;\n let primitiveType;\n let length = instances.length;\n\n for (i = 0; i < length; ++i) {\n if (defined(instances[i].geometry)) {\n primitiveType = instances[i].geometry.primitiveType;\n break;\n }\n }\n\n //>>includeStart('debug', pragmas.debug);\n for (i = 1; i < length; ++i) {\n if (\n defined(instances[i].geometry) &&\n instances[i].geometry.primitiveType !== primitiveType\n ) {\n throw new DeveloperError(\n \"All instance geometries must have the same primitiveType.\"\n );\n }\n }\n //>>includeEnd('debug');\n\n // Unify to world coordinates before combining.\n transformToWorldCoordinates(instances, modelMatrix, scene3DOnly);\n\n // Clip to IDL\n if (!scene3DOnly) {\n for (i = 0; i < length; ++i) {\n if (defined(instances[i].geometry)) {\n GeometryPipeline.splitLongitude(instances[i]);\n }\n }\n }\n\n addBatchIds(instances);\n\n // Optimize for vertex shader caches\n if (vertexCacheOptimize) {\n for (i = 0; i < length; ++i) {\n const instance = instances[i];\n if (defined(instance.geometry)) {\n GeometryPipeline.reorderForPostVertexCache(instance.geometry);\n GeometryPipeline.reorderForPreVertexCache(instance.geometry);\n } else if (\n defined(instance.westHemisphereGeometry) &&\n defined(instance.eastHemisphereGeometry)\n ) {\n GeometryPipeline.reorderForPostVertexCache(\n instance.westHemisphereGeometry\n );\n GeometryPipeline.reorderForPreVertexCache(\n instance.westHemisphereGeometry\n );\n\n GeometryPipeline.reorderForPostVertexCache(\n instance.eastHemisphereGeometry\n );\n GeometryPipeline.reorderForPreVertexCache(\n instance.eastHemisphereGeometry\n );\n }\n }\n }\n\n // Combine into single geometry for better rendering performance.\n let geometries = GeometryPipeline.combineInstances(instances);\n\n length = geometries.length;\n for (i = 0; i < length; ++i) {\n geometry = geometries[i];\n\n // Split positions for GPU RTE\n const attributes = geometry.attributes;\n if (!scene3DOnly) {\n for (const name in attributes) {\n if (\n attributes.hasOwnProperty(name) &&\n attributes[name].componentDatatype === ComponentDatatype.DOUBLE\n ) {\n const name3D = `${name}3D`;\n const name2D = `${name}2D`;\n\n // Compute 2D positions\n GeometryPipeline.projectTo2D(\n geometry,\n name,\n name3D,\n name2D,\n projection\n );\n if (defined(geometry.boundingSphere) && name === \"position\") {\n geometry.boundingSphereCV = BoundingSphere.fromVertices(\n geometry.attributes.position2D.values\n );\n }\n\n GeometryPipeline.encodeAttribute(\n geometry,\n name3D,\n `${name3D}High`,\n `${name3D}Low`\n );\n GeometryPipeline.encodeAttribute(\n geometry,\n name2D,\n `${name2D}High`,\n `${name2D}Low`\n );\n }\n }\n } else {\n for (const name in attributes) {\n if (\n attributes.hasOwnProperty(name) &&\n attributes[name].componentDatatype === ComponentDatatype.DOUBLE\n ) {\n GeometryPipeline.encodeAttribute(\n geometry,\n name,\n `${name}3DHigh`,\n `${name}3DLow`\n );\n }\n }\n }\n\n // oct encode and pack normals, compress texture coordinates\n if (compressVertices) {\n GeometryPipeline.compressVertices(geometry);\n }\n }\n\n if (!uintIndexSupport) {\n // Break into multiple geometries to fit within unsigned short indices if needed\n let splitGeometries = [];\n length = geometries.length;\n for (i = 0; i < length; ++i) {\n geometry = geometries[i];\n splitGeometries = splitGeometries.concat(\n GeometryPipeline.fitToUnsignedShortIndices(geometry)\n );\n }\n\n geometries = splitGeometries;\n }\n\n return geometries;\n}\n\nfunction createPickOffsets(instances, geometryName, geometries, pickOffsets) {\n let offset;\n let indexCount;\n let geometryIndex;\n\n const offsetIndex = pickOffsets.length - 1;\n if (offsetIndex >= 0) {\n const pickOffset = pickOffsets[offsetIndex];\n offset = pickOffset.offset + pickOffset.count;\n geometryIndex = pickOffset.index;\n indexCount = geometries[geometryIndex].indices.length;\n } else {\n offset = 0;\n geometryIndex = 0;\n indexCount = geometries[geometryIndex].indices.length;\n }\n\n const length = instances.length;\n for (let i = 0; i < length; ++i) {\n const instance = instances[i];\n const geometry = instance[geometryName];\n if (!defined(geometry)) {\n continue;\n }\n\n const count = geometry.indices.length;\n\n if (offset + count > indexCount) {\n offset = 0;\n indexCount = geometries[++geometryIndex].indices.length;\n }\n\n pickOffsets.push({\n index: geometryIndex,\n offset: offset,\n count: count,\n });\n offset += count;\n }\n}\n\nfunction createInstancePickOffsets(instances, geometries) {\n const pickOffsets = [];\n createPickOffsets(instances, \"geometry\", geometries, pickOffsets);\n createPickOffsets(\n instances,\n \"westHemisphereGeometry\",\n geometries,\n pickOffsets\n );\n createPickOffsets(\n instances,\n \"eastHemisphereGeometry\",\n geometries,\n pickOffsets\n );\n return pickOffsets;\n}\n\n/**\n * @private\n */\nconst PrimitivePipeline = {};\n\n/**\n * @private\n */\nPrimitivePipeline.combineGeometry = function (parameters) {\n let geometries;\n let attributeLocations;\n const instances = parameters.instances;\n const length = instances.length;\n let pickOffsets;\n\n let offsetInstanceExtend;\n let hasOffset = false;\n if (length > 0) {\n geometries = geometryPipeline(parameters);\n if (geometries.length > 0) {\n attributeLocations = GeometryPipeline.createAttributeLocations(\n geometries[0]\n );\n if (parameters.createPickOffsets) {\n pickOffsets = createInstancePickOffsets(instances, geometries);\n }\n }\n if (\n defined(instances[0].attributes) &&\n defined(instances[0].attributes.offset)\n ) {\n offsetInstanceExtend = new Array(length);\n hasOffset = true;\n }\n }\n\n const boundingSpheres = new Array(length);\n const boundingSpheresCV = new Array(length);\n for (let i = 0; i < length; ++i) {\n const instance = instances[i];\n const geometry = instance.geometry;\n if (defined(geometry)) {\n boundingSpheres[i] = geometry.boundingSphere;\n boundingSpheresCV[i] = geometry.boundingSphereCV;\n if (hasOffset) {\n offsetInstanceExtend[i] = instance.geometry.offsetAttribute;\n }\n }\n\n const eastHemisphereGeometry = instance.eastHemisphereGeometry;\n const westHemisphereGeometry = instance.westHemisphereGeometry;\n if (defined(eastHemisphereGeometry) && defined(westHemisphereGeometry)) {\n if (\n defined(eastHemisphereGeometry.boundingSphere) &&\n defined(westHemisphereGeometry.boundingSphere)\n ) {\n boundingSpheres[i] = BoundingSphere.union(\n eastHemisphereGeometry.boundingSphere,\n westHemisphereGeometry.boundingSphere\n );\n }\n if (\n defined(eastHemisphereGeometry.boundingSphereCV) &&\n defined(westHemisphereGeometry.boundingSphereCV)\n ) {\n boundingSpheresCV[i] = BoundingSphere.union(\n eastHemisphereGeometry.boundingSphereCV,\n westHemisphereGeometry.boundingSphereCV\n );\n }\n }\n }\n\n return {\n geometries: geometries,\n modelMatrix: parameters.modelMatrix,\n attributeLocations: attributeLocations,\n pickOffsets: pickOffsets,\n offsetInstanceExtend: offsetInstanceExtend,\n boundingSpheres: boundingSpheres,\n boundingSpheresCV: boundingSpheresCV,\n };\n};\n\nfunction transferGeometry(geometry, transferableObjects) {\n const attributes = geometry.attributes;\n for (const name in attributes) {\n if (attributes.hasOwnProperty(name)) {\n const attribute = attributes[name];\n\n if (defined(attribute) && defined(attribute.values)) {\n transferableObjects.push(attribute.values.buffer);\n }\n }\n }\n\n if (defined(geometry.indices)) {\n transferableObjects.push(geometry.indices.buffer);\n }\n}\n\nfunction transferGeometries(geometries, transferableObjects) {\n const length = geometries.length;\n for (let i = 0; i < length; ++i) {\n transferGeometry(geometries[i], transferableObjects);\n }\n}\n\n// This function was created by simplifying packCreateGeometryResults into a count-only operation.\nfunction countCreateGeometryResults(items) {\n let count = 1;\n const length = items.length;\n for (let i = 0; i < length; i++) {\n const geometry = items[i];\n ++count;\n\n if (!defined(geometry)) {\n continue;\n }\n\n const attributes = geometry.attributes;\n\n count +=\n 7 +\n 2 * BoundingSphere.packedLength +\n (defined(geometry.indices) ? geometry.indices.length : 0);\n\n for (const property in attributes) {\n if (\n attributes.hasOwnProperty(property) &&\n defined(attributes[property])\n ) {\n const attribute = attributes[property];\n count += 5 + attribute.values.length;\n }\n }\n }\n\n return count;\n}\n\n/**\n * @private\n */\nPrimitivePipeline.packCreateGeometryResults = function (\n items,\n transferableObjects\n) {\n const packedData = new Float64Array(countCreateGeometryResults(items));\n const stringTable = [];\n const stringHash = {};\n\n const length = items.length;\n let count = 0;\n packedData[count++] = length;\n for (let i = 0; i < length; i++) {\n const geometry = items[i];\n\n const validGeometry = defined(geometry);\n packedData[count++] = validGeometry ? 1.0 : 0.0;\n\n if (!validGeometry) {\n continue;\n }\n\n packedData[count++] = geometry.primitiveType;\n packedData[count++] = geometry.geometryType;\n packedData[count++] = defaultValue(geometry.offsetAttribute, -1);\n\n const validBoundingSphere = defined(geometry.boundingSphere) ? 1.0 : 0.0;\n packedData[count++] = validBoundingSphere;\n if (validBoundingSphere) {\n BoundingSphere.pack(geometry.boundingSphere, packedData, count);\n }\n\n count += BoundingSphere.packedLength;\n\n const validBoundingSphereCV = defined(geometry.boundingSphereCV)\n ? 1.0\n : 0.0;\n packedData[count++] = validBoundingSphereCV;\n if (validBoundingSphereCV) {\n BoundingSphere.pack(geometry.boundingSphereCV, packedData, count);\n }\n\n count += BoundingSphere.packedLength;\n\n const attributes = geometry.attributes;\n const attributesToWrite = [];\n for (const property in attributes) {\n if (\n attributes.hasOwnProperty(property) &&\n defined(attributes[property])\n ) {\n attributesToWrite.push(property);\n if (!defined(stringHash[property])) {\n stringHash[property] = stringTable.length;\n stringTable.push(property);\n }\n }\n }\n\n packedData[count++] = attributesToWrite.length;\n for (let q = 0; q < attributesToWrite.length; q++) {\n const name = attributesToWrite[q];\n const attribute = attributes[name];\n packedData[count++] = stringHash[name];\n packedData[count++] = attribute.componentDatatype;\n packedData[count++] = attribute.componentsPerAttribute;\n packedData[count++] = attribute.normalize ? 1 : 0;\n packedData[count++] = attribute.values.length;\n packedData.set(attribute.values, count);\n count += attribute.values.length;\n }\n\n const indicesLength = defined(geometry.indices)\n ? geometry.indices.length\n : 0;\n packedData[count++] = indicesLength;\n\n if (indicesLength > 0) {\n packedData.set(geometry.indices, count);\n count += indicesLength;\n }\n }\n\n transferableObjects.push(packedData.buffer);\n\n return {\n stringTable: stringTable,\n packedData: packedData,\n };\n};\n\n/**\n * @private\n */\nPrimitivePipeline.unpackCreateGeometryResults = function (\n createGeometryResult\n) {\n const stringTable = createGeometryResult.stringTable;\n const packedGeometry = createGeometryResult.packedData;\n\n let i;\n const result = new Array(packedGeometry[0]);\n let resultIndex = 0;\n\n let packedGeometryIndex = 1;\n while (packedGeometryIndex < packedGeometry.length) {\n const valid = packedGeometry[packedGeometryIndex++] === 1.0;\n if (!valid) {\n result[resultIndex++] = undefined;\n continue;\n }\n\n const primitiveType = packedGeometry[packedGeometryIndex++];\n const geometryType = packedGeometry[packedGeometryIndex++];\n let offsetAttribute = packedGeometry[packedGeometryIndex++];\n if (offsetAttribute === -1) {\n offsetAttribute = undefined;\n }\n\n let boundingSphere;\n let boundingSphereCV;\n\n const validBoundingSphere = packedGeometry[packedGeometryIndex++] === 1.0;\n if (validBoundingSphere) {\n boundingSphere = BoundingSphere.unpack(\n packedGeometry,\n packedGeometryIndex\n );\n }\n\n packedGeometryIndex += BoundingSphere.packedLength;\n\n const validBoundingSphereCV = packedGeometry[packedGeometryIndex++] === 1.0;\n if (validBoundingSphereCV) {\n boundingSphereCV = BoundingSphere.unpack(\n packedGeometry,\n packedGeometryIndex\n );\n }\n\n packedGeometryIndex += BoundingSphere.packedLength;\n\n let length;\n let values;\n let componentsPerAttribute;\n const attributes = new GeometryAttributes();\n const numAttributes = packedGeometry[packedGeometryIndex++];\n for (i = 0; i < numAttributes; i++) {\n const name = stringTable[packedGeometry[packedGeometryIndex++]];\n const componentDatatype = packedGeometry[packedGeometryIndex++];\n componentsPerAttribute = packedGeometry[packedGeometryIndex++];\n const normalize = packedGeometry[packedGeometryIndex++] !== 0;\n\n length = packedGeometry[packedGeometryIndex++];\n values = ComponentDatatype.createTypedArray(componentDatatype, length);\n for (let valuesIndex = 0; valuesIndex < length; valuesIndex++) {\n values[valuesIndex] = packedGeometry[packedGeometryIndex++];\n }\n\n attributes[name] = new GeometryAttribute({\n componentDatatype: componentDatatype,\n componentsPerAttribute: componentsPerAttribute,\n normalize: normalize,\n values: values,\n });\n }\n\n let indices;\n length = packedGeometry[packedGeometryIndex++];\n\n if (length > 0) {\n const numberOfVertices = values.length / componentsPerAttribute;\n indices = IndexDatatype.createTypedArray(numberOfVertices, length);\n for (i = 0; i < length; i++) {\n indices[i] = packedGeometry[packedGeometryIndex++];\n }\n }\n\n result[resultIndex++] = new Geometry({\n primitiveType: primitiveType,\n geometryType: geometryType,\n boundingSphere: boundingSphere,\n boundingSphereCV: boundingSphereCV,\n indices: indices,\n attributes: attributes,\n offsetAttribute: offsetAttribute,\n });\n }\n\n return result;\n};\n\nfunction packInstancesForCombine(instances, transferableObjects) {\n const length = instances.length;\n const packedData = new Float64Array(1 + length * 19);\n let count = 0;\n packedData[count++] = length;\n for (let i = 0; i < length; i++) {\n const instance = instances[i];\n Matrix4.pack(instance.modelMatrix, packedData, count);\n count += Matrix4.packedLength;\n if (defined(instance.attributes) && defined(instance.attributes.offset)) {\n const values = instance.attributes.offset.value;\n packedData[count] = values[0];\n packedData[count + 1] = values[1];\n packedData[count + 2] = values[2];\n }\n count += 3;\n }\n transferableObjects.push(packedData.buffer);\n\n return packedData;\n}\n\nfunction unpackInstancesForCombine(data) {\n const packedInstances = data;\n const result = new Array(packedInstances[0]);\n let count = 0;\n\n let i = 1;\n while (i < packedInstances.length) {\n const modelMatrix = Matrix4.unpack(packedInstances, i);\n let attributes;\n i += Matrix4.packedLength;\n if (defined(packedInstances[i])) {\n attributes = {\n offset: new OffsetGeometryInstanceAttribute(\n packedInstances[i],\n packedInstances[i + 1],\n packedInstances[i + 2]\n ),\n };\n }\n i += 3;\n\n result[count++] = {\n modelMatrix: modelMatrix,\n attributes: attributes,\n };\n }\n\n return result;\n}\n\n/**\n * @private\n */\nPrimitivePipeline.packCombineGeometryParameters = function (\n parameters,\n transferableObjects\n) {\n const createGeometryResults = parameters.createGeometryResults;\n const length = createGeometryResults.length;\n\n for (let i = 0; i < length; i++) {\n transferableObjects.push(createGeometryResults[i].packedData.buffer);\n }\n\n return {\n createGeometryResults: parameters.createGeometryResults,\n packedInstances: packInstancesForCombine(\n parameters.instances,\n transferableObjects\n ),\n ellipsoid: parameters.ellipsoid,\n isGeographic: parameters.projection instanceof GeographicProjection,\n elementIndexUintSupported: parameters.elementIndexUintSupported,\n scene3DOnly: parameters.scene3DOnly,\n vertexCacheOptimize: parameters.vertexCacheOptimize,\n compressVertices: parameters.compressVertices,\n modelMatrix: parameters.modelMatrix,\n createPickOffsets: parameters.createPickOffsets,\n };\n};\n\n/**\n * @private\n */\nPrimitivePipeline.unpackCombineGeometryParameters = function (\n packedParameters\n) {\n const instances = unpackInstancesForCombine(packedParameters.packedInstances);\n const createGeometryResults = packedParameters.createGeometryResults;\n const length = createGeometryResults.length;\n let instanceIndex = 0;\n\n for (let resultIndex = 0; resultIndex < length; resultIndex++) {\n const geometries = PrimitivePipeline.unpackCreateGeometryResults(\n createGeometryResults[resultIndex]\n );\n const geometriesLength = geometries.length;\n for (\n let geometryIndex = 0;\n geometryIndex < geometriesLength;\n geometryIndex++\n ) {\n const geometry = geometries[geometryIndex];\n const instance = instances[instanceIndex];\n instance.geometry = geometry;\n ++instanceIndex;\n }\n }\n\n const ellipsoid = Ellipsoid.clone(packedParameters.ellipsoid);\n const projection = packedParameters.isGeographic\n ? new GeographicProjection(ellipsoid)\n : new WebMercatorProjection(ellipsoid);\n\n return {\n instances: instances,\n ellipsoid: ellipsoid,\n projection: projection,\n elementIndexUintSupported: packedParameters.elementIndexUintSupported,\n scene3DOnly: packedParameters.scene3DOnly,\n vertexCacheOptimize: packedParameters.vertexCacheOptimize,\n compressVertices: packedParameters.compressVertices,\n modelMatrix: Matrix4.clone(packedParameters.modelMatrix),\n createPickOffsets: packedParameters.createPickOffsets,\n };\n};\n\nfunction packBoundingSpheres(boundingSpheres) {\n const length = boundingSpheres.length;\n const bufferLength = 1 + (BoundingSphere.packedLength + 1) * length;\n const buffer = new Float32Array(bufferLength);\n\n let bufferIndex = 0;\n buffer[bufferIndex++] = length;\n\n for (let i = 0; i < length; ++i) {\n const bs = boundingSpheres[i];\n if (!defined(bs)) {\n buffer[bufferIndex++] = 0.0;\n } else {\n buffer[bufferIndex++] = 1.0;\n BoundingSphere.pack(boundingSpheres[i], buffer, bufferIndex);\n }\n bufferIndex += BoundingSphere.packedLength;\n }\n\n return buffer;\n}\n\nfunction unpackBoundingSpheres(buffer) {\n const result = new Array(buffer[0]);\n let count = 0;\n\n let i = 1;\n while (i < buffer.length) {\n if (buffer[i++] === 1.0) {\n result[count] = BoundingSphere.unpack(buffer, i);\n }\n ++count;\n i += BoundingSphere.packedLength;\n }\n\n return result;\n}\n\n/**\n * @private\n */\nPrimitivePipeline.packCombineGeometryResults = function (\n results,\n transferableObjects\n) {\n if (defined(results.geometries)) {\n transferGeometries(results.geometries, transferableObjects);\n }\n\n const packedBoundingSpheres = packBoundingSpheres(results.boundingSpheres);\n const packedBoundingSpheresCV = packBoundingSpheres(\n results.boundingSpheresCV\n );\n transferableObjects.push(\n packedBoundingSpheres.buffer,\n packedBoundingSpheresCV.buffer\n );\n\n return {\n geometries: results.geometries,\n attributeLocations: results.attributeLocations,\n modelMatrix: results.modelMatrix,\n pickOffsets: results.pickOffsets,\n offsetInstanceExtend: results.offsetInstanceExtend,\n boundingSpheres: packedBoundingSpheres,\n boundingSpheresCV: packedBoundingSpheresCV,\n };\n};\n\n/**\n * @private\n */\nPrimitivePipeline.unpackCombineGeometryResults = function (packedResult) {\n return {\n geometries: packedResult.geometries,\n attributeLocations: packedResult.attributeLocations,\n modelMatrix: packedResult.modelMatrix,\n pickOffsets: packedResult.pickOffsets,\n offsetInstanceExtend: packedResult.offsetInstanceExtend,\n boundingSpheres: unpackBoundingSpheres(packedResult.boundingSpheres),\n boundingSpheresCV: unpackBoundingSpheres(packedResult.boundingSpheresCV),\n };\n};\nexport default PrimitivePipeline;\n"],"names":["defaultValue","ComponentDatatype","Check","defined","Matrix4","GeometryPipeline","GeometryAttribute","DeveloperError","BoundingSphere","GeometryAttributes","IndexDatatype","Geometry","GeographicProjection","Ellipsoid","WebMercatorProjection"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAKA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS,+BAA+B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;EAClD,EAAE,CAAC,GAAGA,iBAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;EACzB,EAAE,CAAC,GAAGA,iBAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;EACzB,EAAE,CAAC,GAAGA,iBAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACzB;EACA;EACA;EACA;EACA;EACA;EACA,EAAE,IAAI,CAAC,KAAK,GAAG,IAAI,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;EAC3C,CAAC;AACD;EACA,MAAM,CAAC,gBAAgB,CAAC,+BAA+B,CAAC,SAAS,EAAE;EACnE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,EAAE,iBAAiB,EAAE;EACrB,IAAI,GAAG,EAAE,YAAY;EACrB,MAAM,OAAOC,mCAAiB,CAAC,KAAK,CAAC;EACrC,KAAK;EACL,GAAG;AACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,EAAE,sBAAsB,EAAE;EAC1B,IAAI,GAAG,EAAE,YAAY;EACrB,MAAM,OAAO,CAAC,CAAC;EACf,KAAK;EACL,GAAG;AACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,EAAE,SAAS,EAAE;EACb,IAAI,GAAG,EAAE,YAAY;EACrB,MAAM,OAAO,KAAK,CAAC;EACnB,KAAK;EACL,GAAG;EACH,CAAC,CAAC,CAAC;AACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA,+BAA+B,CAAC,cAAc,GAAG,U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