OpenVDB 13.1.0
Loading...
Searching...
No Matches
GridValidator.h File Reference

Checks the validity of an existing NanoVDB grid. More...

#include <iostream>
#include <nanovdb/NanoVDB.h>
#include <nanovdb/tools/GridChecksum.h>

Go to the source code of this file.

Classes

struct  IsNanoGridValid

Namespaces

namespace  nanovdb
 Defines a simple memory pool used to call cub functions that use dynamic temporary storage.
namespace  nanovdb::tools

Functions

template<typename ValueT>
bool isValid (const NanoGrid< ValueT > *grid, CheckMode mode, bool verbose=false)
 Performs several validation tests on a grid pointer.
template<typename ValueT>
bool isValid (const NanoGrid< ValueT > &grid, bool detailed=true, bool verbose=false)
 Return true if the specified grid passes several validation tests.
template<typename ValueT>
__hostdev__ char * checkGrid (const NanoGrid< ValueT > *grid, char *error, CheckMode mode=CheckMode::Full)
 validate grid
template<typename GridHandleT>
bool validateGrid (const GridHandleT &handle, uint32_t gridID, CheckMode mode, bool verbose)
 Validate a specific grid in a GridHandle.
template<typename GridHandleT>
bool validateGrids (const GridHandleT &handle, CheckMode mode, bool verbose)
 Validate all the grids in a GridHandle.
template<typename ValueT>
__hostdev__ char * checkGrid (const NanoGrid< ValueT > *grid, char *error, CheckMode mode=CheckMode::Full)
template<typename ValueT>
bool isValid (const NanoGrid< ValueT > *grid, CheckMode mode, bool verbose=false)

Detailed Description

Checks the validity of an existing NanoVDB grid.

Author
Ken Museth
Date
August 30, 2020
Note
before v32.6.0: checksum[0] = Grid+Tree+Root, checksum[1] = nodes after v32.6.0: checksum[0] = Grid+Tree, checksum[1] = nodes + blind data in 4K blocks

When serialized: [Grid,Tree][Root][ROOT TILES...][Node<5>...][Node<4>...][Leaf<3>...][BlindMeta...][BlindData...]