API ReferenceEditor.MapDoc

MapMeshFaceclass

One polygon of a `Editor.MapDoc.MapMesh`, in world space.

object→MapMeshFace
Namespace
Editor.MapDoc
Assembly
Sandbox.Tools
Declaration
public sealed class Editor.MapDoc.MapMeshFace

Properties7

Showing 7 properties

public float Editor.MapDoc.MapMeshFace.Area { get; set; }PUBLICGETSET

The face's area in square units.

Returns:float—

public int Editor.MapDoc.MapMeshFace.Index { get; set; }PUBLICGETSET

The face's position in the mesh, for `Editor.MapDoc.MapMesh.SetFaceMaterial(System.Collections.Generic.IEnumerable,Sandbox.Material)`.

Returns:int—

public string Editor.MapDoc.MapMeshFace.Material { get; set; }PUBLICGETSET

The material path, like "materials/dev/reflectivity_30.vmat".

Returns:string—

public int Editor.MapDoc.MapMeshFace.TriangleCount { get; set; }PUBLICGETSET

How many triangles the face renders as.

Returns:int—

public System.Collections.Generic.IReadOnlyList`1<Vector3> Editor.MapDoc.MapMeshFace.Vertices { get; set; }PUBLICGETSET

The corners, counter-clockwise seen from the side the face points.

Returns:IReadOnlyList<Vector3>—

On this page