gustaf.edges.Edges#

class gustaf.edges.Edges(vertices=None, edges=None, elements=None)[source]#

Bases: Vertices

Methods

Edges.centers()

Center of elements.

Edges.dashed([spacing])

Turn edges into dashed edges(=lines).

Edges.referenced_vertices()

Returns mask of referenced vertices.

Edges.remove_unreferenced_vertices()

Remove unreferenced vertices.

Edges.shrink([ratio, map_vertex_data])

Returns shrunk elements.

Edges.single_edges()

Returns indices of very unique edges: edges that appear only once.

Edges.sorted_edges()

Sort edges along axis=1.

Edges.to_vertices()

Returns Vertices obj.

Edges.unique_edges()

Returns a named tuple of unique edge info.

Edges.update_edges(*args, **kwargs)

Alias to update_elements.

Edges.update_elements(mask)

Similar to update_vertices, but for elements.

Attributes

Edges.const_edges

Returns non-writeable version of edges.

Edges.const_elements

Returns non-mutable version of elements.

Edges.edges

Returns edges.

Edges.elements

Returns current connectivity.

Edges.kind

Edges.whatami

whatami?