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.
Hey, I need to use this, but the results donāt seem correct. Could you see if I am doing something wrong? I am only interested in adjacency and coplanarity (the quad diagonals ratio doesnāt concern me).inaccurateResults.gh (14.1 KB)
The script from here might help you:
Thank you!
there is an upgraded version? complex meshes have a little issues, I understand can“t be perfect i just want to know if there is an improved script