bool
|
__contains__(name)
Return True if this grid contains metadata with the given name. |
|
|
|
__delitem__(name)
Remove the metadata with the given name. |
|
|
value
|
__getitem__(name)
Return the metadata value associated with the given name. |
|
|
|
|
|
__init__(...)
Initialize with a background value of 0.0. |
|
|
iterator
|
__iter__()
Return an iterator over this grid's metadata keys. |
|
|
|
|
|
|
|
__setitem__(name,
value)
Add metadata to this grid, replacing any existing item having the
same name as the new item. |
|
|
|
|
int
|
activeLeafVoxelCount()
Return the number of active voxels that are stored in the leaf nodes
of this grid's tree. |
|
|
int
|
activeVoxelCount()
Return the number of active voxels in this grid. |
|
|
|
addStatsMetadata()
Add metadata to this grid comprising the current values of statistics
like the active voxel count and bounding box. |
|
|
iterator
|
citerAllValues()
Return a read-only iterator over all of this grid's tile and voxel
values. |
|
|
iterator
|
citerOffValues()
Return a read-only iterator over this grid's inactive tile and voxel
values. |
|
|
iterator
|
citerOnValues()
Return a read-only iterator over this grid's active tile and voxel
values. |
|
|
|
clear()
Remove all tiles from this grid and all nodes other than the root
node. |
|
|
|
combine(grid,
function)
Compute function(self, other) over all corresponding pairs of values
(tile or voxel) of this grid and the other grid and store the result
in this grid. |
|
|
points, triangles, quads
|
convertToPolygons(isovalue=0,
adaptivity=0)
Adaptively mesh a scalar grid that has a continuous isosurface at the
given isovalue. |
|
|
points, quads
|
convertToQuads(isovalue=0)
Uniformly mesh a scalar grid that has a continuous isosurface at the
given isovalue. |
|
|
FloatGrid
|
copy()
Return a shallow copy of this grid, i.e., a grid that shares its
voxel data with this grid. |
|
|
|
copyFromArray(array,
ijk=(0,
0,
0),
tolerance=0)
Populate this grid, starting at voxel (i, j, k), with values from a
three-dimensional array. |
|
|
|
copyToArray(array,
ijk=(0,
0,
0))
Populate a three-dimensional array with values from this grid,
starting at voxel (i, j, k). |
|
|
FloatGrid
|
deepCopy()
Return a deep copy of this grid. |
|
|
bool
|
empty()
Return True if this grid contains only background voxels. |
|
|
xyzMin, xyzMax
|
evalActiveVoxelBoundingBox()
Return the coordinates of opposite corners of the axis-aligned
bounding box of all active voxels. |
|
|
x, y, z
|
evalActiveVoxelDim()
Return the dimensions of the axis-aligned bounding box of all active
voxels. |
|
|
xyzMin, xyzMax
|
evalLeafBoundingBox()
Return the coordinates of opposite corners of the axis-aligned
bounding box of all leaf nodes. |
|
|
x, y, z
|
evalLeafDim()
Return the dimensions of the axis-aligned bounding box of all leaf
nodes. |
|
|
min, max
|
evalMinMax()
Return the minimum and maximum active values in this grid. |
|
|
|
fill(min,
max,
value,
active=True)
Set all voxels within a given axis-aligned box to a constant value
(either active or inactive). |
|
|
FloatGridAccessor
|
getAccessor()
Return an accessor that provides random read and write access to this
grid's voxels. |
|
|
FloatGridAccessor
|
getConstAccessor()
Return an accessor that provides random read-only access to this
grid's voxels. |
|
|
min, max
|
getIndexRange()
Return the minimum and maximum coordinates that are represented in
this grid. |
|
|
dict
|
getStatsMetadata()
Return a (possibly empty) dict containing just the metadata that was
added to this grid with addStatsMetadata(). |
|
|
str
|
info(verbosity=1)
Return a string containing information about this grid with a
specified level of verbosity. |
|
|
iterator
|
iterAllValues()
Return a read/write iterator over all of this grid's tile and voxel
values. |
|
|
iterator
|
iterOffValues()
Return a read/write iterator over this grid's inactive tile and voxel
values. |
|
|
iterator
|
iterOnValues()
Return a read/write iterator over this grid's active tile and voxel
values. |
|
|
iterator
|
iterkeys()
Return an iterator over this grid's metadata keys. |
|
|
int
|
leafCount()
Return the number of leaf nodes in this grid's tree. |
|
|
|
mapAll(function)
Iterate over all values (tile and voxel) of this grid and replace
each value with function(value). |
|
|
|
mapOff(function)
Iterate over all the inactive ("off") values (tile and
voxel) of this grid and replace each value with function(value). |
|
|
|
mapOn(function)
Iterate over all the active ("on") values (tile and voxel)
of this grid and replace each value with function(value). |
|
|
int
|
memUsage()
Return the memory usage of this grid in bytes. |
|
|
|
merge(FloatGrid)
Move child nodes from the other grid into this grid wherever those
nodes correspond to constant-value tiles in this grid, and replace
leaf-level inactive voxels in this grid with corresponding voxels in
the other grid that are active. |
|
|
|
nodeLog2Dims(...)
list of Log2Dims of the nodes of this grid's tree in order from root
to leaf |
|
|
int
|
nonLeafCount()
Return the number of non-leaf nodes in this grid's tree. |
|
|
|
prune(tolerance=0)
Remove nodes whose values all have the same active state and are
equal to within a given tolerance. |
|
|
|
pruneInactive(value=None)
Remove nodes whose values are all inactive and replace them with
either background tiles or tiles of the given value (if the value is
not None). |
|
|
bool
|
sharesWith(FloatGrid)
Return True if this grid shares its voxel data with the given grid. |
|
|
|
signedFloodFill()
Propagate the sign from a narrow-band level set into inactive voxels
and tiles. |
|
|
|
updateMetadata(dict)
Add metadata to this grid, replacing any existing items having the
same names as the new items. |
|
|
Inherited from unreachable.instance :
__new__
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|