<!-- 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; [getData3DSlice](./volume.volumemesh.getdata3dslice.md)

## VolumeMesh.getData3DSlice() method

获取3D数据的切片

**Signature:**

```typescript
getData3DSlice(axis: Axis, depth: number): import("image-tls").IData2D<number> | null;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  axis | Axis | map空间下的坐标轴 |
|  depth | number | 世界空间下在轴方向上的坐标值 |

**Returns:**

import("image-tls").IData2D&lt;number&gt; \| null


## Remarks

切片就是指定轴的指定位置的垂直截面； 轴和深度都是局部坐标系下的

