> For the complete documentation index, see [llms.txt](https://cityweft.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cityweft.gitbook.io/docs/geometry/surface.md).

# Surface

Surfaces are meshed geometries representing area features such as zones and pathways. They are delivered as optimized meshes aligned with the terrain.

Geometry Type: <mark style="color:blue;">`meshes`</mark>

```javascript
{
     "type": "surface",
     "geometryType": "meshes",
     "meshes": Mesh[]
},
```

What does a surface mesh element contain? This is the example:

```javascript
{
     // The most important element of any meshed geometry for visualization
     "vertices": [x1, y1, z1, x2, y2, z2, ...],
     "descriptor": { "type": "asphalt", ... }
},
```

### Available types

| Type                     | Description                                           |
| ------------------------ | ----------------------------------------------------- |
| **path**                 | Roads, footways, cycleways, railways (see `pathType`) |
| **asphalt**              | Paved surfaces like roads                             |
| **roadwayIntersection**  | Junctions of roads                                    |
| **roadwayArea**          | Areas designated for roads                            |
| **pavement**             | Footpaths or sidewalks                                |
| **water**                | Bodies of water                                       |
| **waterway**             | Rivers, streams and canals                            |
| **farmland**             | Agricultural land                                     |
| **grass**                | General grassy surfaces                               |
| **sand**                 | Sandy areas                                           |
| **rock**                 | Rocky terrain                                         |
| **pitch**                | Sports fields                                         |
| **manicuredGrass**       | Well-maintained lawns                                 |
| **helipad**              | Helicopter landing areas                              |
| **forest**               | Densely wooded areas                                  |
| **garden**               | Decorative or functional gardens                      |
| **construction**         | Areas under construction                              |
| **buildingConstruction** | Building sites                                        |
| **shrubbery**            | Areas with shrubs                                     |

The full list of per-type descriptor properties (lanes, materials, widths, …) lives at [Metadata (Descriptors)](/docs/basics/metadata-descriptors.md).

{% hint style="success" %}
**New:** with the `surfaceTypes` setting, surfaces can also be delivered as draped **polylines** — centerlines and outlines, alongside or instead of the meshes. See [Surface Lines](/docs/geometry/surface-lines.md).
{% endhint %}

{% hint style="warning" %}
When a topography model is requested, all surfaces are projected onto it, which can significantly increase the size of the resulting surface data. To optimize performance, consider disabling projection when it’s not needed. More info: [Customizations](/docs/basics/customizations.md)
{% endhint %}

<figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2FJ1wMVFxeiVZoSbwr482u%2FScreenshot%202025-06-06%20at%2000.41.41.png?alt=media&#x26;token=fd65dfe0-69cc-4dca-85e6-a69aec02b71b" alt=""><figcaption><p>Projected Surfaces</p></figcaption></figure>

An example of filtering by type in Three.js:

```javascript
const material = new THREE.MeshStandardMaterial({
  color: mesh.descriptor.type === "asphalt" ? "#dc0d0d" : getRandomColour(),
});
```

<figure><img src="https://2449447963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ahel6HN9zgEzJ1vY9kr%2Fuploads%2FrZarO74vSHsmyjDGIM41%2Fimage.png?alt=media&#x26;token=a87e04a8-543e-4d78-9e7d-43760db8c0d0" alt=""><figcaption></figcaption></figure>
