HDK
|
Generates a signed distance field (or narrow band level set) to a single sphere. More...
#include <LevelSetSphere.h>
Public Types | |
using | TreeT = typename GridT::TreeType |
using | ValueT = typename GridT::ValueType |
using | Vec3T = typename math::Vec3< ValueT > |
Public Member Functions | |
LevelSetSphere (ValueT radius, const Vec3T ¢er, InterruptT *interrupt=nullptr) | |
Constructor. More... | |
GridT::Ptr | getLevelSet (ValueT voxelSize, ValueT halfWidth, bool threaded=true) |
Generates a signed distance field (or narrow band level set) to a single sphere.
Definition at line 88 of file LevelSetSphere.h.
using openvdb::OPENVDB_VERSION_NAME::tools::LevelSetSphere< GridT, InterruptT >::TreeT = typename GridT::TreeType |
Definition at line 91 of file LevelSetSphere.h.
using openvdb::OPENVDB_VERSION_NAME::tools::LevelSetSphere< GridT, InterruptT >::ValueT = typename GridT::ValueType |
Definition at line 92 of file LevelSetSphere.h.
using openvdb::OPENVDB_VERSION_NAME::tools::LevelSetSphere< GridT, InterruptT >::Vec3T = typename math::Vec3<ValueT> |
Definition at line 93 of file LevelSetSphere.h.
|
inline |
Constructor.
radius | radius of the sphere in world units |
center | center of the sphere in world units |
interrupt | pointer to optional interrupter. Use template argument util::NullInterrupter if no interruption is desired. |
Definition at line 107 of file LevelSetSphere.h.
|
inline |
voxelSize | Size of voxels in world units |
halfWidth | Half-width of narrow-band in voxel units |
threaded | If true multi-threading is enabled (true by default) |
Definition at line 118 of file LevelSetSphere.h.