MCPcopy
hub / github.com/CesiumGS/cesium / launchMostDetailedRayPick

Function launchMostDetailedRayPick

packages/engine/Source/Scene/Picking.js:1066–1085  ·  view source on GitHub ↗

* @private * @param {Picking} picking * @param {Scene} scene * @param {Ray} ray * @param {object[] | undefined} objectsToExclude * @param {number | undefined} width * @param {Function} callback * @returns {Promise }

(
  picking,
  scene,
  ray,
  objectsToExclude,
  width,
  callback,
)

Source from the content-addressed store, hash-verified

1064 * @returns {Promise<Cartesian3 | undefined>}
1065 */
1066function launchMostDetailedRayPick(
1067 picking,
1068 scene,
1069 ray,
1070 objectsToExclude,
1071 width,
1072 callback,
1073) {
1074 const tilesets = [];
1075 getTilesets(scene.primitives, objectsToExclude, tilesets);
1076 if (tilesets.length === 0) {
1077 return Promise.resolve(callback());
1078 }
1079
1080 const rayPick = new MostDetailedRayPick(ray, width, tilesets);
1081 picking._mostDetailedRayPicks.push(rayPick);
1082 return rayPick.promise.then(function () {
1083 return callback();
1084 });
1085}
1086
1087function isExcluded(object, objectsToExclude) {
1088 if (

Callers 3

Picking.jsFile · 0.85
sampleHeightMostDetailedFunction · 0.85

Calls 2

getTilesetsFunction · 0.85
callbackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…