Package Volume :: Package Operators :: Module spheres2Voxels :: Class discreteSpheres
[hide private]
[frames] | no frames]

Class discreteSpheres

source code

build a 3D grid with 1 inside an on the spheres, and 0 outside Centers are the centers of the spheres and radii a list of radii. GridSpacing is list of of 3 float indicating the spacing of the grid in X,Y and Z. In the case of uneven grid spacing, the radius of the spheres would become ellipsoinds, and we simply use the sphere that would contain the ellipsoid. GridOrigin is a list of 3 float idicating the lower left back corner of the grid. grisSize is is a list of 3 integer indicating the number of voxels along each dimentsion.

Instance Methods [hide private]
  __init__(self, centers, radii, gridSpacing, gridOrigin, gridSize)

Method Details [hide private]

__init__(self, centers, radii, gridSpacing, gridOrigin, gridSize)
(Constructor)

source code 
None