Implemented thread safe GenerateConvexMeshes function.
This commit is contained in:
19
Runtime/MeshSafe.cs
Normal file
19
Runtime/MeshSafe.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace MeshProcess
|
||||
{
|
||||
public struct MeshSafe
|
||||
{
|
||||
public Vector3[] Vertices;
|
||||
public int[] Triangles;
|
||||
|
||||
public Mesh ToMesh()
|
||||
{
|
||||
return new Mesh
|
||||
{
|
||||
vertices = Vertices,
|
||||
triangles = Triangles
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user