algorithmic modeling for Rhino
I'm not sure I understand your question, but here is a way to group a list into sub-lists, each with three members(the last list may have fewer):
grouped_lst = [lst[x:x+3] for x in range(0, len(lst), 3)]
Thank u fro reply...i tried and get nothing. when input point cloud. how to do this ?
Hi Shridhar, I don't speak Parseltongue so I cannot help you with your script, but I don't think Grasshopper supports pointclouds at all.
Or did you just mean 'multiple points'...?
If you post the file that you are working with it will be easier to debug.
If I have to guess, you need an output on your ghPython component called grouped_lst (or whatever name you assign the list of grouped points.)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by