face_normals#
- iskra.geometry.normals.face_normals(simplices: Tensor) Tensor[SOURCE]#
Computes per-face normals.
Thin wrapper dispatching to either
iskra.edge_normals()oriskra.triangle_normals(). Works on triangle meshes in 3D and polylines in 2D.- Parameters:
simplices (
Tensor[Float, [Bs, S, Dim]]) – Simplices tensor s.t. second to last dimension represent corners, last represents coordinates.- Raises:
NotImplementedError – Simplices must have either 2 or 3 corners.
- Returns:
(
Tensor[Float, [Bs, S, Dim]]) – Face normals.