edge_flaps#

iskra.topology.edge_flaps(faces: Tensor) Tensor[SOURCE]#

Returns a tensor denoting the right and left faces of an edge.

Computes a tensor flaps, such that flaps[i, 0] is the index of the left face and edge_flaps[i, 1] the index of the right face containing edge \(i\). If an edge is a boundary edge and only has a triangle on one of its sides, the other side will be equal to -1.

Caution

Assumes a manifold mesh.

Parameters:

faces (Tensor[Int64, [F, 3]]) – Triangle faces.

Returns:

flaps (Tensor[Int64, [E, 2]]) – The edge flaps tensor.