intersection_line_triangle
- compas.geometry.intersection_line_triangle(line, triangle, tol=1e-06)[source]
Computes the intersection point of a line (ray) and a triangle based on the Moeller Trumbore intersection algorithm
- Parameters
line (tuple) – Two points defining the line.
triangle (list of list of float) – XYZ coordinates of the triangle corners.
tol (float, optional) – A tolerance for membership verification. Default is
1e-6
.
- Returns
point or None