Method Average
Average(IList<Vertex>, IList<int>)
Averages all vertices to a single vertex and returns the result as a new Vertex object.
Declaration
public static Vertex Average(IList<Vertex> vertices, IList<int> indexes = null)
Parameters
Type | Name | Description |
---|---|---|
IList<Vertex> | vertices | The list of vertices to average. |
IList<int> | indexes | Specify a list of vertex points to calculate the average from. If not specified, it averages the entire set of vertices instead. |
Returns
Type | Description |
---|---|
Vertex | An averaged vertex value. |