Exemplo n.º 1
0
def test_download_meshes(cv_path, basic_mesh_id, full_cell_mesh_id, tmpdir):
    meshes = trimesh_io.download_meshes([basic_mesh_id, full_cell_mesh_id],
                                        tmpdir,
                                        cv_path=cv_path,
                                        merge_large_components=False)
    meshes = trimesh_io.download_meshes([basic_mesh_id, full_cell_mesh_id],
                                        tmpdir,
                                        cv_path=cv_path,
                                        merge_large_components=False,
                                        n_threads=2)
Exemplo n.º 2
0
def download_meshes(segids,
                    overwrite=False,
                    parallel=1,
                    meshdir=MITOMESHDIR,
                    cvpath=ngl.MITO_CVPATH,
                    **kwargs):
    trimesh_io.download_meshes(segids,
                               meshdir,
                               cvpath,
                               overwrite=overwrite,
                               n_threads=parallel,
                               **kwargs)
Exemplo n.º 3
0
import sys
from meshparty import trimesh_io

meshlist = sys.argv[1]
meshlist = list(map(int, meshlist.split(",")))

with open("datasource.txt", "r") as f:
    datasource = f.read().strip()

save_dir = "meshes"

trimesh_io.download_meshes(meshlist, save_dir, datasource, fmt="obj")