# Mesh.convertToUnIndexedMesh() fails to remove indices

**URL:** <https://forum.babylonjs.com/t/mesh-converttounindexedmesh-fails-to-remove-indices/13269>\
**Category:** Bugs\
**Created:** [August 10, 2020, 11:33pm UTC](https://forum.babylonjs.com/t/mesh-converttounindexedmesh-fails-to-remove-indices/13269 "2020-08-10T23:33:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aWeirdo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aweirdo/32/52_2.png) [@aWeirdo](https://forum.babylonjs.com/u/aWeirdo)\
**Post date:** [August 10, 2020, 11:33pm UTC](https://forum.babylonjs.com/t/mesh-converttounindexedmesh-fails-to-remove-indices/13269/1 "2020-08-10T23:33:24Z")

</div>

Hi 🙂  
Mesh indices are not updated/removed when using Mesh.convertToUnIndexedMesh().  
despite the description;

> This method removes all the mesh indices and add new vertices (duplication) …

manually calling Mesh.updateIndices() returns the expected result.

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

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 10, 2020, 11:41pm UTC](https://forum.babylonjs.com/t/mesh-converttounindexedmesh-fails-to-remove-indices/13269/2 "2020-08-10T23:41:27Z")

</div>

Hey!

They are removed from the GPU. The local CPU copy is not delete because you may want it later (And we are not bad guys deleting your data ;))

---

<div class="post-metadata">

**Author:** ![aWeirdo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aweirdo/32/52_2.png) [@aWeirdo](https://forum.babylonjs.com/u/aWeirdo)\
**Post date:** [August 10, 2020, 11:46pm UTC](https://forum.babylonjs.com/t/mesh-converttounindexedmesh-fails-to-remove-indices/13269/3 "2020-08-10T23:46:43Z")

</div>

Ahh, makes sense.  
I used indices.length to check if unindexed or not, so it confused me a bit 😃  
Chaining a updateIndices() is not a big deal 🙂
