Python API Reference
Module Summary:
Module |
Description |
|---|---|
This module contains bindings to C++ omni::vdb::tool::IVDBTool interface. |
omni.vdb.tool
This module contains bindings to C++ omni::vdb::tool::IVDBTool interface.
This is an example of how to load a VDB volume and check the number of its grids:
import omni.vdb.tool
import omni.volume
ivdbtool = omni.vdb.tool.get_vdb_tool_interface()
load_params = omni.vdb.tool.LoadVDBParameters()
vdb_path = "data/sphere.vdb"
volume = ivdbtool.load_volume(vdb_path, load_params)
ivolume = omni.volume.get_volume_interface()
num_grids = ivolume.get_num_grids(volume)
print(f"num_grids: {num_grids}")
Classes Summary:
Class |
Description |
|---|---|
IVDBTool Interface |
|
Parameter set for loading VDB volumes |
|
Parameter set for saving VDB volumes |