fafbseg.google.get_mesh#

fafbseg.google.get_mesh(x, bbox, vol=None)[source]#

Get mesh for given segmentation ID using CloudVolume.

This produces meshes from scratch using marching cubes. As this requires loading the segmentation data it is not suited for generating meshes for whole neurons.

Parameters:
  • x (int, list of ints) – Segmentation ID(s). Will produce a single mesh from all segmentation IDs.

  • bbox (list-like) – Bounding box. Either [x1, x2, y1, y2, z1, z2] or [[x1, x2], [y1, y2], [z1, z2]]. Coordinates are expected to be in nanometres.

  • vol (cloudvolume.CloudVolume) – CloudVolume pointing to the segmentation data.

Returns:

  • pymaid.Volume

  • None – If queried ID(s) are either only in a single voxel or if there are no IDs other than the queried ID(s) in the bounding box.