# resqpy.olio.intersection¶

intersection.py: functions to test whether lines intersect with planes.

Functions

 `distilled_intersects` Returns lists of line and triangle indices, and corresponding intersection points. `intersects_indices` Returns a list of the (triangle) indices where a valid intersection has been found for a single line. `last_intersects` From the result of line_set_triangles_intersects(), returns a vector of intersection points, one per line. `line_line_intersect` Returns the intersection x',y' of two lines x,y 1 to 2 and x,y 3 to 4. `line_plane_intersect` Find the intersection of a line with a plane defined by a triangle. `line_set_triangles_intersects` Find the intersections of each of set of lines within each of a set of triangles in 3D space. `line_triangle_intersect` Find the intersection of a line within a triangle in 3D space. `line_triangle_intersect_numba` Find the intersection of a line within a triangle in 3D space. `line_triangles_intersects` Find the intersections of a line within each of a set of triangles in 3D space. `lines_for_triangle` From the result of line_set_triangles_intersects(), returns a list of lines intersecing given triangle. `point_projected_to_line_2d` Return the point on the unbounded line passing through l1 & l2 which is closest to point p, in xy plane. `point_snapped_to_line_segment_2d` Returns the point on the bounded line segment l1, l2 which is closest to point p, in xy plane. `poly_line_triangles_first_intersect` Finds the first intersection of a segment of an open poly-line with any of a set of triangles in 3D space. `poly_line_triangles_intersects` Find the intersections of each segment of an open poly-line with each of a set of triangles in 3D space. `triangles_for_line` From the result of line_set_triangles_intersects(), returns a list of intersected triangles for a line.