xatlasLib
xatlasLib copied to clipboard
Random crash
Random crash on some meshs. In some cases,crush on program generated mesh.(generated by arkit). In this exampleMesh, xatlas crash on random loop. Is this problem cause by single chart? or angything? ExampleMesh.zip
public class TestAtlas : MonoBehaviour
{
public Mesh targetMesh;
Mesh meshCopy;
uint count;
void Start()
{
meshCopy = Instantiate(targetMesh);
}
void Update()
{
if (!xatlas.Unwrap(targetMesh, 0))
Debug.LogError("error");
count++;
Debug.Log(count + "success");
}
}