differt.geometry.triangles_contain_vertices_assuming_inside_same_plane

differt.geometry.triangles_contain_vertices_assuming_inside_same_plane#

triangles_contain_vertices_assuming_inside_same_plane(triangle_vertices, vertices)[source]#

Return whether each triangle contains the corresponding vertex, but assuming the vertex lies in the same plane as the triangle.

This is especially useful when combined with the image_method, as the paths returned will also lie in the same plane as the mirrors, but may be outside of the actual reflector, e.g., a triangular surface.

Parameters:
Return type:

Bool[Array, '*#batch']

Returns:

A boolean array indicating whether vertices are in the corresponding triangles or not.