HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > > Struct Template Reference

#include <UT_BVHImpl.h>

+ Inheritance diagram for UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >:

Public Types

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

Public Member Functions

SYS_FORCE_INLINE BVHQueryPointWrapper (const UT_FixedVector< float, NAXES, INSTANTIATED > &query_point)
 
SYS_FORCE_INLINE bool isValid (uint tree_point_index) const
 
template<bool INSTANTIATED2, typename RADIUS_ARRAY >
SYS_FORCE_INLINE float distance2 (const UT_FixedVector< float, NAXES, INSTANTIATED2 > &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 float max_dist_squared, const uint internal_node_num, v4uf &dist2) const
 

Public Attributes

const UT_FixedVector< v4uf, NAXES > myVQueryPoint
 
const UT_FixedVector< float,
NAXES > 
myQueryPoint
 

Static Public Attributes

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

Detailed Description

template<exint NAXES, bool INSTANTIATED>
struct UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >

Definition at line 3088 of file UT_BVHImpl.h.

Member Typedef Documentation

template<exint NAXES, bool INSTANTIATED>
using UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >::BoxType = UT::Box<v4uf,NAXES>

Definition at line 3094 of file UT_BVHImpl.h.

Constructor & Destructor Documentation

template<exint NAXES, bool INSTANTIATED>
SYS_FORCE_INLINE UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >::BVHQueryPointWrapper ( const UT_FixedVector< float, NAXES, INSTANTIATED > &  query_point)
inline

Definition at line 3097 of file UT_BVHImpl.h.

Member Function Documentation

template<exint NAXES, bool INSTANTIATED>
template<bool farthest>
SYS_FORCE_INLINE uint UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >::boxHitAndDist2 ( const BoxType boxes,
const float  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 3124 of file UT_BVHImpl.h.

template<exint NAXES, bool INSTANTIATED>
template<bool INSTANTIATED2, typename RADIUS_ARRAY >
SYS_FORCE_INLINE float UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >::distance2 ( const UT_FixedVector< float, NAXES, INSTANTIATED2 > &  tree_point,
const RADIUS_ARRAY &  radii,
uint  index 
) const
inline

This must be the exact distance squared.

Definition at line 3112 of file UT_BVHImpl.h.

template<exint NAXES, bool INSTANTIATED>
SYS_FORCE_INLINE bool UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >::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 3105 of file UT_BVHImpl.h.

Member Data Documentation

template<exint NAXES, bool INSTANTIATED>
const UT_FixedVector<float,NAXES> UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >::myQueryPoint

Definition at line 3090 of file UT_BVHImpl.h.

template<exint NAXES, bool INSTANTIATED>
const UT_FixedVector<v4uf,NAXES> UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >::myVQueryPoint

Definition at line 3089 of file UT_BVHImpl.h.

template<exint NAXES, bool INSTANTIATED>
constexpr bool UT::BVHQueryPointWrapper< const UT_FixedVector< float, NAXES, INSTANTIATED > >::theAllPointsValid = true
static

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

Definition at line 3093 of file UT_BVHImpl.h.


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