Quadremesh a SudD controlpolygon with different edge length, Rhinocommon

I’m finding that I can get a better SudD shoe last by first quadremeshing/subd with a small edge length and then extracting the control polygon and quadremeshing/subd with the final edge length (longer). This works better than just going straight to the final desired edge length. See this thread if you aren’t quite sure what I’m talking about.

Now I need to automate this with Rhinocommon. To get the control polygon, I’m using Mesh.CreateFromSubDControlNet
And then I use that in SubD.CreateFromMesh to get the SubD.

The problem is that there is no opportunity to specify a different edge length with the SubD.CreateFromMesh function.

I would just script the -QuadRemesh command, but this doesn’t allow me to specify a guide curve.

Any suggestions?

Thank you,
Sam

In Rhino 8 run the ScriptEditor command and load the following C# script and run it on your file you posted. You’ll want to add some more details but you’ll get the idea.

QuadRemeshShoeLast.cs (1011 Bytes)

Got it, thanks!