Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BVH_QueueBuilder< T, N >::BVH_ChildNodes Struct Reference

Stores parameters of constructed child nodes. More...

#include <BVH_QueueBuilder.hxx>

Public Member Functions

 BVH_ChildNodes ()=default
 Creates new parameters of BVH child nodes.
 BVH_ChildNodes (const BVH_Box< T, N > &theLftBox, const BVH_Box< T, N > &theRghBox, const BVH_PrimitiveRange &theLftRange, const BVH_PrimitiveRange &theRghRange)
 Creates new parameters of BVH child nodes.
int NbPrims (const int theChild) const
 Returns number of primitives in the given child.
bool IsValid () const
 Checks if the parameters is initialized.

Data Fields

BVH_Box< T, N > Boxes [2]
 Bounding boxes of child nodes.
BVH_PrimitiveRange Ranges [2]
 Primitive ranges of child nodes.

Detailed Description

template<class T, int N>
struct BVH_QueueBuilder< T, N >::BVH_ChildNodes

Stores parameters of constructed child nodes.

Constructor & Destructor Documentation

◆ BVH_ChildNodes() [1/2]

template<class T, int N>
BVH_QueueBuilder< T, N >::BVH_ChildNodes::BVH_ChildNodes ( )
default

Creates new parameters of BVH child nodes.

◆ BVH_ChildNodes() [2/2]

template<class T, int N>
BVH_QueueBuilder< T, N >::BVH_ChildNodes::BVH_ChildNodes ( const BVH_Box< T, N > & theLftBox,
const BVH_Box< T, N > & theRghBox,
const BVH_PrimitiveRange & theLftRange,
const BVH_PrimitiveRange & theRghRange )
inline

Creates new parameters of BVH child nodes.

Member Function Documentation

◆ IsValid()

template<class T, int N>
bool BVH_QueueBuilder< T, N >::BVH_ChildNodes::IsValid ( ) const
inline

Checks if the parameters is initialized.

◆ NbPrims()

template<class T, int N>
int BVH_QueueBuilder< T, N >::BVH_ChildNodes::NbPrims ( const int theChild) const
inline

Returns number of primitives in the given child.

Field Documentation

◆ Boxes

template<class T, int N>
BVH_Box<T, N> BVH_QueueBuilder< T, N >::BVH_ChildNodes::Boxes[2]

Bounding boxes of child nodes.

◆ Ranges

template<class T, int N>
BVH_PrimitiveRange BVH_QueueBuilder< T, N >::BVH_ChildNodes::Ranges[2]

Primitive ranges of child nodes.


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