# Sandbox.Mesh.CreateBuffers

```csharp
void CreateBuffers(VertexBuffer vb, bool calculateBounds = True)
```

Create vertex and index buffers.

### Parameters

- `vb` (`VertexBuffer`): Input vertex buffer. If it is indexed ([Sandbox.VertexBuffer.Indexed](/api/Sandbox.VertexBuffer/Indexed)), then index buffer will also be created.
- `calculateBounds` (`bool`), default `True`: Whether to recalculate bounds from the vertex buffer.

Declared in [Sandbox.Mesh](/api/Sandbox.Mesh).
Assembly: `Sandbox.Engine`.
