@classmethod
def from_mesh(cls, context, mesh):
    """Construct a :class:`compas.files.GLTFMesh` object from a compas mesh.

        Parameters
        ----------
        context : :class:`compas.files.GLTFContent`
        mesh : :class:`compas.datastructures.Mesh`

        Returns
        -------
        :class:`compas.files.GLTFMesh`
        """
    vertices, faces = mesh.to_vertices_and_faces()
    return cls.from_vertices_and_faces(context, vertices, faces)
