← All ideas
  • Published 11 Oct 2024

Raycast hits count

Currently raycast has boolean field if ray hit target geometry or not, which is ok for most cases, but i feel we need information about count of hits. It will be beneficial to get count of hits for example for checking if point is inside of closed surface, using only raycast, or, in my case, to determine if instance of curve for plexus structure is inside or outside the surface, using only points it is created from. изображение_2024-10-11_171526777.png

0%

Development Status: Open

Upvote 0 Downvote 0
kirill
11 Oct 2024

1 Comment

effire

Perhaps for your task the information about the normals of the object will be enough. Also, SDF nodes are already being developed, as far as I know. In this case, you can also convert the hand geometry into volume and calculate the volume density for each point of the curve. If the density is zero, then the point is not inside the object and vice versa.