def _run(progressive_stream_hash, offset, length, refinements_read, num_refinements, previous_data): with base.print_exc_onerror(): pm_data = previous_data + open3dhub.hashfetch(progressive_stream_hash, httprange=(offset, length)) (refinements_read, num_refinements, pm_refinements, data_left) = pdae_utils.readPDAEPartial(pm_data, refinements_read, num_refinements) return (refinements_read, num_refinements, pm_refinements, data_left)
def _run_load(mesh_data, boundsInfo, texture_data, modelslug): with base.print_exc_onerror(): return open3dhub.load_into_bamfile(mesh_data, boundsInfo, {'atlas.jpg': texture_data}, modelslug)
def _run_download(mesh_hash, atlas_hash, base_level): with base.print_exc_onerror(): mesh_data = open3dhub.hashfetch(mesh_hash) texture_data = open3dhub.hashfetch(atlas_hash, httprange=(base_level['offset'], base_level['length'])) return (mesh_data, texture_data)
def _run(atlas_hash, levelinfo, modelslug): with base.print_exc_onerror(): texture_data = open3dhub.hashfetch(atlas_hash, httprange=(levelinfo['offset'], levelinfo['length'])) return open3dhub.load_into_bamfile(None, None, texture_data, modelslug)