Changeset 1121 for GTP/trunk/Lib/Vis/Preprocessing/src/VrmlExporter.cpp
- Timestamp:
- 07/12/06 00:52:51 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VrmlExporter.cpp
r1108 r1121 222 222 tStack.push(pair<BspNode *, BspNodeGeometry *>(tree.GetRoot(), geom)); 223 223 224 // color code pvs 224 225 if (maxPvs) 226 { 225 227 mUseForcedMaterial = true; 226 228 } 229 227 230 while (!tStack.empty()) 228 231 { … … 647 650 delete mesh; 648 651 return true; 649 }650 651 652 bool VrmlExporter::ExportOspTree(const OspTree &ospTree)653 {654 vector<KdLeaf *> leaves;655 ospTree.CollectLeaves(leaves);656 657 mUseForcedMaterial = true;658 659 vector<KdLeaf *>::const_iterator it, it_end = leaves.end();660 661 Material white;662 white.mDiffuseColor.r = 1;663 white.mDiffuseColor.g = 1;664 white.mDiffuseColor.b = 1;665 666 for (it = leaves.begin(); it != it_end; ++ it)667 {668 SetWireframe();669 SetForcedMaterial(white);670 ExportBox(ospTree.GetBBox(*it));671 672 SetFilled();673 SetForcedMaterial(RandomMaterial());674 ExportGeometry((*it)->mObjects);675 }676 677 return true;678 652 } 679 653
Note: See TracChangeset
for help on using the changeset viewer.