Você está na página 1de 2

COMPUTATIONAL METHODS

LAB 13 – LOGIC AND CONDITIONALS

Instructions:

Follow the prompts and answer the questions in red.

All necessary files can be found on the main course page under week 13.

Questions for Lab_13a.gh:


For each of the questions, first unhide the Circle and the Polygon to view the script output. Then
hide them again before moving on to the next script. Examine one script at a time. Make sure you
are in Top view, unless otherwise noted.

Script 1A

• Double click on "Toggle"


• What does the Dispatch component do? Look at the component description and all inputs
and outputs.
• What could you do with this kind of script in a design?

Script 2A

• Manipulate the A slider. After what number does the Polygon turn into a Circle?
• Examine the Larger component - what does it output and how does this affect the
Dispatch component?

Script 2B

• Manipulate the B slider. What happens to the script output?


• How does the Larger component handle multiple inputs?
• What do you notice about the size of the L and P lists in the Dispatch component?

Script 2C

• Switch to Front View


• Manipulate the B slider. What happens to the script output?
• Examine the pComp component - what does it do? What kind of outputs does it produce?
How does the the Z output interact with the Larger component to drive the script output?
• Manipulate the Starting Z slider. Now what is happening to the script output?
• Give an example of how testing the Z-coordinate would be useful in a design.
Nicholas Senske - University of North Carolina at Charlotte - version 1.0
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Script 2D

• Switch back to Top View.


• Manipulate the B slider. Now what happens to the script output?
• What does the Equals component test?

Script 2E

• Manipulate the B slider. Now what happens to the script output?


• What does the Mod component do? What is the output it creates?
• When we test a Modulo for 0 using Equals, what is the resulting script output? Why is
this useful in a design?
• How is this different / better than using a Cull Pattern to create similar output?

Questions for Lab_13b.gh:

• Open the Lab_13b.3dm file and the Lab_13b.gh files together.


• Turn on the Circle components at the end of the top script. Manipulate the Rotate slider.
What happens to the circles on the surface?
• Examine the Con component. What does it do / what are the outputs?
• How does the Con component interact with the logic of the Larger component? In other
words, how does the script work?

Nicholas Senske - University of North Carolina at Charlotte - version 1.0


This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Você também pode gostar