class
PolygonMesh
public sealed class PolygonMesh A list of vertices and faces.
Constructors
PolygonMesh() Properties
| Name | Type | Description |
|---|---|---|
Vertices | List<Vector3> | |
Faces | List<Face> |
Methods
Int32 AddVertex(Vector3 position) Adds a new vertex to the end of the Vertices list.
position — Position of the vertex to add. returns — The index of the newly added vertex.
Face AddFace(Int32[] indices) Adds a new face to the end of the Faces list.
indices — The vertex indices which define the face, ordered anticlockwise. returns — The newly added face.
Face AddFace(Vector3[] positions) Adds a new face to the end of the Faces list and it's vertices to the end of the Vertices list.
positions — The vertex positions which define the face, ordered anticlockwise. returns — The newly added face.
Assembly:
Sandbox.Tools Declaring Type: PrimitiveBuilder Full Name: Editor.MeshEditor.PrimitiveBuilder.PolygonMesh