PolygonMeshclass

A list of vertices and faces.

objectPolygonMesh
Namespace
global
Assembly
Sandbox.Tools
Declaration
public sealed class Editor.MeshEditor.PrimitiveBuilder.PolygonMesh

Constructors1

Showing 1 constructors

public PolygonMesh()PUBLICCONSTRUCTOR

Methods4

Showing 4 methods

public void AddMesh(Editor.MeshEditor.PrimitiveBuilder.PolygonMesh mesh)PUBLIC

Appends another mesh without welding its vertices into this one.

ParameterTypeDescription
meshPolygonMesh
Returns:void

public int AddVertex(Vector3 position)PUBLIC

Adds a new vertex to the end of the `Editor.MeshEditor.PrimitiveBuilder.PolygonMesh.Vertices` list.

ParameterTypeDescription
positionVector3Position of the vertex to add.
Returns:intThe index of the newly added vertex.

Properties2

Showing 2 properties

public System.Collections.Generic.List`1<Vector3> Editor.MeshEditor.PrimitiveBuilder.PolygonMesh.Vertices { get; set; }PUBLICGETSET

Returns:List<Vector3>

On this page