Logo Search packages:      
Sourcecode: blender version File versions  Download package

void GIM_BOX_TREE::build_tree ( gim_array< GIM_AABB_DATA > &  primitive_boxes  ) 

stackless build tree

prototype functions for box tree management

Definition at line 171 of file gim_box_set.cpp.

References gim_array< T >::resize(), and gim_array< T >::size().

{
      // initialize node count to 0
      m_num_nodes = 0;
      // allocate nodes
      m_node_array.resize(primitive_boxes.size()*2);
      
      _build_sub_tree(primitive_boxes, 0, primitive_boxes.size());
}


Generated by  Doxygen 1.6.0   Back to index