Grasshopper

algorithmic modeling for Rhino

i don't understand this one. and i thought i was getting some progress...
i made some operations, so i have 3 groups of circles and i want to loft them.
but when i try, the loft don't pick one of every list.
i don't know.
you better have a look, and tell me

pd. second picture is what happens when i join them

THANKS!

Views: 582

Attachments:

Replies to This Discussion

That's because it starts counting at ZERO. So your last index number will always be (ListLength-1).
so then? i can not get it
i tried what you see in the picture
but that is not correct...
some extra help, please?
Attachments:
What you tried now is what seems to be removing the last circle from your list.

Your problem is that you are dividing your curve by a preset segment length, not into a number of equal division. So after it divides your curve into pieces of that length, there is a little tail left in the end which is shorter than your specified segment length. If you use the 'DivideCurve' function instead of the 'DivideLength' component, it would fix your problem.

If you still wish to have segments with a preset length, and still not have a little tail, then you need to make your curve with a length that is the exact multiple of your desired segment length.
i just did that and did not work.
please have a look.
besides i don¡t understand why divide length would get diferent result.
one it is divided, i make circles.
so every divided line is now the same number of circles.
just need loft circles between the three lines, but the grasshopper is lofting the circles of the everyline, not with the others... sorry i can't explain it...have a look
and thanks again
Attachments:
This is because your data structures are all mixed up.

Its very unclear as to what is the final output you are looking for. Is it one lofted surface per curve? If that is the case, make sure all your circles on one curve stay in one list before going into loft. This would ensure one loft per curve.

Is this what you're after:

I think i have worked out whats going wrong with you latest code. By plugin in the (t) from the divide component into the N in the Random component you are not getting a list lenght as this input require for one requires an integer which the (t) is not and also it is out putting a list of numbers not a lenght. To fix this problem plug the first slider in N on your Random components then right click on n and in the expresion editor for that letter type N+1 as the divide component will always put out one more number than the input list lenght (per branch).

Now thats fixed all the nulls should have gone and random numbers are being generated and all lists are the same lenght. Next take each circle component and plug it into a graft component, then get a weave componet and plug each of thr grafts into each of the inputs,( you will need to go into the weave input manager and add the 3rd input and the right click on the p and change to go 0, 1, 2

then plug the weave into the loft and it will all work(*ish) You may want to consider how a few things though as the random number componet goes up to 4 for z height meaning that all the z heights of the final/top circles need to be at a hight of 4 to keep the lists in the write order, thus making all the pipes the same hight and the slider redundent.

If this is no problem and they are all ment to be the the at the hightest random number then leave it, if not you may want to consider putting a domain into the R input of the random number component that generates the z Height, into the A of the domian input 0 and the B the Z Slider thus keep the top cicle at the the top.

Hope this helps.
huge help
can't try it right now, but sure i will
thanks everybody!

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service