------------------------------------------------------------------------------------------------------
| 378 | |
| 379 | // ------------------------------------------------------------------------------------------------------ |
| 380 | void AddFaceToTree( EveSpherePinIndexTree::TreeNode* node, EveSpherePinIndexTree::Face* face, std::vector<Vector2>& vertices ) |
| 381 | { |
| 382 | if( node->left && node->right ) |
| 383 | { |
| 384 | if( OverlapTest( node->left, face, vertices ) ) |
| 385 | { |
| 386 | AddFaceToTree( node->left, face, vertices ); |
| 387 | } |
| 388 | if( OverlapTest( node->right, face, vertices ) ) |
| 389 | { |
| 390 | AddFaceToTree( node->right, face, vertices ); |
| 391 | } |
| 392 | |
| 393 | return; |
| 394 | } |
| 395 | |
| 396 | node->faces.push_back( face ); |
| 397 | } |
| 398 | |
| 399 | void ClearTree( EveSpherePinIndexTree::TreeNode* node ) |
| 400 | { |
no test coverage detected