# academysoftwarefoundation/openvdb architecture

> Architecture diagram of the GitHub repository academysoftwarefoundation/openvdb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/academysoftwarefoundation/openvdb
- Repository: https://github.com/academysoftwarefoundation/openvdb

## Overview

OpenVDB is a C++ platform for storing and manipulating sparse volumetric grids, with specialized NanoVDB and AX components plus application integrations. The principal workflow is to construct or load a grid, process it with grid or point tools, then serialize or consume the result. The tree and README establish these capabilities; sampled excerpts also show selected tool, viewer, and AX entry points. Many implementation relationships are not shown, so uncertain internal links are omitted rather than inferred.

Main entry points: [`openvdb/openvdb/Grid.h`](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/Grid.h) (Grid API), [`nanovdb/nanovdb/NanoVDB.h`](https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/NanoVDB.h) (Compact Grid Format), [`openvdb_ax/openvdb_ax/ast/Parse.cc`](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/ast/Parse.cc) (AX Parser), [`openvdb_ax/openvdb_ax/compiler/Compiler.cc`](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/compiler/Compiler.cc) (AX Compiler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["OpenVDB Core"]
  node_grid["Grid API<br/>[Grid.h]"]
  node_tree["Sparse Tree<br/>[Tree.h]"]
  node_leaf["Leaf Manager<br/>[LeafManager.h]"]
  node_metadata["Grid Metadata<br/>[MetaMap.h]"]
  node_math["Grid Math<br/>[Math.h]"]
  node_tools["Grid Tools<br/>[VolumeToMesh.h]"]
  node_points["Point Tools<br/>[PointDataGrid.h]"]
  node_io["Grid I/O<br/>[File.h]"]
end

subgraph group_nano["NanoVDB"]
  node_nanoformat["Compact Grid Format<br/>[NanoVDB.h]"]
  node_nanotools["NanoVDB Tools<br/>[CreateNanoGrid.h]"]
  node_nanio["NanoVDB I/O<br/>[IO.h]"]
  node_nanocuda["CUDA Resources<br/>[DeviceBuffer.h]"]
  node_nanopy["NanoVDB Python<br/>[NanoVDBModule.cc]"]
end

subgraph group_ax["OpenVDB AX"]
  node_axparse["AX Parser<br/>[Parse.cc]"]
  node_axcodegen["AX Code Generation"]
  node_axcompiler["AX Compiler<br/>[Compiler.cc]"]
  node_axexec["AX Execution"]
end

subgraph group_apps["Applications and Integrations"]
  node_axcli["AX CLI<br/>[main.cc]"]
  node_vdbtool["VDB Tool<br/>[main.cpp]"]
  node_parser["Tool Scripting<br/>[Parser.h]"]
  node_viewer["VDB Viewer<br/>[main.cc]"]
  node_python["OpenVDB Python<br/>[pyOpenVDBModule.cc]"]
  node_houdini["Houdini Nodes"]
  node_maya["Maya Integration"]
  node_wolfram["Wolfram Integration<br/>[OpenVDBGrid.h]"]
end

subgraph group_simd["SIMD Support"]
  node_simd["Vector Class Library<br/>[vectorclass.h]"]
end

node_user(("3D Data User"))

node_user -->|"constructs grids"| node_grid
node_grid -->|"stores topology"| node_tree
node_grid -.->|"stores metadata"| node_metadata
node_grid -->|"processes grids"| node_tools
node_grid -->|"supports points"| node_points
node_grid -.->|"serializes grids"| node_io
node_leaf -->|"manages leaves"| node_tree
node_user -.->|"uses compact grids"| node_nanoformat
node_nanotools -.->|"creates grids"| node_nanoformat
node_nanoformat -.->|"reads and writes"| node_nanio
node_nanoformat -.->|"uses device buffers"| node_nanocuda
node_nanoformat -.->|"exposes bindings"| node_nanopy
node_user -.->|"runs AX code"| node_axcli
node_axcli -.->|"submits code"| node_axparse
node_axparse -.->|"builds program"| node_axcompiler
node_axcompiler -.->|"generates code"| node_axcodegen
node_axexec -.->|"executes on grids"| node_grid
node_user -->|"runs commands"| node_vdbtool
node_vdbtool -->|"uses scripting"| node_parser
node_user -->|"views grids"| node_viewer
node_user -.->|"uses bindings"| node_python
node_user -.->|"uses Houdini"| node_houdini
node_user -.->|"uses Maya"| node_maya
node_user -.->|"uses Wolfram"| node_wolfram

click node_grid "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/Grid.h"
click node_tree "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/tree/Tree.h"
click node_leaf "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/tree/LeafManager.h"
click node_metadata "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/MetaMap.h"
click node_math "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/math/Math.h"
click node_tools "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/tools/VolumeToMesh.h"
click node_points "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/points/PointDataGrid.h"
click node_io "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/io/File.h"
click node_nanoformat "https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/NanoVDB.h"
click node_nanotools "https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/tools/CreateNanoGrid.h"
click node_nanio "https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/io/IO.h"
click node_nanocuda "https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/cuda/DeviceBuffer.h"
click node_nanopy "https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/python/NanoVDBModule.cc"
click node_axparse "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/ast/Parse.cc"
click node_axcodegen "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/codegen/StandardFunctions.cc"
click node_axcompiler "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/compiler/Compiler.cc"
click node_axexec "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/compiler/VolumeExecutable.cc"
click node_axcli "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_cmd/vdb_ax/main.cc"
click node_vdbtool "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_cmd/vdb_tool/src/main.cpp"
click node_parser "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_cmd/vdb_tool/include/Parser.h"
click node_viewer "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_cmd/vdb_view/main.cc"
click node_python "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/python/pyOpenVDBModule.cc"
click node_houdini "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_houdini/openvdb_houdini/SOP_OpenVDB_Create.cc"
click node_maya "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_maya/openvdb_maya/OpenVDBVisualizeNode.cc"
click node_wolfram "https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_wolfram/OpenVDBLink/Source/OpenVDBGrid.h"
click node_simd "https://github.com/academysoftwarefoundation/openvdb/blob/master/ext/vcl/openvdb/ext/vcl/vectorclass.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_grid,node_tree,node_leaf,node_metadata,node_math,node_tools,node_points,node_io,node_user toneBlue
class node_nanoformat,node_nanotools,node_nanio,node_nanocuda,node_nanopy toneAmber
class node_axparse,node_axcodegen,node_axcompiler,node_axexec toneMint
class node_axcli,node_vdbtool,node_parser,node_viewer,node_python,node_houdini,node_maya,node_wolfram toneRose
class node_simd toneIndigo
```

## Components

### OpenVDB Core

- [Grid API](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/Grid.h): `openvdb/openvdb/Grid.h`
- [Sparse Tree](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/tree/Tree.h): `openvdb/openvdb/tree/Tree.h`
- [Leaf Manager](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/tree/LeafManager.h): `openvdb/openvdb/tree/LeafManager.h`
- [Grid Metadata](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/MetaMap.h): `openvdb/openvdb/MetaMap.h`
- [Grid Math](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/math/Math.h): `openvdb/openvdb/math/Math.h`
- [Grid Tools](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/tools/VolumeToMesh.h): `openvdb/openvdb/tools/VolumeToMesh.h`
- [Point Tools](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/points/PointDataGrid.h): `openvdb/openvdb/points/PointDataGrid.h`
- [Grid I/O](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/io/File.h): `openvdb/openvdb/io/File.h`

### NanoVDB

- [Compact Grid Format](https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/NanoVDB.h): `nanovdb/nanovdb/NanoVDB.h`
- [NanoVDB Tools](https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/tools/CreateNanoGrid.h): `nanovdb/nanovdb/tools/CreateNanoGrid.h`
- [NanoVDB I/O](https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/io/IO.h): `nanovdb/nanovdb/io/IO.h`
- [CUDA Resources](https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/cuda/DeviceBuffer.h): `nanovdb/nanovdb/cuda/DeviceBuffer.h`
- [NanoVDB Python](https://github.com/academysoftwarefoundation/openvdb/blob/master/nanovdb/nanovdb/python/NanoVDBModule.cc): `nanovdb/nanovdb/python/NanoVDBModule.cc`

### OpenVDB AX

- [AX Parser](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/ast/Parse.cc): `openvdb_ax/openvdb_ax/ast/Parse.cc`
- [AX Code Generation](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/codegen/StandardFunctions.cc): `openvdb_ax/openvdb_ax/codegen/StandardFunctions.cc`
- [AX Compiler](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/compiler/Compiler.cc): `openvdb_ax/openvdb_ax/compiler/Compiler.cc`
- [AX Execution](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_ax/openvdb_ax/compiler/VolumeExecutable.cc): `openvdb_ax/openvdb_ax/compiler/VolumeExecutable.cc`

### Applications and Integrations

- [AX CLI](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_cmd/vdb_ax/main.cc): `openvdb_cmd/vdb_ax/main.cc`
- [VDB Tool](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_cmd/vdb_tool/src/main.cpp): `openvdb_cmd/vdb_tool/src/main.cpp`
- [Tool Scripting](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_cmd/vdb_tool/include/Parser.h): `openvdb_cmd/vdb_tool/include/Parser.h`
- [VDB Viewer](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_cmd/vdb_view/main.cc): `openvdb_cmd/vdb_view/main.cc`
- [OpenVDB Python](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb/openvdb/python/pyOpenVDBModule.cc): `openvdb/openvdb/python/pyOpenVDBModule.cc`
- [Houdini Nodes](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_houdini/openvdb_houdini/SOP_OpenVDB_Create.cc): `openvdb_houdini/openvdb_houdini/SOP_OpenVDB_Create.cc`
- [Maya Integration](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_maya/openvdb_maya/OpenVDBVisualizeNode.cc): `openvdb_maya/openvdb_maya/OpenVDBVisualizeNode.cc`
- [Wolfram Integration](https://github.com/academysoftwarefoundation/openvdb/blob/master/openvdb_wolfram/OpenVDBLink/Source/OpenVDBGrid.h): `openvdb_wolfram/OpenVDBLink/Source/OpenVDBGrid.h`

### SIMD Support

- [Vector Class Library](https://github.com/academysoftwarefoundation/openvdb/blob/master/ext/vcl/openvdb/ext/vcl/vectorclass.h): `ext/vcl/openvdb/ext/vcl/vectorclass.h`

### Other components

- **3D Data User**

## Connections

- 3D Data User → Grid API: constructs grids
- Grid API → Sparse Tree: stores topology
- Grid API → Grid Metadata: stores metadata
- Grid API → Grid Tools: processes grids
- Grid API → Point Tools: supports points
- Grid API → Grid I/O: serializes grids
- Leaf Manager → Sparse Tree: manages leaves (evidence: `openvdb/openvdb/tree/LeafManager.h`)
- 3D Data User → Compact Grid Format: uses compact grids
- NanoVDB Tools → Compact Grid Format: creates grids
- Compact Grid Format → NanoVDB I/O: reads and writes
- Compact Grid Format → CUDA Resources: uses device buffers
- Compact Grid Format → NanoVDB Python: exposes bindings
- 3D Data User → AX CLI: runs AX code
- AX CLI → AX Parser: submits code
- AX Parser → AX Compiler: builds program
- AX Compiler → AX Code Generation: generates code
- AX Execution → Grid API: executes on grids
- 3D Data User → VDB Tool: runs commands (evidence: `openvdb_cmd/vdb_tool/src/main.cpp`)
- VDB Tool → Tool Scripting: uses scripting (evidence: `openvdb_cmd/vdb_tool/src/main.cpp`)
- 3D Data User → VDB Viewer: views grids (evidence: `openvdb_cmd/vdb_view/main.cc`)
- 3D Data User → OpenVDB Python: uses bindings
- 3D Data User → Houdini Nodes: uses Houdini
- 3D Data User → Maya Integration: uses Maya
- 3D Data User → Wolfram Integration: uses Wolfram
