<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@three3d/volume](./volume.md) &gt; [VolumeMaterial](./volume.volumematerial.md) &gt; [getData3DSlice](./volume.volumematerial.getdata3dslice.md)

## VolumeMaterial.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

切片就是指定轴的指定位置的垂直截面

