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:
triangle_vertices (
Float[ArrayLike, '*#batch 3 3']) – an array of triangle vertices.vertices (
Float[ArrayLike, '*#batch 3']) – an array of vertices that will be checked.
- Return type:
- Returns:
A boolean array indicating whether vertices are in the corresponding triangles or not.