API ReferenceEditor.MapDoc
public class Editor.MapDoc.MapMesh : Editor.MapDoc.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
Showing 1 constructors
public MapMesh(Editor.MapDoc.MapDocument mapDocument = null)
Parameters
mapDocument: Default: null
No results match this filter.
Methods
Showing 3 methods
public void ConstructFromPolygons(Editor.MeshEditor.PrimitiveBuilder.PolygonMesh mesh)
Constructs the mesh from the given `Editor.MeshEditor.PrimitiveBuilder.PolygonMesh` builder.
public System.Collections.Generic.IEnumerable`1<Editor.Asset> GetFaceMaterialAssets()
Get all material assets used on this mesh
public void SetMaterial(Sandbox.Material material)
Assigns the specified material to the entire mesh
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor.MapDoc |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.MapDoc.MapMesh |