Quadremesh to SubD interpolate Mesh

I try to recreate the quadmesh-command in rhinocommon with the subdinterpolation enabled but dont find a proper setting in rhinocommon.

My code so far is:

QuadRemeshParameters remeshParameters = new QuadRemeshParameters();
Subd subd = SubD.CreateFromMesh(mesh.QuadRemesh(remeshParameters));

with is creating a useable subd but the subd is not interpolated.

Untitled-1

private void RunScript(Mesh mesh, bool interpolate, ref object A)
{
  var options = new SubDCreationOptions();
  options.InterpolateMeshVertices = interpolate;
  A = SubD.CreateFromMesh(mesh, options);
}

SubDInterpolate.gh (4.6 KB)
You might also find this example useful:

1 Like