Method AppendVerticesToEdge
AppendVerticesToEdge(ProBuilderMesh, Edge, int)
Inserts a number of new points on an edge. Points are evenly spaced out along the edge.
Declaration
public static List<Edge> AppendVerticesToEdge(this ProBuilderMesh mesh, Edge edge, int count)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
Edge | edge | The edge to split with points. |
int | count | The number of new points to insert. Must be greater than 0. |
Returns
Type | Description |
---|---|
List<Edge> | The new edges created by inserting points. |
AppendVerticesToEdge(ProBuilderMesh, IList<Edge>, int)
Inserts a number of new points on each edge in the specified set of edges. Points are evenly spaced out along the edge.
Declaration
public static List<Edge> AppendVerticesToEdge(this ProBuilderMesh mesh, IList<Edge> edges, int count)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IList<Edge> | edges | The edges to split with points. |
int | count | The number of new points to insert. Must be greater than 0. |
Returns
Type | Description |
---|---|
List<Edge> | The new edges created by inserting points. |