Grasshopper

algorithmic modeling for Rhino

I should be able to ask this question without posting a picture.

I have a closed brep that consists of horizontal and vertical surfaces.

I have exploded the brep and now I want to get only the horizontal surfaces?

So I need to make a cull pattern that sorts my surfaces to two lists of horizontal and vertical surfaces.

Does anyone have a quick (I assume) sollution?

Views: 6628

Replies to This Discussion

One solution that comes to my mind:

project all surfaces on flat (horizontal or vertical) one then you have some with 0 area and some with more than 0 - here is your culling pattern.

Thanks man, that worked! :)

I had already solved it with a much more complicated one...will use your solution.

Attachments:

I was trying to the same but with "cull index", and of course it didn't work. I used cull pattern now and it does but I still don't understand why, it is not a patterned "true/false", right? Could you explain why we use this one?

Thanks! I get it is a very silly question

Hi Gemma

Post your file, I'll check it.

HEy, thanks for your quick response! It is actually more of a theory question, I was trying to do exactly the same as you but using "Cull Item" Instead of "Cull pattern" (and didnt work).

I do not understand why it works using cull pattern and not with Cull item, just that (I got it to work thanks to the image above)

Thanks!

Evaluate surface, get the normal vector, measure it's Z component. If z = 0 then it's vertical, if z = 1 then it's horizontal.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service