> For the complete documentation index, see [llms.txt](https://bimwhale.gitbook.io/ifc-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bimwhale.gitbook.io/ifc-js/optimization/merge-geometries.md).

# Merge Geometries

Let's import the [BufferGeometryUtils](https://threejs.org/docs/#examples/en/utils/BufferGeometryUtils).

```javascript
import { BufferGeometryUtils } from 'https://unpkg.com/three/examples/jsm/utils/BufferGeometryUtils.js';
```

We can create a simple object that will hold each `material group`**.**

```javascript
class MaterialGroup {
  constructor(material, bufferGeometries) {
    this.material = material;
    this.bufferGeometries = bufferGeometries;
  }
}
```

{% hint style="danger" %}
W\.I.P
{% endhint %}
