triangle_to_plane#

iskra.geometry.distances.triangle_to_plane(triangles: Tensor) tuple[Tensor, Tensor][SOURCE]#

Computes the origin-normal representation of a plane passing through a triangle.

Parameters:

triangles (Tensor[Bs, 3, 3]) – Set of triangles in 3D.

Returns:
  • (Tensor[Float, [Bs, 3]]) – Plane origins, taken to be triangles[..., 0, :].

  • ​​ (Tensor[Float, [Bs, 3]]) – Plane normals.