# `CauldronGPU.Sectors.Live.Mesh`
[🔗](https://github.com/jaman/cauldron/blob/v0.3.3/cauldron_gpu/lib/cauldron_gpu/sectors/live/mesh.ex#L2)

`CauldronGPU.Sectors.Live.Geometry` surfaces gathered into one `CauldronGPU.Mesh`,
one part per picture, each corner's lightmap coordinates reading its sector's row of a
`CauldronGPU.Sectors.Live.Lightmap` of `count` sectors.

    {mesh, keys} = CauldronGPU.Sectors.Live.Mesh.build(surfaces, count)

`keys` lists each part's key, `{:picture, id}` or `:sky`, in part order.

# `build`

```elixir
@spec build([CauldronGPU.Sectors.Live.Geometry.surface()], pos_integer()) ::
  {CauldronGPU.Mesh.t(), [term()]}
```

The mesh holding `surfaces` and the key of each of its parts.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
