# InsertVertex(PolygonGeometry, int, Vector2)

> Insert a vertex into the geometry returning a new geometry with updated normals and centroid.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public static PolygonGeometry InsertVertex(PolygonGeometry geometry, int index, Vector2 vertex)
```

### Parameters

**** (\[PolygonGeometry]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/polygongeometry)): The geometry to adjust.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The vertex index to insert at.**** (\[Vector2]\(/engine/6000.3/script-reference/unityengine/vector2)): The vertex to insert.

### Returns

| Type                                                                                                | Description                                |
| --------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| [PolygonGeometry](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/polygongeometry.md) | The new geometry with the inserted vertex. |
