|
OpenVDB 10.0.1
|
Allows for the construction of NanoVDB grids without any dependency. More...
#include <nanovdb/util/GridBuilder.h>
Classes | |
| struct | BuildLeaf |
| struct | ValueAccessor |
Public Member Functions | |
| GridBuilder (ValueT background=ValueT(), GridClass gClass=GridClass::Unknown, uint64_t blindDataSize=0) | |
| ValueAccessor | getAccessor () |
| void | sdfToLevelSet () |
| Performs multi-threaded bottom-up signed-distance flood-filling and changes GridClass to LevelSet. | |
| void | sdfToFog () |
| Performs multi-threaded bottom-up signed-distance flood-filling followed by level-set -> FOG volume conversion. It also changes the GridClass to FogVolume. | |
| void | setVerbose (int mode=1) |
| void | enableDithering (bool on=true) |
| void | setStats (StatsMode mode=StatsMode::Default) |
| void | setChecksum (ChecksumMode mode=ChecksumMode::Default) |
| void | setGridClass (GridClass mode=GridClass::Unknown) |
| template<typename OracleT = AbsDiff, typename BufferT = HostBuffer> | |
| GridHandle< BufferT > | getHandle (double voxelSize=1.0, const Vec3d &gridOrigin=Vec3d(0), const std::string &name="", const OracleT &oracle=OracleT(), const BufferT &buffer=BufferT()) |
| Return an instance of a GridHandle (invoking move semantics) | |
| template<typename OracleT = AbsDiff, typename BufferT = HostBuffer> | |
| GridHandle< BufferT > | getHandle (const Map &map, const std::string &name="", const OracleT &oracle=OracleT(), const BufferT &buffer=BufferT()) |
| Return an instance of a GridHandle (invoking move semantics) | |
| template<typename Func > | |
| void | operator() (const Func &func, const CoordBBox &bbox, ValueT delta=ValueT(0)) |
| Sets grids values in domain of the bbox to those returned by the specified func with the expected signature [](const Coord&)->ValueT. | |
Allows for the construction of NanoVDB grids without any dependency.
| GridBuilder | ( | ValueT | background = ValueT(), |
| GridClass | gClass = GridClass::Unknown, |
||
| uint64_t | blindDataSize = 0 |
||
| ) |
|
inline |
|
inline |
| GridHandle< BufferT > getHandle | ( | const Map & | map, |
| const std::string & | name = "", |
||
| const OracleT & | oracle = OracleT(), |
||
| const BufferT & | buffer = BufferT() |
||
| ) |
Return an instance of a GridHandle (invoking move semantics)
| GridHandle< BufferT > getHandle | ( | double | voxelSize = 1.0, |
| const Vec3d & | gridOrigin = Vec3d(0), |
||
| const std::string & | name = "", |
||
| const OracleT & | oracle = OracleT(), |
||
| const BufferT & | buffer = BufferT() |
||
| ) |
Return an instance of a GridHandle (invoking move semantics)
| void operator() | ( | const Func & | func, |
| const CoordBBox & | bbox, | ||
| ValueT | delta = ValueT(0) |
||
| ) |
Sets grids values in domain of the bbox to those returned by the specified func with the expected signature [](const Coord&)->ValueT.
| func | Functor used to evaluate the grid values in the bbox |
| bbox | Coordinate bounding-box over which the grid values will be set. |
| delta | Specifies a lower threshold value for rendering (optional). Typically equals the voxel size for level sets and otherwise it's zero. |
|
inline |
Performs multi-threaded bottom-up signed-distance flood-filling followed by level-set -> FOG volume conversion. It also changes the GridClass to FogVolume.
| void sdfToLevelSet |
Performs multi-threaded bottom-up signed-distance flood-filling and changes GridClass to LevelSet.
|
inline |
|
inline |
|
inline |
|
inline |