Method AppendVerticesToFace
AppendVerticesToFace(ProBuilderMesh, Face, Vector3[])
Adds a set of points to a face and re-triangulates. Points are added to the nearest edge.
Declaration
public static Face AppendVerticesToFace(this ProBuilderMesh mesh, Face face, Vector3[] points)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
Face | face | The face to append points to. |
Vector3[] | points | Points to add to the face. |
Returns
Type | Description |
---|---|
Face | The face created by appending the points. |
AppendVerticesToFace(ProBuilderMesh, Face, Vector3[], bool)
Adds a set of points to a face and re-triangulates.
Declaration
public static Face AppendVerticesToFace(this ProBuilderMesh mesh, Face face, Vector3[] points, bool insertOnEdge)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
Face | face | The face to append points to. |
Vector3[] | points | Points to add to the face. |
bool | insertOnEdge | True to force new points to snap to edges. |
Returns
Type | Description |
---|---|
Face | The face created by appending the points. |