# Editor.MapDoc.MapMesh

MapMesh is the Hammer map node which represents editable mesh geometry in a Hammer map.
This is the map node that is created when using the hammer geometry editing tools.

- Kind: class
- Namespace: `Editor.MapDoc`
- Assembly: `Sandbox.Tools`
- Inherits: [Editor.MapDoc.MapNode](/api/Editor.MapDoc.MapNode)

## Constructors

- [`MapMesh`](/api/Editor.MapDoc.MapMesh/.ctor)

## Methods

- [`ConstructFromPolygons`](/api/Editor.MapDoc.MapMesh/ConstructFromPolygons): Constructs the mesh from the given [Editor.MeshEditor.PrimitiveBuilder.PolygonMesh](/api/Editor.MeshEditor.PrimitiveBuilder.PolygonMesh) builder.
- [`GetFaceMaterialAssets`](/api/Editor.MapDoc.MapMesh/GetFaceMaterialAssets): Get all material assets used on this mesh
- [`SetMaterial`](/api/Editor.MapDoc.MapMesh/SetMaterial): Assigns the specified material to the entire mesh
