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

Function getPickCullingVolume

packages/engine/Source/Scene/Picking.js:198–226  ·  view source on GitHub ↗
(
  scene,
  drawingBufferPosition,
  width,
  height,
  viewport,
)

Source from the content-addressed store, hash-verified

196}
197
198function getPickCullingVolume(
199 scene,
200 drawingBufferPosition,
201 width,
202 height,
203 viewport,
204) {
205 const frustum = scene.camera.frustum;
206 if (
207 frustum instanceof OrthographicFrustum ||
208 frustum instanceof OrthographicOffCenterFrustum
209 ) {
210 return getPickOrthographicCullingVolume(
211 scene,
212 drawingBufferPosition,
213 width,
214 height,
215 viewport,
216 );
217 }
218
219 return getPickPerspectiveCullingVolume(
220 scene,
221 drawingBufferPosition,
222 width,
223 height,
224 viewport,
225 );
226}
227
228// Pick position and rectangle, used in all picking functions,
229// filled in computePickingDrawingBufferRectangle and passed

Callers 3

pickBeginFunction · 0.85
Picking.jsFile · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…