|
HDK
|
Class used to generate a grid of type GridType containing a narrow-band level set representation of a tapered capsule.
More...
#include <LevelSetTubesImpl.h>
Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::tools::lvlset::TaperedCapsuleVoxelizer< GridType, InterruptT >:Public Member Functions | |
| TaperedCapsuleVoxelizer (GridPtr &grid, const bool &threaded=true, InterruptT *interrupter=nullptr) | |
| Constructor. More... | |
| template<typename ScalarType > | |
| void | operator() (const math::Vec3< ScalarType > &pt1, const math::Vec3< ScalarType > &pt2, const ScalarType &radius1, const ScalarType &radius2) |
| Create a tapered capsule. More... | |
Public Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::tools::ConvexVoxelizer< GridType, TaperedCapsuleVoxelizer< GridType, InterruptT >, InterruptT > | |
| ConvexVoxelizer (GridPtr &grid, const bool &threaded=false, InterruptT *interrupter=nullptr) | |
| Constructor. More... | |
| virtual | ~ConvexVoxelizer ()=default |
| ValueT | voxelSize () const |
| Return the voxel size of the grid. More... | |
| ValueT | halfWidth () const |
| Return the half width of the narrow-band level set. More... | |
Friends | |
| class | ConvexVoxelizer< GridType, TaperedCapsuleVoxelizer< GridType, InterruptT >, InterruptT > |
Additional Inherited Members | |
Protected Types inherited from openvdb::OPENVDB_VERSION_NAME::tools::ConvexVoxelizer< GridType, TaperedCapsuleVoxelizer< GridType, InterruptT >, InterruptT > | |
| using | ValueT = typename GridType::ValueType |
| using | Vec3T = math::Vec3< ValueT > |
| using | Vec2T = math::Vec2< ValueT > |
Protected Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::tools::ConvexVoxelizer< GridType, TaperedCapsuleVoxelizer< GridType, InterruptT >, InterruptT > | |
| void | iterate () |
| The function the derived class calls to create the level set, working in index space other than setting signed distance values. More... | |
| void | setXYRangeData (const Index &) |
Determines the x bounds in index space of the convex region dilated by the half width. For each x value in index space, the y range in index space of the dilated region is computed. This function should store the data in mXYData. More... | |
| bool | tileCanFit (const Index &) const |
| Checks if the tile of a given dimension can possibly fit within the region. More... | |
| ValueT | signedDistance (const Vec3T &) const |
| Computes the signed distance from a point to the convex region in index space. More... | |
| ValueT | tilePointSignedDistance (const Vec3T &p) const |
Computes the signed distance for tiles in index space, considering the center of the tile. This method is optional to override and defaults to signedDistance. More... | |
Static Protected Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::tools::ConvexVoxelizer< GridType, TaperedCapsuleVoxelizer< GridType, InterruptT >, InterruptT > | |
| static ValueT | tileCeil (const ValueT &x, const ValueT &step) |
| Rounds an input scalar up to the nearest valid ordinate of tile of a specified size. More... | |
| static ValueT | tileCeil (const ValueT &x, const T &step) |
| Rounds an input scalar up to the nearest valid ordinate of tile of a specified size. More... | |
| static ValueT | tileFloor (const ValueT &x, const ValueT &step) |
| Rounds an input scalar down to the nearest valid ordinate of tile of a specified size. More... | |
| static ValueT | tileFloor (const ValueT &x, const T &step) |
| Rounds an input scalar down to the nearest valid ordinate of tile of a specified size. More... | |
| static ValueT | circleBottom (const ValueT &x0, const ValueT &y0, const ValueT &r, const ValueT &x) |
| Computes the bottom y-coordinate of a circle at a given x position. More... | |
| static ValueT | circleTop (const ValueT &x0, const ValueT &y0, const ValueT &r, const ValueT &x) |
| Computes the top y-coordinate of a circle at a given x position. More... | |
| static ValueT | sphereBottom (const ValueT &x0, const ValueT &y0, const ValueT &z0, const ValueT &r, const ValueT &x, const ValueT &y) |
| Computes the bottom z-coordinate of a sphere at a given (x, y) position. More... | |
| static ValueT | sphereTop (const ValueT &x0, const ValueT &y0, const ValueT &z0, const ValueT &r, const ValueT &x, const ValueT &y) |
| Computes the top z-coordinate of a sphere at a given (x, y) position. More... | |
Protected Attributes inherited from openvdb::OPENVDB_VERSION_NAME::tools::ConvexVoxelizer< GridType, TaperedCapsuleVoxelizer< GridType, InterruptT >, InterruptT > | |
| std::function< bool(ValueT &, ValueT &, const ValueT &, const ValueT &)> | bottomTop |
| Find where a vertical infinite line intersects a convex region dilated by the half width. More... | |
| XYRangeData | mXYData |
Class used to generate a grid of type GridType containing a narrow-band level set representation of a tapered capsule.
GridType::ValueType must be a floating-point scalar. Definition at line 470 of file LevelSetTubesImpl.h.
|
inline |
Constructor.
| grid | scalar grid to populate the level set in |
| threaded | center of the sphere in world units |
| interrupter | pointer to optional interrupter. Use template argument util::NullInterrupter if no interruption is desired. |
Definition at line 508 of file LevelSetTubesImpl.h.
|
inline |
Create a tapered capsule.
| pt1 | first endpoint of the tapered capsule in world units |
| pt2 | second endpoint of the tapered capsule in world units |
| radius1 | radius of the tapered capsule at pt1 in world units |
| radius2 | radius of the tapered capsule at pt2 in world units |
Definition at line 522 of file LevelSetTubesImpl.h.
|
friend |
Definition at line 497 of file LevelSetTubesImpl.h.