Selecting all Z-Axis planes on a Brep

Is there a way to select all Z-Axis planes on a Brep using grasshopper if you have multiple objects?

… what is that?

vertical planes

thank you, those are horizontal planes, how do i select the all vertical ones?

ops, you’re right!

2 Likes

Instead of computing the angle between normals, I think I would calculate the dot product.

The cosine of 90 degrees is 0…

2 Likes

Thank you Mr. Ricardo, this is good

This definition doesn’t work properly. Please see the attachement.
Horizontal_Faces_not_selected.gh (33.8 KB)

But this one it is working:

1 Like

this works good too, it selects the horizontal faces, how don you select the vertical faces?

The dot product is the cosine of the angle between the normal and a given vector.

The cosine of 90° is 0. Two parallel vectors have a dot product of 1, opposing vectors -1…

I would strongly advise to use the dot product and not the angle.

Horizontal_Faces_dotproduct.gh (36.7 KB)

1 Like