tataratat/gustaf

Storage and maintenance of volume, face, and vertex groups

Closed this issue · 0 comments

It's possible that parts of the suggested functionality already exist.

I'm suggesting to allow storage of the following types of sets (groups) with an instance of a child class of Vertices:

  • groups of vertex IDs (as a dictionary with string-keys) as vertex_groups
  • groups of edge IDs (for Edges, Faces, Volumes), referencing get_edges(), as edge_groups
  • groups of face IDs (for Faces, Volumes), referencing get_faces(), as face_groups
  • groups of volume IDs (for Volumes), referencing volumes, as volume_groups

The purpose is mostly the storage of boundaries as vertex or face groups or also the distinction of materials through volume (3D) or face (2D) groups. I wanna store these groups in the 'mesh' objects to ensure that the information is transferred and adjusted when a mesh is manipulated in some way (e.g. element changes, extrusion, ...).

I would further suggest a method get_element_groups (and get_subelement_groups) that returns the 'most abstract' groups type, e.g. volume_groups (and face_groups) for Volumes etc.

So does any of this already exist? And if not, can I go ahead?