<!-- 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)

## VolumeMesh class

体积Mesh

**Signature:**

```typescript
export declare class VolumeMesh extends Mesh 
```
**Extends:** Mesh

## Remarks

专用用于体积材质；

体积材质也可以用于普通的 Mesh；但如果使用 VolumeMesh ，则可以减少很多体积材质 和 geometry 同步操作；

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(material)](./volume.volumemesh._constructor_.md) |  | Constructs a new instance of the <code>VolumeMesh</code> class |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [\_geometry](./volume.volumemesh._geometry.md) | <code>protected</code> | BufferGeometry |  |
|  [\_material](./volume.volumemesh._material.md) | <code>protected</code> | [VolumeMaterial](./volume.volumematerial.md) |  |
|  [autoNormalize](./volume.volumemesh.autonormalize.md) |  | boolean | 自动规范化 |
|  [autoUpdateGeometry](./volume.volumemesh.autoupdategeometry.md) |  | boolean | 是否自动更新几何体 |
|  [autoUpdateMaterial](./volume.volumemesh.autoupdatematerial.md) |  | boolean | 是否自动更新材质 |
|  [isVolumeMesh](./volume.volumemesh.isvolumemesh.md) | <code>readonly</code> | (not declared) |  |
|  [material](./volume.volumemesh.material.md) |  | [VolumeMaterial](./volume.volumematerial.md) |  |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [getData3DSlice(axis, depth)](./volume.volumemesh.getdata3dslice.md) |  | 获取3D数据的切片 |
|  [getItem(coord)](./volume.volumemesh.getitem.md) |  | 获取3D数据中指定坐标处的数据项目 |
|  [normalize()](./volume.volumemesh.normalize.md) |  | 规范化 |
|  [toMapDepth(axis, depth)](./volume.volumemesh.tomapdepth.md) |  | 将世界坐标系下的深度转为 map 空间下的深度 |
|  [toMapPosition(coord)](./volume.volumemesh.tomapposition.md) |  | 将材质空间下的坐标转为 map 空间下的坐标 |
|  [toMaterialDepth(axis, depth)](./volume.volumemesh.tomaterialdepth.md) |  | 将世界坐标系下的深度转为 material 空间下的深度 |
|  [updateGeometry()](./volume.volumemesh.updategeometry.md) |  | 更新几何体 |
|  [updateMaterial()](./volume.volumemesh.updatematerial.md) |  | 更新材质 |

