# Surface

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

```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, ...],
     "type": string
},
```

### Available types

| Type                     | Description                      |
| ------------------------ | -------------------------------- |
| **asphalt**              | Paved surfaces like roads        |
| **roadwayIntersection**  | Junctions of roads               |
| **pavement**             | Footpaths or sidewalks           |
| **water**                | Bodies of water                  |
| **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                |
| **roadwayArea**          | Areas designated for roads       |

{% 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](https://cityweft.gitbook.io/docs/basics/customizations "mention")
{% 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cityweft.gitbook.io/docs/geometry/surface.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
