Hi,
I am just getting started with Rhino.Compute.
I am running compute locally.
I developed a Test .rhp plugin. For example,What I am trying to achieve is when user enter command “Make_Sphere” Sphere should be created by Compute and not by Rhinocommon. Geometry is getting created by compute after command is used, however I am strugling to bake that geometry created by Compute in current rhino document. I cannot use RhinoDoc.Objects.Add…(…) as Compute generated geometery is Rhino3dmIO geometry. Is there a way to solve this?
In the end ,user shall give inputs (geometry and numericals) on being asked by commands/buttons. This input data would be send to compute for solving the problem and output is showed to user in current active document. Therefore conversion from Rhinocommon objects to Rhino3dmIO objects and vice versa is needed.
I hope I am making sense.
see images below.
this is what I did to solve the problem but I think it gets messy when I have thousands of objects of different ObjectType. Is there a better way to do this?
Thanks in Advance!