UNPKG

@three3d/tools

Version:

@three3d/tools 提供了 ThreeJS 常用的工具库

32 lines (18 loc) 768 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [get3DTextureSlice](./tools.get3dtextureslice.md) ## get3DTextureSlice() function 获取3D纹理的切片 **Signature:** ```typescript export declare function get3DTextureSlice(texture: Texture3D, axis: Axis, depth: number): import("image-tls").IData2D<number>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | texture | [Texture3D](./tools.texture3d.md) | 3D的纹理 | | axis | Axis | 轴 | | depth | number | 在轴上的坐标值 | **Returns:** import("image-tls").IData2D&lt;number&gt; ## Remarks 切片就是指定轴的指定位置的垂直截面