Fermat
Classes | Public Types | Public Methods | List of all members
cugar::Bvh_builder< DIM > Class Template Reference

Detailed description

template<uint32 DIM>
class cugar::Bvh_builder< DIM >

A bvh builder for sets of low dimensional bboxes

#include <bvh.h>

Classes

struct  Bvh_partitioner
 

Public Types

typedef Vector< float, DIM > vector_type
 
typedef Bbox< vector_typebbox_type
 

Public Methods

 Bvh_builder ()
 
void set_params (const uint32 max_leaf_size)
 
template<typename Iterator >
void build (const Iterator begin, const Iterator end, Bvh< DIM > *bvh)
 
uint32 index (const uint32 i)
 

Constructor & Destructor Documentation

◆ Bvh_builder()

template<uint32 DIM>
cugar::Bvh_builder< DIM >::Bvh_builder ( )
inline

constructor

Member Function Documentation

◆ build()

template<uint32 DIM>
template<typename Iterator >
void cugar::Bvh_builder< DIM >::build ( const Iterator  begin,
const Iterator  end,
Bvh< DIM > *  bvh 
)

build

Iterator is supposed to dereference to a Vector<float,DIM>

Parameters
beginfirst point
endlast point
bvhoutput bvh

◆ index()

template<uint32 DIM>
uint32 cugar::Bvh_builder< DIM >::index ( const uint32  i)
inline

remapped point index

◆ set_params()

template<uint32 DIM>
void cugar::Bvh_builder< DIM >::set_params ( const uint32  max_leaf_size)
inline

set bvh parameters

Parameters
max_leaf_sizemaximum leaf size

The documentation for this class was generated from the following files: