RayCast Result: Entity Equivalence in a TransientId
Jonathan_Hutchinson
Member Posts: 162 PRO
I have an input surface that I am casting rays onto, but as well as this surface I am also casting rays through another object's faces. I'm trying to see which ones reach the surface and which don't. So I'm attempting to use the transientId in the RaycastResult map. What I'm finding though, is that evaluating the surface query before raycasting gets a transientId that doesn't feature in any of the intersections, and as the name suggests and I guess as would be expected the transientId is no longer what it was before!
Is there some way I can detect the equivalence of the entity that the transientId results in, even if the ids are different? Otherwise to me it seems like the queried thing is a little bit lost.
Is there some way I can detect the equivalence of the entity that the transientId results in, even if the ids are different? Otherwise to me it seems like the queried thing is a little bit lost.
Tagged:
0
Comments
-
You may need to use a robust query or a tracking query: https://cad.onshape.com/FsDoc/library.html#startTracking-Context-map though I'm surprised raycasting would alter the context and invalidate transient ids. Perhaps share the doc (or a doc showing the relevant FeatureScript sample).0

