@classmethod
def validate_vertices(cls, vertices):
    """Raise an exception if there are either too many vertices, or the vertices do not
        represent points in 3-space.

        Parameters
        ----------
        vertices : list

        Returns
        -------

        """
    if len(vertices) > 4294967295:
        raise Exception('Invalid mesh.  Too many vertices.')
    positions = list(vertices.values()) if isinstance(vertices, dict
        ) else vertices
    for position in positions:
        if len(position) != 3:
            raise Exception(
                'Invalid mesh.  Vertices are expected to be points in 3-space.'
                )
