Is it possible to provide a short RC example of creating of SubD and display it in NURBS form in RC?
So far I have those lines, just wondering what is missing.
Dim icropt As SubD.InteriorCreaseOption = SubD.InteriorCreaseOption.AtMeshCrease
Dim mysub As SubD = Subd.CreateFromMesh(m, icropt)
mysub.SetSubDType(Subd.SubDType.QuadCatmullClark)
How to select SubD to be displayed in NURBS form?
At this moment you cannot get the SubD Nurbs patches via RhinoCommon.
When the first .NET wrapping pass was performed, this functionality wasn’t ready, yet.
I know that SubD is not a priority for now but I would like to keep exploring this subject.
Therefore, when do you think NURBS functionality can be added to RC?
@stevebaer - Are remember seeing an example Sub-D Rhinocommon .gh file shared on the forum. Do you know where I can locate this? As I recall, the .gh file contained a Python component with sample code for implementing the SubD class via Rhinocommon. - Ronnie
Hello All, I am trying to use RC and RS for subdividing the SUBD using python. I used the method rg. SubD and it return bool. How do I bake the newly subdivided SuBD in the Rhino Document? Any help would be appreciated!
This is the code -
import rhinoscriptsyntax as rs
import Rhino.Geometry as rg
#Get the geometry
a0 = rs.GetObject(‘Select the SubD geometry’) #Get the geometry out of the GUID
a1 = rs.coercegeometry(a0)
a2 = rg.SubDEdge.GetType(a1)
print(type(a1))
int = rs.GetInteger(‘Specify the number of division’,2 )
a3 = rg.SubD.Subdivide(a1,int)