Various utilities for mesh manipulation.

Esempio n. 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));
 }
Esempio n. 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)));
 }
Esempio n. 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)));
 }
Esempio n. 4
0
 public static void GenerateSecondaryUVSet(Mesh src)
 {
     MeshUtility.SetPerTriangleUV2(src, GeneratePerTriangleUV(src));
 }