ordered_boundary_vertices#

iskra.topology.ordered_boundary_vertices(edges: Tensor) list[Tensor][SOURCE]#

Orders boundary vertices into contiguous loops.

Thin wrapper around ordered_boundary_edges(): for each connected component of the edge graph, returns the ordered sequence of vertex indices along that walk. Assumes that the edges belong to the boundary of a 2-manifold mesh.

Warning

This function is executed on the CPU.

Parameters:

edges (Tensor[Int64, [E, 2]]) – Edge-vertex indices, e.g. boundary edges from boundary().

Returns:

(list[Tensor[Int64, [Vc]]]) – One tensor of ordered vertex indices per connected component where Vc is the number of boundary vertices of that component.