# RhinoSupport.ReplaceVertices examples

Examples for [ReplaceVertices](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.rhinosupport/replacevertices.md) in Grasshopper2.Geometry.HalfEdges.RhinoSupport.

## C#

```cs
using Grasshopper2.Geometry.HalfEdges;

// As an extension method
HalfEdgeMesh result = source.ReplaceVertices(points);

// As a static method
result = RhinoSupport.ReplaceVertices(source, points);
```

## Python

```python
import clr
clr.AddReference('Grasshopper2')
import Grasshopper2.Geometry.HalfEdges
clr.ImportExtensions(Grasshopper2.Geometry.HalfEdges)

# As an extension method
result = source.ReplaceVertices(points)

# As a static method
result = Grasshopper2.Geometry.HalfEdges.RhinoSupport.ReplaceVertices(source, points)
```
