algorithmic modeling for Rhino
So I'm still trying to get my head around the idea of data trees. With my definition below, I've figured out how to extract certain cells, but I'm extracting them at random. How do I know which path relates to which cell?
Tags:
can you be more clear about what you're trying to do? In your case so far you have 100 cells, so your data structure when you explode each cell brep reflects that; they are numbered from 0 to 99 (with several lead-in zeros). It's certainly possible for you to label each cell so you'll know which one is which...but it would probably be easier to help you out if you could explain more what you want to accomplish...
I don't have an exact intent. I'm just playing with the idea of a 3d voronoi to define space and maybe my facade. I just was curious if there was a more exact way to isolate certain items in a list.
well...sure, there are all sorts of exact ways to isolate items. The real key is knowing why you want to isolate first and then engaging in the how.
With the geometry you're starting out with here, there isn't very much embedded order that would help you understand it very well or systematically isolate it in any really interesting way. For example, the brep cells aren't listed in order from left to right, top to bottom, or anything like that. So if you use the list item to select them by their index, you aren't going to get your objects in any logical order. If you want to start selecting cells strategically, you'll have to engage in a different sort of logic. (By the way, the same applies to the sub-lists in a data tree that you get when you explode your brep and start looking at individual faces or edges...just selecting individual pieces in order is going to give you random faces, edges or vertices.)
I've attached a super quick adjustment by way of example that isolates those voronoi faces that lie against your initial container box. This is a simple strategy that uses proximity to discard items that you don't want. The order isn't necessarily important at this stage. But there are so many ways to engage with grasshopper in this way. I would really recommend going here: http://formularch.blogspot.dk/ and playing with some of the examples. These are really direct tutorials that delve into some complexity but are nonetheless very clear in their layout, and working through them should hopefully help you on your way!
Thanks for the help! I really appreciate it! I'll check out your definition and the tutorials and let you know if I have any questions.
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