Topology & Scatter-Gather#

The topology module in iskra allows you to extract topology defined in a mesh.

iskra.topology#

assemble_incidence_matrix(n_faces, ...[, signed])

Assembles face-subface relationships into a matrix.

boundary(faces)

Finds all boundary subfaces of a mesh.

connected_components(n_vertices, faces)

Finds the connected components of a mesh.

edge_flaps(faces)

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

face_index(data, faces[, squeeze])

Gathers subface values onto the faces that contain them.

face_to_subface_idcs(face_dim[, subface_dim])

Returns canonical indices for subfaces within faces.

find_cliques(edges, max_d)

Finds all cliques in a graph for all sizes up to max_d.

get_subfaces(faces[, subface_dim])

Finds all subface_dim-dimensional subfaces contained in a set of faces.

get_vert_vert(faces)

Vertex-vertex adjacencies.

incidence_matrix(faces[, subface_dim, signed])

Constructs the face-subface incidence matrix.

ordered_boundary_edges(edges)

Orders boundary edges into contiguous loops.

ordered_boundary_vertices(edges)

Orders boundary vertices into contiguous loops.

reduce_on_subface(data, faces, n_subfaces, ...)

Scatter-reduce data from faces onto constitutive subfaces.

scatter_edge_to_vert_vert(values)

Scatters scalar edge data to vertex-vertex data.

simplex_parity(faces)

Parity of each simplex's vertex ordering relative to sorted order.

vertex_adjacency_matrix(n_vertices, faces)

Undirected vertex-vertex adjacency matrix.