dvid.fetch.get_meshes¶
- dvid.fetch.get_meshes(x, fix=True, output='auto', on_error='warn', max_threads=5, progress=True, server=None, node=None)[source]¶
Fetch precomputed meshes for given body ID(s).
- Parameters
x (int | str | list thereof) – ID(s) of bodies for which to download meshes. Also accepts pandas DataFrames if they have a body ID column.
output ("auto" | "navis" | "trimesh" | None) –
- Determines the output of this function:
auto =
navis.MeshNeuron
if navis is installed elsetrimesh.Trimesh
navis =
navis.MeshNeuron
- raises error ifnavis
not installedtrimesh
on_error ("warn" | "skip" | "raise") – What to do if fetching a mesh throws an error. Typically this is because there is no mesh for a given body ID but it could also be a more general connection error.
max_threads (int) – Max number of parallel queries to the dvid server.
progress (bool) – Whether to show a progress bar or not.
server (str, optional) – If not provided, will try reading from global.
node (str, optional) – If not provided, will try reading from global.
- Returns
Mutation ID is attached as mutation_id property (is
None
if not available.)- Return type
mesh trimesh.Trimesh | navis.MeshNeuron
See also
mesh_neuron()
Use this to create a mesh from scratch - e.g. if there is no precomputed mesh for a given body.