Changeset 2093 for GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
- Timestamp:
- 02/05/07 16:17:40 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r2073 r2093 391 391 cout << "finished" << endl; 392 392 } 393 394 if (mObjectSpaceSubdivisionType == BV_BASED_OBJ_SUBDIV) 395 { 396 mBvHierarchy->SetUniqueNodeIds(); 397 } 393 398 } 394 399 … … 1662 1667 } 1663 1668 } 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 } 1664 1689 else 1665 1690 {
Note: See TracChangeset
for help on using the changeset viewer.