@classmethod
def from_vertices_and_cells(cls, vertices, cells):
    """Construct a volmesh object from vertices and cells.

        Parameters
        ----------
        vertices : list
            Ordered list of vertices, represented by their XYZ coordinates.
        cells : lists of lists
            List of cells (list of halffaces).

        Returns
        -------
        Volmesh
            A volmesh object.

        """
    volmesh = cls()
    for x, y, z in vertices:
        volmesh.add_vertex(x=x, y=y, z=z)
    for cell in cells:
        volmesh.add_cell(cell)
    return volmesh
