# InsertVertex(PolygonGeometry, int, Vector2)

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

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

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

### Parameters

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

### Returns

| Type                                                                                    | Description                                |
| --------------------------------------------------------------------------------------- | ------------------------------------------ |
| [PolygonGeometry](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry.md) | The new geometry with the inserted vertex. |
