@classmethod
def from_data(cls, mesh, context, primitive_data_list):
    """Creates a :class:`compas.files.GLTFMesh` from a glTF node dictionary
        and inserts it in the provided context.

        Parameters
        ----------
        mesh : dict
        context : :class:`compas.files.GLTFContent`
        primitive_data_list : list

        Returns
        -------
        :class:`compas.files.GLTFMesh`
        """
    if mesh is None:
        return None
    return cls(primitive_data_list=primitive_data_list, context=context,
        mesh_name=mesh.get('name'), weights=mesh.get('weights'), extras=
        mesh.get('extras'), extensions=mesh.get('extensions'))
