# When i build a mesh with triangles is it possible to select each triangle separately?

**URL:** <https://forum.babylonjs.com/t/when-i-build-a-mesh-with-triangles-is-it-possible-to-select-each-triangle-separately/13847>\
**Category:** Questions\
**Tags:** material\
**Created:** [September 2, 2020, 8:31am UTC](https://forum.babylonjs.com/t/when-i-build-a-mesh-with-triangles-is-it-possible-to-select-each-triangle-separately/13847 "2020-09-02T08:31:23Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [September 7, 2020, 8:37am UTC](https://forum.babylonjs.com/t/when-i-build-a-mesh-with-triangles-is-it-possible-to-select-each-triangle-separately/13847/21 "2020-09-07T08:37:28Z")

</div>

and then should I set it to True?

---

<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:** [September 7, 2020, 8:38am UTC](https://forum.babylonjs.com/t/when-i-build-a-mesh-with-triangles-is-it-possible-to-select-each-triangle-separately/13847/22 "2020-09-07T08:38:31Z")

</div>

Why?

This shows boundingbox methods and properties [BoundingBox - Babylon.js Documentation](https://doc.babylonjs.com/api/classes/babylon.boundingbox)

---

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [September 7, 2020, 8:40am UTC](https://forum.babylonjs.com/t/when-i-build-a-mesh-with-triangles-is-it-possible-to-select-each-triangle-separately/13847/23 "2020-09-07T08:40:35Z")

</div>

when I use this: var BoundingBox = new BABYLON.BoundingBox(minVec, maxVec);  
and then click on the triangle I didn’t get the boundingBox,

---

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [September 7, 2020, 8:46am UTC](https://forum.babylonjs.com/t/when-i-build-a-mesh-with-triangles-is-it-possible-to-select-each-triangle-separately/13847/24 "2020-09-07T08:46:42Z")

</div>

Should I add worldmartrix in my BoundingBox vector?

---

<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:** [September 7, 2020, 9:56am UTC](https://forum.babylonjs.com/t/when-i-build-a-mesh-with-triangles-is-it-possible-to-select-each-triangle-separately/13847/25 "2020-09-07T09:56:24Z")

</div>

You need to draw the boundingbox by using the max min and center details to build and position a box and set to wireframe. In practice you do not really need to construct the bounding box  
width = maxVec.x - minVec.x, etc, centerX = (maxVec.x + minVec.x) / 2, etc

---

<div class="post-metadata">

**Author:** ![Arash\_Bagheri](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arash\_Bagheri](https://forum.babylonjs.com/u/Arash_Bagheri)\
**Post date:** [September 9, 2020, 9:03pm UTC](https://forum.babylonjs.com/t/when-i-build-a-mesh-with-triangles-is-it-possible-to-select-each-triangle-separately/13847/26 "2020-09-09T21:03:39Z")

</div>

Thank you so much. 🙏🏻 🙏🏻 🙏🏻

[Previous page](https://forum.babylonjs.com/t/when-i-build-a-mesh-with-triangles-is-it-possible-to-select-each-triangle-separately/13847.md?page=1)
