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

Module pyopenvdb

Classes [hide private]
  Axis
  BoolGrid
OpenVDB grid with voxels of type bool
  DoubleGrid
OpenVDB grid with voxels of type double
  FloatGrid
OpenVDB grid with voxels of type float
  GridClass
Classes of volumetric data (level set, fog volume, etc.)
  Int32Grid
OpenVDB grid with voxels of type int32
  Int64Grid
OpenVDB grid with voxels of type int64
  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)
  PointDataGrid
OpenVDB grid with voxels of type ptdataidx32
  Transform
  Vec3DGrid
OpenVDB grid with voxels of type vec3d
  Vec3IGrid
OpenVDB grid with voxels of type vec3i
  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.
str
getLoggingLevel()
Return the severity threshold ("debug", "info", "warn", "error", or "fatal") for error messages.
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.
 
setLoggingLevel(level)
Specify the severity threshold ("debug", "info", "warn", "error", or "fatal") for error messages.
 
setProgramName(name, color=True)
Specify the program name to be displayed in error messages, and optionally specify whether to print error messages in color.
 
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 = 224
  GridTypes = [<class 'pyopenvdb.FloatGrid'>, <class 'pyopenvdb....
  LEVEL_SET_HALF_WIDTH = 3.0
  LIBRARY_VERSION = (9, 0, 1)
  __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

setLoggingLevel(level)

 

Specify the severity threshold ("debug", "info", "warn", "error", or "fatal") for error messages. Messages of lower severity will be suppressed.


Variables Details [hide private]

GridTypes

Value:
[<class 'pyopenvdb.FloatGrid'>,
 <class 'pyopenvdb.DoubleGrid'>,
 <class 'pyopenvdb.BoolGrid'>,
 <class 'pyopenvdb.Int32Grid'>,
 <class 'pyopenvdb.Int64Grid'>,
 <class 'pyopenvdb.Vec3SGrid'>,
 <class 'pyopenvdb.Vec3IGrid'>,
 <class 'pyopenvdb.Vec3DGrid'>,
...