Hi, There seems to be an inconsistent result when converting SubD’s to NURBS between Rhino and Grasshopper. While Rhino converts uniform SubD’s to a nice singular surface, Grasshopper seems to break up the SubD to multiple surfaces. This is a large limitation as it prevents SubD Objects to be used as in intermediary form allowing to go back and fourth between meshes, SubDs and surfaces in Grasshopper. I am attaching a .gh file that displays the behavior:
Sorry I was not sure weather this is a SubD issue or a Grasshopper issue. I would really appreciate it if this could be looked at. Thank you!
You are not performing the same operation there. Plugging into the surface container is not a smart method, meaning it just literally translates each subD face to a Nurbs face. What you are missing is that the Rhino _ToNurbs command has a Faces=Packed option which is on by default (click subD options in command line when running ToNurbs to see it). Grasshopper does not yet have this component but it should, currently it is in Rhinocommon. See C# component attached:
Thank you @Michael_Pryor and @wim so much for clearing up the issue! The C# script is super handy for now although it breaks when dealing with multiple packed surfaces, but the python script I found at the Issue 114295 which @wim had pointed out seems to work fine in both instances, I couldn’t tell the difference in the syntax but I really appreciate the help. Hope this gets into the GH core soon.
@wim Thanks for pointing me to that thread and sorry if this is a duplicate the python script in the thread does the trick for now.
Hi,
IAC-Team (Thanks) and @Mahdiyar (Thanks) have programmed SubD components for Grasshopper, please try it. SubDToNurbs have PackFaces and GCon options…
Nice yea, I considered putting them in Pufferfish when they first came to Rhinocommon as well but then I saw a bunch in youtrack. I am pretty sure these are all going to just be a part of Grasshopper’s subD tab soon since they are all base subD functions so I didn’t bother. Thanks for putting it out there for now and cool class!