HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT::BVHQueryInfLine< NAXES > Struct Template Reference

#include <UT_BVHImpl.h>

Public Types

using FloatType = float
 
using BoxType = UT::Box< v4uf, NAXES >
 

Public Member Functions

template<typename TS >
SYS_FORCE_INLINE BVHQueryInfLine (const TS &p0, const TS &dir)
 
SYS_FORCE_INLINE bool isValid (uint tree_point_index) const
 
template<typename TS , typename RADIUS_ARRAY >
SYS_FORCE_INLINE FloatType queryDistance2 (const TS &tree_point, const RADIUS_ARRAY &radii, uint index) const
 This must be the exact distance squared. More...
 
template<bool farthest>
SYS_FORCE_INLINE uint boxHitAndDist2 (const BoxType &boxes, const FloatType max_dist_squared, const uint internal_node_num, v4uf &dist2) const
 

Public Attributes

const UT_FixedVector
< FloatType, NAXES > 
myP0
 
const UT_FixedVector
< FloatType, NAXES > 
myDir
 
const UT_FixedVector< v4uf, NAXES > myVP0
 
const UT_FixedVector< v4uf, NAXES > myVDir
 

Static Public Attributes

static constexpr bool theAllPointsValid = true
 isValid() doesn't need to be called, because theAllPointsValid is true. More...
 

Detailed Description

template<uint NAXES>
struct UT::BVHQueryInfLine< NAXES >

This replaces UT_KDLineQuery. This treats distance as the distance from a tree point to the infinite query line.

Definition at line 3309 of file UT_BVHImpl.h.

Member Typedef Documentation

template<uint NAXES>
using UT::BVHQueryInfLine< NAXES >::BoxType = UT::Box<v4uf,NAXES>

Definition at line 3320 of file UT_BVHImpl.h.

template<uint NAXES>
using UT::BVHQueryInfLine< NAXES >::FloatType = float

Definition at line 3311 of file UT_BVHImpl.h.

Constructor & Destructor Documentation

template<uint NAXES>
template<typename TS >
SYS_FORCE_INLINE UT::BVHQueryInfLine< NAXES >::BVHQueryInfLine ( const TS &  p0,
const TS &  dir 
)
inline

Definition at line 3324 of file UT_BVHImpl.h.

Member Function Documentation

template<uint NAXES>
template<bool farthest>
SYS_FORCE_INLINE uint UT::BVHQueryInfLine< NAXES >::boxHitAndDist2 ( const BoxType boxes,
const FloatType  max_dist_squared,
const uint  internal_node_num,
v4uf dist2 
) const
inline

The distance squared can be an underestimate, but not an overestimate, of the true distance squared. The reverse is the case if farthest is true. Also, if farthest is true, max_dist_squared is actually min_dist_squared.

Definition at line 3364 of file UT_BVHImpl.h.

template<uint NAXES>
SYS_FORCE_INLINE bool UT::BVHQueryInfLine< NAXES >::isValid ( uint  tree_point_index) const
inline

NOTE: This doesn't necessarily need to be const, for subclasses that have a limit on the number of invalid points hit before giving up, for example.

Definition at line 3338 of file UT_BVHImpl.h.

template<uint NAXES>
template<typename TS , typename RADIUS_ARRAY >
SYS_FORCE_INLINE FloatType UT::BVHQueryInfLine< NAXES >::queryDistance2 ( const TS &  tree_point,
const RADIUS_ARRAY &  radii,
uint  index 
) const
inline

This must be the exact distance squared.

Definition at line 3345 of file UT_BVHImpl.h.

Member Data Documentation

template<uint NAXES>
const UT_FixedVector<FloatType, NAXES> UT::BVHQueryInfLine< NAXES >::myDir

Definition at line 3314 of file UT_BVHImpl.h.

template<uint NAXES>
const UT_FixedVector<FloatType, NAXES> UT::BVHQueryInfLine< NAXES >::myP0

Definition at line 3313 of file UT_BVHImpl.h.

template<uint NAXES>
const UT_FixedVector<v4uf, NAXES> UT::BVHQueryInfLine< NAXES >::myVDir

Definition at line 3316 of file UT_BVHImpl.h.

template<uint NAXES>
const UT_FixedVector<v4uf, NAXES> UT::BVHQueryInfLine< NAXES >::myVP0

Definition at line 3315 of file UT_BVHImpl.h.

template<uint NAXES>
constexpr bool UT::BVHQueryInfLine< NAXES >::theAllPointsValid = true
static

isValid() doesn't need to be called, because theAllPointsValid is true.

Definition at line 3319 of file UT_BVHImpl.h.


The documentation for this struct was generated from the following file: