Hi !
I am currently working on a macro for HyperMesh.
My problem right now is that i have a 2D mesh and some line going through many elements and i want to get the elements that are being crossed by a line.
To schematize the thing :
__l___l_l____l_____l_______l____
l l l l l l
where ' l ' represents my lines and '_' my 2D elements.
I want to write a subroutine that could do :
foreach lines $LineList {
Give me the element that the line is going through
}
Any ideas how to do this ?
I was thinking of creating a 1D element that would replace the line and then try to look for the intersection of both elements (1D/2D) but i can't find out how !!
Maybe with the the hm_collision function, anyone already used it ?
Thanks a lot in advance !
Clément