Module pyopenvdb
[hide private]
[frames] | no frames]

Module pyopenvdb

Classes [hide private]
  Axis
  BoolGrid
OpenVDB grid with voxels of type bool
  FloatGrid
OpenVDB grid with voxels of type float
  GridClass
Classes of volumetric data (level set, fog volume, etc.)
  Metadata
Class that holds the value of a single item of metadata of a type for which no Python equivalent exists (typically a custom type)
  Transform
  Vec3SGrid
OpenVDB grid with voxels of type vec3s
  VectorType
The type of a vector determines how transforms are applied to it.
Functions [hide private]
Transform
createFrustumTransform(xyzMin, xyzMax, taper, depth, voxelSize)
Create a new frustum transform with unit bounding box (xyzMin, xyzMax) and the given taper, depth and uniform voxel size.
FloatGrid
createLevelSetSphere(radius, center, voxelSize, halfWidth)
Return a grid containing a narrow-band level set representation of a sphere.
Transform
createLinearTransform(matrix)
Create a new linear transform from a 4 x 4 matrix given as a sequence of the form [[a, b, c, d], [e, f, g, h], [i, j, k, l], [m, n, o, p]], where [m, n, o, p] is the translation component.
Grid
read(filename, gridname)
Read a single grid from a .vdb file.
list, dict
readAll(filename)
Read a .vdb file and return a list of grids and a dict of file-level metadata.
list
readAllGridMetadata(filename)
Read a .vdb file and return a list of grids populated with their metadata and transforms, but not their trees.
Grid
readGridMetadata(filename, gridname)
Read a single grid's metadata and transform (but not its tree) from a .vdb file.
dict
readMetadata(filename)
Read file-level metadata from a .vdb file.
 
write(filename, grids, metadata=None)
Write a grid or a sequence of grids and, optionally, a dict of (name, value) metadata pairs to a .vdb file.
Variables [hide private]
  COORD_MAX = (2147483647, 2147483647, 2147483647)
  COORD_MIN = (-2147483648, -2147483648, -2147483648)
  FILE_FORMAT_VERSION = 223
  GridTypes = [<class 'pyopenvdb.FloatGrid'>, <class 'pyopenvdb....
  LEVEL_SET_HALF_WIDTH = 3.0
  LIBRARY_VERSION = (3, 2, 0)
  __package__ = None
Function Details [hide private]

createLinearTransform(matrix)

 

Create a new linear transform from a 4 x 4 matrix given as a sequence of the form [[a, b, c, d], [e, f, g, h], [i, j, k, l], [m, n, o, p]], where [m, n, o, p] is the translation component.

createLinearTransform(voxelSize) -> Transform

Create a new linear transform with the given uniform voxel size.

Returns: Transform

Variables Details [hide private]

GridTypes

Value:
[<class 'pyopenvdb.FloatGrid'>,
 <class 'pyopenvdb.BoolGrid'>,
 <class 'pyopenvdb.Vec3SGrid'>]