boundary#

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

Finds all boundary subfaces of a mesh.

Boundary subfaces are defined as those that appear in one face only. A boundary subface inherits the orientation from their parent face (see face_subface_idcs() for more information on the subface vertex ordering).

Tip

The faces can be of arbitrary dimension. Tets, triangles, and edges all work.

Parameters:

faces (Tensor[Int64, [F, FV]]) – Face-vertex indices.

Returns:

(Tensor[Int64, [BS, SV]]) – Boundary subface-vertex indices, one row per boundary subface. SV is one less than FV.