Submitted by Drew Jones on Mon, 07/29/2013 - 11:54
Forums:
I have an interesting challenge that has me stumped. I need to pierce an assembly with a selected vector and extract information about the solids that are pierced. At the most basic level I need the X,Y,Z point where the vector enters and exits each solid and either the name of the part and/or the material of that solid. The assembly can have numerous parts and the vector can be in any direction. Getting the material is cream. If I can get the part names of the pierced parts, I can do a lookup table to get the material. Anyone tried anything like this?
Drew
re: pierce assembly
I don't have any code on hand to do that, but here's what I'd try:
re: pierce assembly
Thanks. I like the minimum distance method you described. I was hoping to find a way to use the intersection command but this sounds simpler. I'll give that a try.
Drew
Drew
Determining What is Pierced by a Vector
There is an Open C function called UF_MODL_trace_a_ray() that does exactly that.
It is wrapped for use in NXOpen.Net as UFModl.TraceARay()