generative modeling for Rhino
I need to find out how to create rectangles out of lines, of course, i refer to different rectangles out of lines that don't start and finish where the should, but are longer or are shared with other future rectangles...
I made this with the "substrate" algorithm.
The whole point is to create a cluster with two inputs (sliders); one to manage the seed of the random cluster (it has to be this way) that creates the layout of the rectangles and another to be able to change the separation in between them.
So far i've managed to create the layout, but they are just lines, not rectangles, they are longer than the rectangle they refer to, or are shared by a bunch of my desired rectangles...
My idea is to get them to be rectangles so that i can offset them (so that i put there my input (slider) for the cluster as the offset distance. In addition I have to color these rectangles, and don't have much of a clue either...
Thanks in advance!
Thank you! great job!
Would it be possible to instead of offsetting them in the Z axis (kind of an extrusion) offsetting them in the plane they belong? I mean, what i have tried so far is scaling them in the same plane (working all the time in 2D) but i dont get the desired effect as the scaling is in relation to the size of the rectangle and what i intend to do is to be able to manipulate the separation in between these rectangles (as if they were bricks and i wanted to control the size of the spacing they have from one to the next, being always the same separation independently of the size of each block, let's say for example a slider, that is variable but would be the absolut value for the separation among the rectangles)
Thanks again for your help!!