Method TranslateVertices
TranslateVertices(ProBuilderMesh, IEnumerable<int>, Vector3)
Translates a set of vertices with an offset provided in local (model) coordinates.
This applies the mesh positions to both the ProBuilderMesh and the Mesh.
Declaration
public static void TranslateVertices(this ProBuilderMesh mesh, IEnumerable<int> indexes, Vector3 offset)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh containing the vertices that you want to translate. |
IEnumerable<int> | indexes | A set of triangles pointing to the vertex positions that you want to translate. |
Vector3 | offset | The offset to apply in local coordinates. |
TranslateVertices(ProBuilderMesh, IEnumerable<Edge>, Vector3)
Translates a set of edges with an offset provided in local (model) coordinates.
This applies the mesh positions to both the ProBuilderMesh and the Mesh.
Declaration
public static void TranslateVertices(this ProBuilderMesh mesh, IEnumerable<Edge> edges, Vector3 offset)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh containing the edges that you want to translate. |
IEnumerable<Edge> | edges | The set of edges that you want to translate. |
Vector3 | offset | The offset to apply in local coordinates. |
TranslateVertices(ProBuilderMesh, IEnumerable<Face>, Vector3)
Translates a set of faces with an offset provided in local (model) coordinates.
This applies the mesh positions to both the ProBuilderMesh and the Mesh.
Declaration
public static void TranslateVertices(this ProBuilderMesh mesh, IEnumerable<Face> faces, Vector3 offset)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh containing the faces that you want to translate. |
IEnumerable<Face> | faces | The set of faces that you want to translate. |
Vector3 | offset | The offset to apply in local coordinates. |