# RayBounce.ByOriginDirection node - finding unintersected rays

Hi,
I want to find the vectors that are not intersected with the objects from an observation point.But,
RayBounce.ByOriginDirection node only shows the intersection points and intersected elements. When points output list’s sublist has one element that means there is uninstersected ray and the observation point is shown in sublist, and if the a ray intersected with an element sublist includes 2 points which one is observation point and the other is intersection point.

That is why, I have used RayBounce.ByOriginDirection node and found out the intersected rays using the code block “a=List.FilterByBoolMask(lst,Count(lst<1>)==2)[“in”];” and also found out the number of unintersected rays using the code block “a=List.FilterByBoolMask(lst,Count(lst<1>)==1)[“in”];”
but couldn’t find the unintersected rays’ direction since it only gave the observation point. Could you give me an idea to find unintersected rays’ direction?

Finding the directions of intersected lines and then finding the difference from all directions list using List.SetDifference node is inefficient since vectors are not created with the same x,y, and z values.

Ece

[image]

Hi @Ecenurc not sure, is it something here ?

Mr Villadsen, thank you very much!

that is definitely there

But, when I try to make the same thing after the “filter boolean mask” node, I get start points for every vector that is not intersected to , but not vectors. I have controlled the lacing and list levels but I’m missing something and can’t figure it out which one.

gettingvector.dyn (30.3 KB)

1 Like

hi try as here

3 Likes

omg thank you very very much!

1 Like