QuadReMesh in C# Editor

Hi all,

I am working on a mesh model, trying to get a quality quad mesh in c# editor utilizing quadremesh method.

When I use quadremesh in a row for any reason, the second one fails. Any idea?

Also, I cannot find triremesh from the api. Is it hidden on purpose? Thanks in advance.

W

private void RunScript(Mesh x, object y, ref object a, ref object b)
{
    var parameters = new QuadRemeshParameters();
    var m1 = x.QuadRemesh(parameters);
    m1.RebuildNormals();
    var m2 = m1.QuadRemesh(parameters);
    m2.RebuildNormals();
    a = m1;
    b = m2;
}

Woojae.gh (4.6 KB)

Awesome. Thanks much!