OpenVDB 10.0.1
|
Allows for the construction of NanoVDB grids without any dependency. More...
#include <nanovdb/util/IndexGridBuilder.h>
Public Member Functions | |
IndexGridBuilder (const SrcGridT &srcGrid, bool includeInactive=true, bool includeStats=true) | |
Constructor based on a source grid. More... | |
template<typename BufferT = HostBuffer> | |
GridHandle< BufferT > | getHandle (const std::string &name="", uint32_t channels=0u, const BufferT &buffer=BufferT()) |
Return an instance of a GridHandle (invoking move semantics) More... | |
uint64_t | getValueCount () const |
return the total number of values located in the source grid. More... | |
template<typename BufferT = HostBuffer> | |
BufferT | getValues (uint32_t channels=1u, const BufferT &buffer=BufferT()) |
return a buffer with all the values in the source grid More... | |
uint64_t | copyValues (SrcValueT *buffer, size_t maxValueCount=-1) |
copy values from the source grid into the provided array and returns number of values copied More... | |
Allows for the construction of NanoVDB grids without any dependency.
|
inline |
Constructor based on a source grid.
srcGrid | Source grid used to generate the IndexGrid |
includeInactive | Include inactive values or only active values |
includeStats | Include min/max/avg/std per node or not |
uint64_t copyValues | ( | SrcValueT * | buffer, |
size_t | maxValueCount = -1 |
||
) |
copy values from the source grid into the provided array and returns number of values copied
GridHandle< BufferT > getHandle | ( | const std::string & | name = "" , |
uint32_t | channels = 0u , |
||
const BufferT & | buffer = BufferT() |
||
) |
Return an instance of a GridHandle (invoking move semantics)
|
inline |
return the total number of values located in the source grid.
BufferT getValues | ( | uint32_t | channels = 1u , |
const BufferT & | buffer = BufferT() |
||
) |
return a buffer with all the values in the source grid