From the course: Grasshopper and Rhino: C# Scripting

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Baking

Baking

From the course: Grasshopper and Rhino: C# Scripting

Start my 1-month free trial

Baking

- [Tutor] When designing algorithms in C#, there may be times that we want to bake geometry based on certain attributes it has. To achieve this in this lesson, we're going to learn about baking geometry directly in C#. I currently have the exercise file open for this lesson, which is where we left off from in the last lesson. What we'll be doing is baking all the geometry that we output from this C# component. Let's do this in a new component. So go ahead and place a new C# component and we'll update the input parameter X to panel. This will be a type of brep, and we're going to leave this as item access, so we don't have to loop through each item that's input. Next, let's change a Y to bake, and this will be of type of boolean. This can determine when to bake the geometry. So lets input the panels into the panel parameter and for the bake, let's add a boolean button, this outputs true every time that it's hit. Then open…

Contents