# How to get the coordinates or indexes of the points of the Mesh picked up by the mouse

**URL:** <https://forum.babylonjs.com/t/how-to-get-the-coordinates-or-indexes-of-the-points-of-the-mesh-picked-up-by-the-mouse/28528>\
**Category:** Questions\
**Created:** [March 18, 2022, 8:16am UTC](https://forum.babylonjs.com/t/how-to-get-the-coordinates-or-indexes-of-the-points-of-the-mesh-picked-up-by-the-mouse/28528 "2022-03-18T08:16:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuemiao](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yuemiao/32/13136_2.png) [@yuemiao](https://forum.babylonjs.com/u/yuemiao)\
**Post date:** [March 18, 2022, 8:16am UTC](https://forum.babylonjs.com/t/how-to-get-the-coordinates-or-indexes-of-the-points-of-the-mesh-picked-up-by-the-mouse/28528/1 "2022-03-18T08:16:38Z")

</div>

https://www.babylonjs-playground.com/#AVYNC7

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#AVYNC7)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [March 18, 2022, 12:26pm UTC](https://forum.babylonjs.com/t/how-to-get-the-coordinates-or-indexes-of-the-points-of-the-mesh-picked-up-by-the-mouse/28528/2 "2022-03-18T12:26:15Z")

</div>

Using available features of Babylon.js rather than custom mesh and material

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#AVYNC7%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

> **[Facet Data | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/mesh/facetData)**
>
> Learn all about facet data in Babylon.js.

> **[Interacting With Scenes | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/scene/interactWithScenes)**
>
> Begin learning about how to develop interactions for your Babylon.js scenes.

---

<div class="post-metadata">

**Author:** ![yuemiao](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yuemiao/32/13136_2.png) [@yuemiao](https://forum.babylonjs.com/u/yuemiao)\
**Post date:** [March 22, 2022, 6:49am UTC](https://forum.babylonjs.com/t/how-to-get-the-coordinates-or-indexes-of-the-points-of-the-mesh-picked-up-by-the-mouse/28528/3 "2022-03-22T06:49:06Z")

</div>

I also want to use the custom ShaderMaterial to achieve more effects for OBJ model,on this basis, is it impossible to pick up point coordinates or indexes with the mouse？

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [April 14, 2022, 11:22am UTC](https://forum.babylonjs.com/t/how-to-get-the-coordinates-or-indexes-of-the-points-of-the-mesh-picked-up-by-the-mouse/28528/4 "2022-04-14T11:22:02Z")

</div>

Do you mean if facet data can be used with custom materials?
