# BufferGeometryUtils mergeVertices not available in typeScript

**URL:** <https://discourse.threejs.org/t/buffergeometryutils-mergevertices-not-available-in-typescript/38569>\
**Category:** Questions\
**Tags:** buffergeometryutils, mergevertices\
**Created:** [May 27, 2022, 6:36am UTC](https://discourse.threejs.org/t/buffergeometryutils-mergevertices-not-available-in-typescript/38569 "2022-05-27T06:36:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAUMIK\_RANA](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/raumik_rana/32/12395_2.png) [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Post date:** [May 27, 2022, 6:36am UTC](https://discourse.threejs.org/t/buffergeometryutils-mergevertices-not-available-in-typescript/38569/1 "2022-05-27T06:36:33Z")

</div>

I am trying to convert non-indexed geometry to indexed geometry using “BufferGeometryUtils.mergeVertices” in typeScript.

But error occcured  
“Property ‘mergeVertices’ does not exist on type ‘typeof BufferGeometryUtils’”

---

<div class="post-metadata">

**Author:** ![vielzutun.ch](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/vielzutun.ch/32/21366_2.png) [@vielzutun.ch](https://discourse.threejs.org/u/vielzutun.ch)\
**Post date:** [May 27, 2022, 6:43am UTC](https://discourse.threejs.org/t/buffergeometryutils-mergevertices-not-available-in-typescript/38569/2 "2022-05-27T06:43:06Z")

</div>

> [@RAUMIK\_RANA](#):
>
> “ **Property** ‘mergeVertices’ does not exist

[`mergeVertices()`](https://threejs.org/docs/#examples/en/utils/BufferGeometryUtils.mergeVertices) is a **method** of `BufferGeometryUtils`, not a **property**.

---

<div class="post-metadata">

**Author:** ![RAUMIK\_RANA](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/raumik_rana/32/12395_2.png) [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Post date:** [May 27, 2022, 7:13am UTC](https://discourse.threejs.org/t/buffergeometryutils-mergevertices-not-available-in-typescript/38569/3 "2022-05-27T07:13:45Z")

</div>

Please see this, I have used it as method

BufferGeometryUtils.mergeVertices(obj.children[0].geometry)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/f/7/f79eb0289946b5b541f5bddcded50c9ce97dac70.png)

---

<div class="post-metadata">

**Author:** ![RAUMIK\_RANA](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/raumik_rana/32/12395_2.png) [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Post date:** [May 27, 2022, 8:24am UTC](https://discourse.threejs.org/t/buffergeometryutils-mergevertices-not-available-in-typescript/38569/4 "2022-05-27T08:24:49Z")

</div>

found my error.

I am importing BufferGeometryUtils from three instead of utils

---

<div class="post-metadata">

**Author:** ![Gangula](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gangula/32/17731_2.png) [@Gangula](https://discourse.threejs.org/u/Gangula)\
**Post date:** [October 14, 2023, 5:56am UTC](https://discourse.threejs.org/t/buffergeometryutils-mergevertices-not-available-in-typescript/38569/5 "2023-10-14T05:56:01Z")

</div>

it should be imported from  
`import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js';`

---

<div class="post-metadata">

**Author:** ![RAUMIK\_RANA](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/raumik_rana/32/12395_2.png) [@RAUMIK\_RANA](https://discourse.threejs.org/u/RAUMIK_RANA)\
**Post date:** [October 14, 2023, 6:25am UTC](https://discourse.threejs.org/t/buffergeometryutils-mergevertices-not-available-in-typescript/38569/6 "2023-10-14T06:25:08Z")

</div>

Yes. Initially three js exporting whole BufferGeometryUtils class.

Now three js exporting individuals functions,
