Difference between Objref and RhinoObjects


(Vincent Shen) #1

Hello. Could anyone here explain to me the difference between Objref and RhinoObject. It seems to me that rhinoscriptsyntax can coerce GUID into RhinoObject, but what is the point to have Objref in the middle?

Regards,


(David Rutten) #2

ObjRef is a reference to a RhinoObject. It contains additional information about how that reference was made. For example if the object was picked by the mouse, then the ObjRef can tell you on what part of the object that pick happened.

ObjRef is also potentially a lot more lightweight than a RhinoObject and less likely to be shared so it won’t just change state on you behind your back.


RhinoObject vs ObjRef in ObjectTable Methods