Open CASCADE Technology 7.8.0
Public Member Functions | Data Fields
BVH_QueueBuilder< T, N >::BVH_ChildNodes Struct Reference

Stores parameters of constructed child nodes. More...

#include <BVH_QueueBuilder.hxx>

Public Member Functions

 BVH_ChildNodes ()
 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.
 
Standard_Integer NbPrims (const Standard_Integer theChild) const
 Returns number of primitives in the given child.
 
Standard_Boolean 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 ( )
inline

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>
Standard_Boolean BVH_QueueBuilder< T, N >::BVH_ChildNodes::IsValid ( ) const
inline

Checks if the parameters is initialized.

◆ NbPrims()

template<class T , int N>
Standard_Integer BVH_QueueBuilder< T, N >::BVH_ChildNodes::NbPrims ( const Standard_Integer  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: