OpenVDB
9.0.1
|
This class will convert an OpenVDB grid into a NanoVDB grid managed by a GridHandle. More...
#include <nanovdb/util/OpenToNanoVDB.h>
Classes | |
struct | BlindMetaData |
Public Member Functions | |
OpenToNanoVDB () | |
Default c-tor. More... | |
OracleT & | oracle () |
return a reference to the compression oracle More... | |
void | setVerbose (int mode=1) |
void | enableDithering (bool on=true) |
void | setStats (StatsMode mode=StatsMode::Default) |
void | setChecksum (ChecksumMode mode=ChecksumMode::Default) |
GridHandle< BufferT > | operator() (const OpenGridT &grid, const BufferT &allocator=BufferT()) |
Return a shared pointer to a NanoVDB grid handle constructed from the specified OpenVDB grid. More... | |
GridHandle< BufferT > | operator() (const OpenGridT &grid, StatsMode sMode, ChecksumMode cMode, int verbose, const BufferT &allocator=BufferT()) |
template<typename OpenNodeT > | |
void | processNodes (std::vector< NodePair< OpenNodeT >> &openNodes) |
This class will convert an OpenVDB grid into a NanoVDB grid managed by a GridHandle.
While NanoVDB allows root, internal and leaf nodes to reside anywhere in the memory buffer this conversion tool uses the following memory layout:
Grid | Tree Root... Node2... Node1... Leaf... BlindMetaData... BlindData... where "..." means size may vary and "|" means "no gap"
OpenToNanoVDB | ( | ) |
Default c-tor.
|
inline |
|
inline |
Return a shared pointer to a NanoVDB grid handle constructed from the specified OpenVDB grid.
|
inline |
|
inline |
return a reference to the compression oracle
void processNodes | ( | std::vector< NodePair< OpenNodeT >> & | openNodes | ) |
|
inline |
|
inline |
|
inline |