# Get correctly faceID by clicking mesh with clipped plane (Clipped Plane)

**URL:** <https://forum.babylonjs.com/t/get-correctly-faceid-by-clicking-mesh-with-clipped-plane-clipped-plane/38821>\
**Category:** Questions\
**Tags:** mesh, face\
**Created:** [March 7, 2023, 1:16pm UTC](https://forum.babylonjs.com/t/get-correctly-faceid-by-clicking-mesh-with-clipped-plane-clipped-plane/38821 "2023-03-07T13:16:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nawar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nawar/32/14923_2.png) [@Nawar](https://forum.babylonjs.com/u/Nawar)\
**Post date:** [March 7, 2023, 1:16pm UTC](https://forum.babylonjs.com/t/get-correctly-faceid-by-clicking-mesh-with-clipped-plane-clipped-plane/38821/1 "2023-03-07T13:16:52Z")

</div>

Hello everyone!

In this example, I’m trying to get the correct faceId by clicking inside the mesh using the clipped plane.

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

In this screenshot, I click inside the cube, and I get the wrong faceId.

 ![Got5](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/a/b/ab973216ca24bf4bb690d3de23d2b38ff4eb3e02.png)

This screenshot shows the faceId that I would like to get.

 ![Got7](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/1/e1f8d00ce138afdce7d2d4686486d3c3e3953bd2.png)

How can I do it?

---

<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:** [March 7, 2023, 8:41pm UTC](https://forum.babylonjs.com/t/get-correctly-faceid-by-clicking-mesh-with-clipped-plane-clipped-plane/38821/2 "2023-03-07T20:41:43Z")

</div>

This is not supported at the moment ☹ clip planes are only a rendering feature.

I wonder if in this case you could not ray cast from the opposite direction ?

---

<div class="post-metadata">

**Author:** ![Nawar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nawar/32/14923_2.png) [@Nawar](https://forum.babylonjs.com/u/Nawar)\
**Post date:** [March 8, 2023, 10:39am UTC](https://forum.babylonjs.com/t/get-correctly-faceid-by-clicking-mesh-with-clipped-plane-clipped-plane/38821/3 "2023-03-08T10:39:35Z")

</div>

I have a large building mesh. With clipped plane I cut it in half. I need to select one of the faces inside the building with a click.

---

<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:** [March 8, 2023, 8:01pm UTC](https://forum.babylonjs.com/t/get-correctly-faceid-by-clicking-mesh-with-clipped-plane-clipped-plane/38821/4 "2023-03-08T20:01:17Z")

</div>

the workaround would be to raycast to the clip plane first and set the clip plane intersection point as the start of the ray ???

---

<div class="post-metadata">

**Author:** ![Nawar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nawar/32/14923_2.png) [@Nawar](https://forum.babylonjs.com/u/Nawar)\
**Post date:** [March 9, 2023, 1:54pm UTC](https://forum.babylonjs.com/t/get-correctly-faceid-by-clicking-mesh-with-clipped-plane-clipped-plane/38821/5 "2023-03-09T13:54:49Z")

</div>

Yes, this approach works. Thank you!

Here’s the updated playground if anyone needs it

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