| 39 | |
| 40 | template <typename PointType> |
| 41 | void KD_TREE<PointType>::InitTreeNode(KD_TREE_NODE *root) |
| 42 | { |
| 43 | root->point.x = 0.0f; |
| 44 | root->point.y = 0.0f; |
| 45 | root->point.z = 0.0f; |
| 46 | root->node_range_x[0] = 0.0f; |
| 47 | root->node_range_x[1] = 0.0f; |
| 48 | root->node_range_y[0] = 0.0f; |
| 49 | root->node_range_y[1] = 0.0f; |
| 50 | root->node_range_z[0] = 0.0f; |
| 51 | root->node_range_z[1] = 0.0f; |
| 52 | root->radius_sq = 0.0f; |
| 53 | root->division_axis = 0; |
| 54 | root->father_ptr = nullptr; |
| 55 | root->left_son_ptr = nullptr; |
| 56 | root->right_son_ptr = nullptr; |
| 57 | root->TreeSize = 0; |
| 58 | root->invalid_point_num = 0; |
| 59 | root->down_del_num = 0; |
| 60 | root->point_deleted = false; |
| 61 | root->tree_deleted = false; |
| 62 | root->need_push_down_to_left = false; |
| 63 | root->need_push_down_to_right = false; |
| 64 | root->point_downsample_deleted = false; |
| 65 | root->working_flag = false; |
| 66 | pthread_mutex_init(&(root->push_down_mutex_lock), NULL); |
| 67 | } |
| 68 | |
| 69 | template <typename PointType> |
| 70 | int KD_TREE<PointType>::size() |
nothing calls this directly
no outgoing calls
no test coverage detected