MCPcopy Create free account
hub / github.com/carbonengine/trinity / AddFaceToTree

Function AddFaceToTree

trinity/Eve/UI/EveSpherePinIndexTree.cpp:380–397  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

378
379// ------------------------------------------------------------------------------------------------------
380void 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
399void ClearTree( EveSpherePinIndexTree::TreeNode* node )
400{

Callers 1

InitializeMethod · 0.85

Calls 1

OverlapTestFunction · 0.85

Tested by

no test coverage detected