Method GetRotation
GetRotation(ProBuilderMesh, IEnumerable<int>)
Collects coincident vertices and returns a rotation calculated from the average normal and bitangent.
Declaration
public static Quaternion GetRotation(ProBuilderMesh mesh, IEnumerable<int> indices)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The target mesh. |
IEnumerable<int> | indices | Vertex indices to consider in the rotation calculations. |
Returns
Type | Description |
---|---|
Quaternion | A rotation calculated from the average normal of each vertex. |