VolMesh.cell_to_vertices_and_faces

VolMesh.cell_to_vertices_and_faces(cell)[source]

Return the vertices and faces of a cell.

Parameters

cell (hashable) – Identifier of the cell.

Returns

tuple – A 2-tuple containing

  • a list of vertices, represented by their XYZ coordinates, and

  • a list of faces.

Each face is a list of indices referencing the list of vertex coordinates.