Generates a signed distance field (or narrow band level set) to a single sphere. More...
#include <openvdb/tools/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. | |
GridT::Ptr | getLevelSet (ValueT voxelSize, ValueT halfWidth, bool threaded=true) |
Generates a signed distance field (or narrow band level set) to a single sphere.
using TreeT = typename GridT::TreeType |
using ValueT = typename GridT::ValueType |
using Vec3T = typename math::Vec3<ValueT> |
|
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. |
|
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) |