Api Editor MapDoc MapMesh
class

MapMesh

public class MapMesh : MapNode

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.

Constructors

MapMesh(MapDocument mapDocument)

Methods

Void SetMaterial(Material material)

Assigns the specified material to the entire mesh

Void ConstructFromPolygons(PolygonMesh mesh)

Constructs the mesh from the given PolygonMesh builder.

IEnumerable<Asset> GetFaceMaterialAssets()

Get all material assets used on this mesh

Assembly: Sandbox.Tools Namespace: Editor.MapDoc Full Name: Editor.MapDoc.MapMesh