Method InsertVertexInFace
InsertVertexInFace(ProBuilderMesh, Face, Vector3)
Adds a set of points to a face and retriangulates. Points are added to the nearest edge.
This is the equivalent of the Connect Vertices action.
Declaration
public static Face[] InsertVertexInFace(this ProBuilderMesh mesh, Face face, Vector3 point)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
Face | face | The face to append points to. |
Vector3 | point | Point to add to the face. |
Returns
Type | Description |
---|---|
Face[] | The face created by appending the points. |