import json import struct def is_glb_file(filepath): with open(filepath, 'rb') as glbfile: if glbfile.read(4) == b'glTF': return True else: return False def parse_glb_data(data): def read_glb_chunk(glbfile): chunk_size, = struct.unpack('