Ignore:
Timestamp:
02/05/07 16:17:40 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r2073 r2093  
    391391                cout << "finished" << endl; 
    392392        } 
     393 
     394        if (mObjectSpaceSubdivisionType == BV_BASED_OBJ_SUBDIV) 
     395        { 
     396                mBvHierarchy->SetUniqueNodeIds(); 
     397        } 
    393398} 
    394399 
     
    16621667                } 
    16631668        } 
     1669        else if (mObjectSpaceSubdivisionType == BV_BASED_OBJ_SUBDIV) 
     1670        { 
     1671                // export bounding boxes 
     1672        vector<BvhNode *> nodes; 
     1673 
     1674                // hack: should also expect interior nodes 
     1675                mBvHierarchy->CollectNodes(mBvHierarchy->GetRoot(), nodes); 
     1676 
     1677                vector<BvhNode *>::const_iterator oit, oit_end = nodes.end(); 
     1678 
     1679                for (oit = nodes.begin(); oit != oit_end; ++ oit) 
     1680                { 
     1681                        const AxisAlignedBox3 box = (*oit)->GetBox(); 
     1682                        const int id = (*oit)->GetId(); 
     1683                         
     1684                        stream << "<BoundingBox" << " id=\"" << (*oit)->GetId() << "\"" 
     1685                                   << " min=\"" << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\"" 
     1686                                   << " max=\"" << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl; 
     1687                } 
     1688        } 
    16641689        else 
    16651690        { 
Note: See TracChangeset for help on using the changeset viewer.