Grasshopper

algorithmic modeling for Rhino

Apologies for not using the correct wording. I am not a programmer. But is there a method/function for baking? 

Preemptive thanks!

Views: 637

Replies to This Discussion

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! 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service