This class provides the public API for intersecting a ray with a narrow-band level set.
More...
#include <RayIntersector.h>
template<typename GridT, typename SearchImplT = LinearSearchImpl<GridT>, int NodeLevel = GridT::TreeType::RootNodeType::ChildNodeType::LEVEL, typename RayT = math::Ray<Real>>
class openvdb::v2_0_0::tools::LevelSetRayIntersector< GridT, SearchImplT, NodeLevel, RayT >
This class provides the public API for intersecting a ray with a narrow-band level set.
It wraps an SearchImplT with a simple public API and performs the actual hierarchical tree node and voxel traversal.
- Warning
- Use the (default) copy-constructor to make sure each computational thread has their own instance of this class. This is important since the SearchImplT contains a ValueAccessor that is not thread-safe. However copying is very efficient.
- See Also
- tools/RayTracer.h for examples of intended usage.
typedef GridT::TreeType TreeT |
typedef GridT::ValueType ValueT |
Constructor.
- Parameters
-
grid | level set grid to intersect rays against |
BOOST_STATIC_ASSERT |
( |
boost::is_floating_point< ValueT >::value |
| ) |
|
bool intersectsIS |
( |
const RayType & |
iRay | ) |
const |
|
inline |
Return true
if the index-space ray intersects the level set.
- Parameters
-
iRay | ray represented in index space |
Return true
if the index-space ray intersects the level set.
- Parameters
-
iRay | ray represented in index space. |
xyz | if an intersection was found it is assigned the intersection point in index space, otherwise it is unchanged. |
bool intersectsWS |
( |
const RayType & |
wRay | ) |
const |
|
inline |
Return true
if the world-space ray intersects the level set.
- Parameters
-
wRay | ray represented in world space. |
Return true
if the world-space ray intersects the level set.
- Parameters
-
wRay | ray represented in world space. |
world | if an intersection was found it is assigned the intersection point in world space, otherwise it is unchanged |
Return true
if the world-space ray intersects the level set.
- Parameters
-
wRay | ray represented in world space. |
world | if an intersection was found it is assigned the intersection point in world space, otherwise it is unchanged. |
normal | if an intersection was found it is assigned the normal of the level set surface in world space, otherwise it is unchanged. |
The documentation for this class was generated from the following file: