# PickFromRay - Missing function in Cesium.d.ts for class scene

**URL:** <https://community.cesium.com/t/pickfromray-missing-function-in-cesium-d-ts-for-class-scene/13751>\
**Category:** CesiumJS\
**Created:** [May 21, 2021, 3:43pm UTC](https://community.cesium.com/t/pickfromray-missing-function-in-cesium-d-ts-for-class-scene/13751 "2021-05-21T15:43:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruediger\_Brand](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ruediger_brand/32/4004_2.png) [@Ruediger\_Brand](https://community.cesium.com/u/Ruediger_Brand)\
**Post date:** [May 21, 2021, 3:43pm UTC](https://community.cesium.com/t/pickfromray-missing-function-in-cesium-d-ts-for-class-scene/13751/1 "2021-05-21T15:43:57Z")

</div>

Hi,

I’m using CesiumJs with typescript and would like to use the scene methods pickFromRay, which is part of version 1.71

this function isn’t defined in Cesium.d.ts - is this an error, or what is the procedure for update the types ?

In [CesiumJS Adds Official TypeScript Type Definitions – Cesium](https://cesium.com/blog/2020/06/01/cesiumjs-tsd/) Matthew wrote that typescript is now officially supported ?

Rüdiger

---

<div class="post-metadata">

**Author:** ![Ruediger\_Brand](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ruediger_brand/32/4004_2.png) [@Ruediger\_Brand](https://community.cesium.com/u/Ruediger_Brand)\
**Post date:** [May 23, 2021, 3:45pm UTC](https://community.cesium.com/t/pickfromray-missing-function-in-cesium-d-ts-for-class-scene/13751/2 "2021-05-23T15:45:42Z")

</div>

I think this function is very importing and should be public !

If not is there another way to determine the intersection of a ray and a 3d tileset, like globe pick for terrain.

---

<div class="post-metadata">

**Author:** ![kasatik143](https://avatars.discourse-cdn.com/v4/letter/k/dbc845/32.png) [@kasatik143](https://community.cesium.com/u/kasatik143)\
**Post date:** [May 29, 2021, 7:20am UTC](https://community.cesium.com/t/pickfromray-missing-function-in-cesium-d-ts-for-class-scene/13751/3 "2021-05-29T07:20:54Z")

</div>

Geometric shape can be filled with triangles and then use Cesium.IntersectionTests.rayTriangle
