/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.143.0 * * Copyright 2011-2022 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. */ import { Cesium3DTilesTerrainGeometryProcessor_default } from "./chunk-36NI5E6W.js"; import "./chunk-IDVHUDZT.js"; import "./chunk-IJZJMIUY.js"; import { createTaskProcessorWorker_default } from "./chunk-XDWCTQCZ.js"; import "./chunk-XQH66YJC.js"; import "./chunk-ELE6SC2C.js"; import "./chunk-7YG3ND3P.js"; import "./chunk-JALGQYDY.js"; import "./chunk-EZGQPOIG.js"; import "./chunk-AJSFRY4U.js"; import "./chunk-J73T2VOY.js"; import "./chunk-DZUFEE4L.js"; import "./chunk-2RGJPWQX.js"; import "./chunk-JKXV6PG5.js"; import "./chunk-ADX3CBKD.js"; import "./chunk-WN3F4CVG.js"; import "./chunk-VAL7DYNR.js"; import "./chunk-N7CCOFLX.js"; import "./chunk-GXWQZBAI.js"; import "./chunk-UTB7U3O6.js"; import "./chunk-ZQLZG4IN.js"; import "./chunk-5YPQBFRD.js"; import "./chunk-6YR6JBMY.js"; import "./chunk-AHWAZRBV.js"; // packages/engine/Source/Workers/upsampleVerticesFromCesium3DTilesTerrain.js function upsampleVerticesFromCesium3DTilesTerrain(options, transferableObjects) { const mesh = Cesium3DTilesTerrainGeometryProcessor_default.upsampleMesh(options); const verticesBuffer = mesh.vertices.buffer; const indicesBuffer = mesh.indices.buffer; const westIndicesBuffer = mesh.westIndicesSouthToNorth.buffer; const southIndicesBuffer = mesh.southIndicesEastToWest.buffer; const eastIndicesBuffer = mesh.eastIndicesNorthToSouth.buffer; const northIndicesBuffer = mesh.northIndicesWestToEast.buffer; transferableObjects.push( verticesBuffer, indicesBuffer, westIndicesBuffer, southIndicesBuffer, eastIndicesBuffer, northIndicesBuffer ); const result = { verticesBuffer, indicesBuffer, vertexCountWithoutSkirts: mesh.vertexCountWithoutSkirts, indexCountWithoutSkirts: mesh.indexCountWithoutSkirts, encoding: mesh.encoding, westIndicesBuffer, southIndicesBuffer, eastIndicesBuffer, northIndicesBuffer, minimumHeight: mesh.minimumHeight, maximumHeight: mesh.maximumHeight, boundingSphere: mesh.boundingSphere3D, orientedBoundingBox: mesh.orientedBoundingBox, horizonOcclusionPoint: mesh.horizonOcclusionPoint }; return result; } var upsampleVerticesFromCesium3DTilesTerrain_default = createTaskProcessorWorker_default( upsampleVerticesFromCesium3DTilesTerrain ); export { upsampleVerticesFromCesium3DTilesTerrain_default as default };