resqpy.olio.intersection.distilled_intersects

resqpy.olio.intersection.distilled_intersects(line_set_intersections)[source]

Returns lists of line and triangle indices, and corresponding intersection points.

argument:
line_set_intersections (numpy float array of shape (nl, nt, 3)): where nl is the number of lines,

nt is the number of triangles and the final axis is x,y,z; nan values indicate no intersection; this array is as returned by the line_set_triangles_intersects() function or the poly_line_triangles_intersects() function

Returns

(numpy int array of shape (N,), numpy int array of shape (N,), numpy float array of shape (N, 3)) – for N intersections, first array is list of line indices, second is list of triangle indices, the third array contains the (x, y, z) coordinates of the intersection points