I would like to convert a QuadMesh object to a SubD in Rhino using RhinoCommon, but I want to avoid using [rs.Command(“_ToSubD”)] or any command-line calls.
In the GUI, I usually use _ToSubD with the following options:
Mesh Use = Control Points
Mesh Crease = Yes
Mesh Edge = Yes
Surface Use = Position
Surface Edge = No
However, RhinoCommon’s SubDCreationOptions exposes different parameters, and I’m not sure how to set them to match the GUI options above.
Is there a way to achieve the same result as _ToSubD with these options using only RhinoCommon?
Or is there another function in RhinoCommon that uses the exact same parameters as _ToSubD?
Either approach would be a solution for me.
Additionally, when using Rhino.Geometry.Mesh.QuadRemesh() to remesh to a quad mesh, is there a way to directly convert the result to SubD as in the GUI, without using command macros?
Any advice or code examples would be greatly appreciated. Thank you!