Is there a way to use the new Quad Remesher which is available in Rhino 7 through API or scripting? I tried _QuadRemesh, but it brings dialog.
Can I provide the parameters in the script line and not have the dialog?

Would Mesh.Faces.ConvertTrianglesToQuads(...) do the job for you?


MeshFaceList.ConvertTrianglesToQuads Method

Joins adjacent triangles into quads if the resulting quad is β€˜nice’.

public bool ConvertTrianglesToQuads( 
   double angleToleranceRadians, 
   double minimumDiagonalLengthRatio 

// Rolf

Yes, in RhinoCommon: https://developer.rhino3d.com/wip/api/RhinoCommon/html/Overload_Rhino_Geometry_Mesh_QuadRemesh.htm

If you want to use the -_QuadRemesh command with a macro then prefix the command with a hyphen β€œ-” to suppress the dialog box.


This is may be what I want, but do you have also a C++ example? I am using the RhinoSDK with C++ only.

Looks like it is not (yet) in the C++ API: https://developer.rhino3d.com/wip/api/cpp/

You may script the command from C++ like explained here:

In response to your similar question here.