<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@three3d/volume](./volume.md) &gt; [VolumeMesh](./volume.volumemesh.md) &gt; [toMapDepth](./volume.volumemesh.tomapdepth.md)

## VolumeMesh.toMapDepth() method

将世界坐标系下的深度转为 map 空间下的深度

**Signature:**

```typescript
toMapDepth(axis: Axis, depth: number): number;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  axis | Axis | map空间下的坐标轴 |
|  depth | number | 深度 |

**Returns:**

number


