algorithmic modeling for Rhino
Why are some classes originally defined in the Rhino SDK as classes now defined as structures in RhinoCommon? For instance a vector and a plane are now each defined as a structure. This means I cannot use a vector or a plane as an optional parameter to any of my functions, structures are not allowed for optional parameters. Why not keep them as a class? What is the benefit of changing them now to structures?
Tags:
Private Function DoSomething(Optional ByVal int As Integer? = Nothing) As String
If int Is Nothing Then
Return "Nothing"
End If
Return int.Value.ToString()
End Function
Function Name(Optional ByVal int As Point3d? = Nothing) As String
If int Is Nothing Then
Return "The is no point"
End If
Return int.Value.ToString()
End Function
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by