generative modeling for Rhino
I am trying to develop a definition that outputs a specific set of data according to a pattern that can be controlled sequentially, and am not sure how to go about doing this. Hopefully someone will have an idea or can suggest a direction.
I am using a spiral as the base geometry for a number of modules which extend along its length according to an Evaluate Length input. Currently I have 3 module sizes a 6, 3 and 1.5. I can increase the length of the evaluation and more boxes will pop-up along the line, which are then defined in more detail at a later stage in the definition. However my method for achieving the different module sizes is a bit cumbersome. Each basic module is being divided/achieved according to boolean patterns, to sub divide the segments from 6 to 3, then from 3 to 1.5. As such this messes with the order of the boxes. It then seems difficult to reorder.
I would like to be able to simply write a pattern input that then streams the module definition, and does not disrupt the order of the modules. For example I could create a list that simply allows me to type, a,b,c,a,b,e, and it would stream the data from a particular module type 'library' and order it along the spiral, with the modules each being different sizes.
I talked with my tutor who suggested the stream gate may work, but I'm not sure how to go about achieving this, or if this is even possible in a more efficient, and logical way with greater user control (the cull pattern method being semi-random).
As always your help and ideas would be greatly appreciated!
Attached the basics of my definition for advice. (Define 1 point use red eval length slider to extend the length)
Thanks Danny that's great. Cheers!
Danny has been faster. I just made a file he way I would do it. Maybe this is helping somehow :-)
Nice use of List Insert for appending 0.
Have you seen the Consecutive Domain component?
oh! Thats a cool one :-)
Thanks for the hint, Danny!
Thanks DeDackel, with the equation for the spiral, is there a simple way to control the dimensions. Unfortunately I dont really understand the function 3 inputs, so I'm not sure how to gain numerical dimensional control over the equation.
I imagine that its straightforward but cant seem to get my head around it!
I just made the L input for the repeat component parametric to the sliders. and just for fun I added a negeative offset.
I love the Consecutive Domain component... :-) saves time
as Danny already discribed the main differences between my file and yours is the defenition of your modules. I defined it by the t parameter of the curve and Danny by the length of the subcurve. The f3 component was just the mathamtical defenition of the spiral. Danny splits the function into its components.
Thanks for your help guys! I think i need to so some trigonometry revision... :-.