Various utilities for mesh manipulation.

Пример #1
0
 /// <summary>
 ///   <para>Will auto generate uv2 with provided settings for provided mesh, and fill them in.</para>
 /// </summary>
 /// <param name="src"></param>
 /// <param name="settings"></param>
 public static void GenerateSecondaryUVSet(Mesh src, UnwrapParam settings)
 {
     MeshUtility.SetPerTriangleUV2(src, Unwrapping.GeneratePerTriangleUV(src, settings));
 }
Пример #2
0
 // Will auto generate uv2 with default settings for provided mesh, and fill them in
 public static bool GenerateSecondaryUVSet(Mesh src)
 {
     return(MeshUtility.SetPerTriangleUV2(src, GeneratePerTriangleUV(src)));
 }
Пример #3
0
 // Will auto generate uv2 with provided settings for provided mesh, and fill them in
 public static bool GenerateSecondaryUVSet(Mesh src, UnwrapParam settings)
 {
     return(MeshUtility.SetPerTriangleUV2(src, GeneratePerTriangleUV(src, settings)));
 }
Пример #4
0
 public static void GenerateSecondaryUVSet(Mesh src)
 {
     MeshUtility.SetPerTriangleUV2(src, GeneratePerTriangleUV(src));
 }