Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

TraceARay method has no radius specification?

Hi Forum

 

Is there a way to specify a ray radius when checking ray intersections via the NXOpen api? Or do i need to fire a bunch of individual rays manually?

1 REPLY
Solution
Solution
Accepted by topic author ken3
‎04-15-2016 04:55 PM

Re: TraceARay method has no radius specification?

[ Edited ]

The TraceARay function just intersects a ray (an infinite line) with the model.

 

If you want a "fat" ray, with a non-zero radius, you can either fire several rays, or intersect a cylinder. Or depending on what you're trying to do, maybe you can measure distance to the ray, instead of just intersecting it.

山田
yamada