# Editor.MeshEditor.PrimitiveBuilder.PolygonMesh.AddFace

## Overload 1

```csharp
Face AddFace(int[] indices)
```

Adds a new face to the end of the [Editor.MeshEditor.PrimitiveBuilder.PolygonMesh.Faces](/api/Editor.MeshEditor.PrimitiveBuilder.PolygonMesh/Faces) list.

### Parameters

- `indices` (`int[]`): The vertex indices which define the face, ordered anticlockwise.

### Returns

`Face`: The newly added face.

## Overload 2

```csharp
Face AddFace(Vector3[] positions)
```

Adds a new face to the end of the [Editor.MeshEditor.PrimitiveBuilder.PolygonMesh.Faces](/api/Editor.MeshEditor.PrimitiveBuilder.PolygonMesh/Faces) list and it's vertices to the end of the [Editor.MeshEditor.PrimitiveBuilder.PolygonMesh.Vertices](/api/Editor.MeshEditor.PrimitiveBuilder.PolygonMesh/Vertices) list.

### Parameters

- `positions` (`Vector3[]`): The vertex positions which define the face, ordered anticlockwise.

### Returns

`Face`: The newly added face.

Declared in [Editor.MeshEditor.PrimitiveBuilder.PolygonMesh](/api/Editor.MeshEditor.PrimitiveBuilder.PolygonMesh).
Assembly: `Sandbox.Tools`.
