# Meshes from STL files not picked by Ray

**URL:** <https://forum.babylonjs.com/t/meshes-from-stl-files-not-picked-by-ray/34775>\
**Category:** Bugs\
**Created:** [October 13, 2022, 2:13pm UTC](https://forum.babylonjs.com/t/meshes-from-stl-files-not-picked-by-ray/34775 "2022-10-13T14:13:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boz](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/boz/32/4294_2.png) [@Boz](https://forum.babylonjs.com/u/Boz)\
**Post date:** [October 13, 2022, 2:13pm UTC](https://forum.babylonjs.com/t/meshes-from-stl-files-not-picked-by-ray/34775/1 "2022-10-13T14:13:25Z")

</div>

Hello !

I do not know if this is intended, but I do not manage to detect a mesh coming from a STL file to be picked by a Ray.

I created a playground, the sphere is picked, not the STL mesh : [Babylon.js Playground](https://playground.babylonjs.com/#CFBWLS)  
Try yourself and check the console !  
Does anyone have more information about this behavior ?

Thank you in advance 🙂

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [October 13, 2022, 2:21pm UTC](https://forum.babylonjs.com/t/meshes-from-stl-files-not-picked-by-ray/34775/2 "2022-10-13T14:21:01Z")

</div>

ping @PolygonalSun

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [October 13, 2022, 2:58pm UTC](https://forum.babylonjs.com/t/meshes-from-stl-files-not-picked-by-ray/34775/3 "2022-10-13T14:58:40Z")

</div>

You are trying to pick before the mesh has been processed for rendering so you should tell it to compute its info first with computeWorldMatrix [https://playground.babylonjs.com/#CFBWLS#2](https://playground.babylonjs.com/#CFBWLS#2)

---

<div class="post-metadata">

**Author:** ![Boz](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/boz/32/4294_2.png) [@Boz](https://forum.babylonjs.com/u/Boz)\
**Post date:** [October 13, 2022, 4:57pm UTC](https://forum.babylonjs.com/t/meshes-from-stl-files-not-picked-by-ray/34775/4 "2022-10-13T16:57:33Z")

</div>

Oh great I did not know about this, thank you very much !
