------------------------------------------------------------------------------
| 1087 | |
| 1088 | //------------------------------------------------------------------------------ |
| 1089 | void vtkKdTree::CopyChildNodes(vtkKdNode* to, vtkKdNode* from) |
| 1090 | { |
| 1091 | if (from->GetLeft()) |
| 1092 | { |
| 1093 | vtkKdNode* left = vtkKdNode::New(); |
| 1094 | vtkKdNode* right = vtkKdNode::New(); |
| 1095 | |
| 1096 | vtkKdTree::CopyKdNode(left, from->GetLeft()); |
| 1097 | vtkKdTree::CopyKdNode(right, from->GetRight()); |
| 1098 | |
| 1099 | to->AddChildNodes(left, right); |
| 1100 | |
| 1101 | vtkKdTree::CopyChildNodes(to->GetLeft(), from->GetLeft()); |
| 1102 | vtkKdTree::CopyChildNodes(to->GetRight(), from->GetRight()); |
| 1103 | } |
| 1104 | } |
| 1105 | |
| 1106 | //------------------------------------------------------------------------------ |
| 1107 | void vtkKdTree::CopyKdNode(vtkKdNode* to, vtkKdNode* from) |
nothing calls this directly
no test coverage detected