|
| DDA ()=default |
| Default ctor.
|
|
__hostdev__ | DDA (const RayT &ray) |
| ctor from ray and dimension at which the DDA marches
|
|
__hostdev__ void | init (const RayT &ray, RealT startTime, RealT maxTime) |
| Re-initializes the DDA.
|
|
__hostdev__ void | init (const RayT &ray) |
| Simular to init above except it uses the bounds of the input ray.
|
|
__hostdev__ bool | step () |
| Increment the voxel index to next intersected voxel or node and returns true if the step in time does not exceed maxTime.
|
|
__hostdev__ const CoordT & | voxel () const |
| Return the index coordinates of the next node or voxel intersected by the ray. If Log2Dim = 0 the return value is the actual signed coordinate of the voxel, else it is the origin of the corresponding VDB tree node or tile.
|
|
__hostdev__ RealType | time () const |
| Return the time (parameterized along the Ray) of the first hit of a tree node of size 2^Log2Dim.
|
|
__hostdev__ RealType | maxTime () const |
| Return the maximum time (parameterized along the Ray).
|
|
__hostdev__ RealType | next () const |
| Return the time (parameterized along the Ray) of the second (i.e. next) hit of a tree node of size 2^Log2Dim.
|
|
__hostdev__ int | nextAxis () const |
|
template<typename RayT, typename CoordT = Coord, int Dim = 1>
class nanovdb::DDA< RayT, CoordT, Dim >
A Digital Differential Analyzer. Unlike HDDA (defined above) this DDA uses a fixed step-size defined by the template parameter Dim!
- Note
- The Ray template class is expected to have the following methods: test(time), t0(), t1(), invDir(), and operator()(time). See the example Ray class above for their definition.