xatlasLib icon indicating copy to clipboard operation
xatlasLib copied to clipboard

Random crash

Open orangeagain opened this issue 3 years ago • 0 comments

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");
    }
}

orangeagain avatar Mar 09 '21 17:03 orangeagain