ForceVolMesh.to_vertices_and_cells

ForceVolMesh.to_vertices_and_cells()

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.