VolMesh.to_vertices_and_cells

VolMesh.to_vertices_and_cells()[source]

Return the vertices and cells of a volmesh.

Returns

tuple – A 2-tuple containing

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

  • a list of cells.

Each cell is a list of faces, which are lists of indices referencing the list of vertex coordinates.