algorithmic modeling for Rhino
Hopefully this is not such a time consuming ghoffee question, but it also acts as a precursor to another one down the line.
Solutions to be classed by either:
Winner announced this time tomorrow (0830 GMT)
I have to bail now. Tomorrow is Saturday so I won't be able to upload the file then, so if you promise not to cheat and still want to have a go, don't look...
P R E L I M I N A R Y W I N N E R S
Plug-ins: Technically as python is a plug-in still, the winner is Anders as there were no other runners (Yet)
Scripting: Anders gets a Special mention for bringing my attention to bin(x) in python but the award goes to David
S O L U T I O N
[Image will be posted Monday]
Awesome! Totally related!
Somewhat related as this was a precursor to a binary adder in gh with out using any operators :)
As a practical use of this. Recently I was helping students control ABB robots from GH (using Thibault's HAL plugin). The robot controller can only output multiple digital values (0 or 1). The students wanted to be able to control the speed of a motor using arduino (as an 8 bit value). So in GH the integer values corresponding to speed were converted to binary, each binary digit assigned to a different digital output, and then recombined again into an integer after the controller outputs the values. I used a C# script for this.