algorithmic modeling for Rhino
Hi,
in general you need to create a Guid array and then add the geometry you are generating in GH into the current RhinoDoc.
ie.
guid = doc.Objects.AddGeo((my_geometry) geos[i], attributes);
An example can be found here
Usually it something like:
LAtelly in GHpython you can invoke the baking of GH componets
SomeComponent.BakeGeometry(Rhinodoc,attributes,guids)
Cheers,
m
Rhino.RhinoDoc.ActiveDoc.Objects .Add(), .AddCurve(), .AddBrep(), etc.
In Grasshopper itself, baking functionality is provided by the IGH_Goo type which wraps around the data. You typically don't have access to this from within scripting components, only when developing GHA plugins using Visual Studio.
If you're scripting, it would help if you knew what type of geometry you're getting.
So, to be clear, are you saying that if I wish to script inside GH, that I will need to know the geometry (as what Daniel was saying above)? And if I want a catch all for all geometry, I can use the IGH_Goo type within Visual Studio?
Thanks to all!
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
© 2024 Created by Scott Davidson. Powered by