gustaf.volumes.Volumes#

class gustaf.volumes.Volumes(vertices=None, volumes=None, elements=None)[source]#

Bases: Faces

Methods

Volumes.faces()

Faces here aren't main property.

Volumes.sorted_volumes()

Sort volumes along axis=1.

Volumes.to_faces([unique])

Returns Faces obj.

Volumes.unique_volumes()

Returns a namedtuple of unique volumes info.

Volumes.update_faces()

Alias to update_elements.

Volumes.update_volumes(*args, **kwargs)

Alias to update_elements.

Volumes.whatareyou(volume_obj)

overwrites Faces.whatareyou to tell you is this volume is tet or hexa.

Attributes

Volumes.const_faces

Returns non-writeable view of faces.

Volumes.const_volumes

Returns non-writeable view of volumes.

Volumes.kind

Volumes.volumes

Returns volumes.