API ReferenceEditor.MapDoc
MapMeshFaceclass
One polygon of a `Editor.MapDoc.MapMesh`, in world space.
object→MapMeshFace
Properties7
Showing 7 properties
public float Editor.MapDoc.MapMeshFace.Area { get; set; }
The face's area in square units.
Returns:
float—public Vector3 Editor.MapDoc.MapMeshFace.Center { get; set; }
The average of the corners.
public int Editor.MapDoc.MapMeshFace.Index { get; set; }
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; }
The material path, like "materials/dev/reflectivity_30.vmat".
Returns:
string—public Vector3 Editor.MapDoc.MapMeshFace.Normal { get; set; }
Which way the face points.
public int Editor.MapDoc.MapMeshFace.TriangleCount { get; set; }
How many triangles the face renders as.
Returns:
int—public System.Collections.Generic.IReadOnlyList`1<Vector3> Editor.MapDoc.MapMeshFace.Vertices { get; set; }
The corners, counter-clockwise seen from the side the face points.
No results match this filter.