gustaf.faces.Faces#

class gustaf.faces.Faces(vertices=None, faces=None, elements=None)[source]#

Bases: Edges

Methods

Faces.dashed()

Turn edges into dashed edges(=lines).

Faces.edges()

Edges from here aren't main property.

Faces.single_faces()

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

Faces.sorted_faces()

Similar to edges_sorted but for faces.

Faces.to_edges([unique])

Returns Edges obj.

Faces.to_subelements([unique])

Returns current elements represented as its boundary element class.

Faces.unique_faces()

Returns a namedtuple of unique faces info.

Faces.update_edges()

Alias to update_elements.

Faces.update_faces(*args, **kwargs)

Alias to update_elements.

Faces.whatareyou(face_obj)

classmethod that tells you if the Faces is tri or quad or invalid kind.

Attributes

Faces.BC

Faces.const_edges

Returns non-writeable version of edges.

Faces.const_faces

Returns non-writeable view of faces.

Faces.faces

Returns faces.

Faces.kind

Faces.whatami

Determines whatami.