Method InsertVertexOnEdge
InsertVertexOnEdge(ProBuilderMesh, Edge, Vector3)
Inserts a new point on an edge. Points are evenly spaced out along the edge.
This is the equivalent of the Subdivide Edges action.
Declaration
public static Vertex InsertVertexOnEdge(this ProBuilderMesh mesh, Edge originalEdge, Vector3 point)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
Edge | originalEdge | The edge to add the point to. |
Vector3 | point | The point to insert on the edge. |
Returns
Type | Description |
---|---|
Vertex | The new Vertex created. |