Exemplo n.º 1
0
 def volumes3d(self, source, dx=0.25, xlo=None, xhi=None, ylo=None, yhi=None, zlo=None, zhi=None, n_soma_step=100):
     mesh, surface_areas, volumes, triangles = geometry3d.voxelize2(
         source, dx=dx, xlo=xlo, xhi=xhi, ylo=ylo, yhi=yhi, zlo=zlo, zhi=zhi, n_soma_step=n_soma_step
     )
     surface_areas._values *= self._surface_fraction
     volumes._values *= self._volume_fraction
     return mesh, surface_areas, volumes, triangles
Exemplo n.º 2
0
 def volumes3d(self, source, dx=0.25, xlo=None, xhi=None, ylo=None, yhi=None, zlo=None, zhi=None, n_soma_step=100):
     mesh, surface_areas, volumes, triangles = geometry3d.voxelize2(
         source, dx=dx, xlo=xlo, xhi=xhi, ylo=ylo, yhi=yhi, zlo=zlo, zhi=zhi, n_soma_step=n_soma_step
     )
     volumes._values *= (
         self._area_per_vol
     )  # volume on 2D boundaries is actually the area; the amount of space for holding things
     surface_areas._values *= 0
     return mesh, surface_areas, volumes, triangles
Exemplo n.º 3
0
 def volumes3d(self, source, dx=0.25, xlo=None, xhi=None, ylo=None, yhi=None, zlo=None, zhi=None, n_soma_step=100):
     #mesh, surface_areas, volumes, triangles = geometry3d.voxelize2(source, dx=dx)
     #surface_areas._values *= self._surface_fraction
     #volumes._values *= self._volume_fraction
     #return mesh, surface_areas, volumes, triangles
     internal_voxels, surface_voxels, mesh_grid = geometry3d.voxelize2(source, dx=dx)
     volume_fraction = self._volume_fraction
     for key in internal_voxels:
         internal_voxels[key][0] *= volume_fraction
     for key in surface_voxels:
         surface_voxels[key][0] *= volume_fraction
     return internal_voxels, surface_voxels, mesh_grid
Exemplo n.º 4
0
 def volumes3d(self, source, dx=0.25, xlo=None, xhi=None, ylo=None, yhi=None, zlo=None, zhi=None, n_soma_step=100):
     #mesh, surface_areas, volumes, triangles = geometry3d.voxelize2(source, dx=dx)
     #volumes._values *= self._area_per_vol # volume on 2D boundaries is actually the area; the amount of space for holding things
     #surface_areas._values *= 0 
     #return mesh, surface_areas, volumes, triangles
     internal_voxels, surface_voxels, mesh_grid = geometry3d.voxelize2(source, dx=dx)
     area_per_vol = self._area_per_vol
     for key in internal_voxels:
         internal_voxels[key][0] *= area_per_vol
     for key in surface_voxels:
         surface_voxels[key][0] *= area_per_vol
     return internal_voxels, surface_voxels, mesh_grid
Exemplo n.º 5
0
 def volumes3d(self,
               source,
               dx=0.25,
               xlo=None,
               xhi=None,
               ylo=None,
               yhi=None,
               zlo=None,
               zhi=None,
               n_soma_step=100):
     mesh, surface_areas, volumes, triangles = geometry3d.voxelize2(
         source,
         dx=dx,
         xlo=xlo,
         xhi=xhi,
         ylo=ylo,
         yhi=yhi,
         zlo=zlo,
         zhi=zhi,
         n_soma_step=n_soma_step)
     surface_areas._values *= self._surface_fraction
     volumes._values *= self._volume_fraction
     return mesh, surface_areas, volumes, triangles
Exemplo n.º 6
0
 def volumes3d(self,
               source,
               dx=0.25,
               xlo=None,
               xhi=None,
               ylo=None,
               yhi=None,
               zlo=None,
               zhi=None,
               n_soma_step=100):
     mesh, surface_areas, volumes, triangles = geometry3d.voxelize2(
         source,
         dx=dx,
         xlo=xlo,
         xhi=xhi,
         ylo=ylo,
         yhi=yhi,
         zlo=zlo,
         zhi=zhi,
         n_soma_step=n_soma_step)
     volumes._values *= self._area_per_vol  # volume on 2D boundaries is actually the area; the amount of space for holding things
     surface_areas._values *= 0
     return mesh, surface_areas, volumes, triangles