s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Editor Classes
MapMesh
chevron_left Editor Classes
class
MapMesh

Constructors

functionsMapMesh

Properties

data_objectBounds

Methods

functionsConstructFromPolygonsfunctionsGetFaceMaterialAssetsfunctionsGetFacesfunctionsSetFaceMaterialfunctionsSetMaterial
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.
class Editor.MapDoc .account_tree extends MapNode
Sandbox.Tools

build Constructors 1

MapMesh (mapDocument)

data_object Properties 1

Bounds
BBox
The world space bounds of the mesh's vertices.

functions Methods 5

ConstructFromPolygons (mesh)
Constructs the mesh from the given Editor.MeshEditor.PrimitiveBuilder.PolygonMesh builder.
GetFaceMaterialAssets ()
IEnumerable`1
Get all material assets used on this mesh
GetFaces ()
IReadOnlyList`1
Every face of the mesh, in world space. A face's Editor.MapDoc.MapMeshFace.Index stays valid until the mesh's topology changes, for Editor.MapDoc.MapMesh.SetFaceMaterial(System.Collections.Generic.IEnumerable{System.Int32},Sandbox.Material).
SetFaceMaterial (faceIndices, material)
SetMaterial (material)
Assigns the specified material to the entire mesh

Inheritance

MapNode
MapMesh
MapStaticOverlay
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter