Changeset 1020 for GTP/trunk/Lib/Vis/Preprocessing/src/VrmlExporter.cpp
- Timestamp:
- 06/18/06 03:47:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VrmlExporter.cpp
r1006 r1020 42 42 stream<<"}"<<endl; 43 43 44 stream<<" IndexedLineSet { coordIndex=\""<<endl;44 stream<<"geometry IndexedLineSet { coordIndex [" << endl; 45 45 46 46 int index = 0; … … 51 51 } 52 52 53 stream << " }"<<endl;54 55 stream <<"<Coordinate point=\""<<endl;53 stream << "]"<<endl; 54 55 stream << "coord Coordinate { point [" << endl; 56 56 57 57 ri = rays.begin(); … … 77 77 stream << b.x << " " << b.y << " " << b.z << " ,\n"; 78 78 } 79 79 stream << "]" << endl; 80 80 stream << "}" << endl; 81 81 stream << "}" << endl; 82 82 stream << "}" << endl; 83 stream << "}" << endl;83 //stream << "}" << endl; 84 84 85 85 return true; … … 99 99 stream << "}" << endl; // end appearance 100 100 101 stream << " IndexedLineSet { coordIndex=\"" << endl;101 stream << "geometry IndexedLineSet { coordIndex [" << endl; 102 102 103 103 int index = 0; … … 108 108 } 109 109 110 stream << " }" << endl;111 112 stream << " Coordinate point= {" << endl;110 stream << "]" << endl; 111 112 stream << "coord Coordinate { point [" << endl; 113 113 114 114 ri = rays.begin(); … … 121 121 stream<<b.x<<" "<<b.y<<" "<<b.z<<" ,\n"; 122 122 } 123 123 stream << "]" << endl; 124 124 stream << "}" << endl; 125 125 stream << "}" << endl; 126 126 stream << "}" << endl; 127 stream << "}" << endl;127 //stream << "}" << endl; 128 128 129 129 return true; … … 215 215 tStack.push(pair<BspNode *, BspNodeGeometry *>(tree.GetRoot(), geom)); 216 216 217 if (maxPvs > 0)217 if (maxPvs) 218 218 mUseForcedMaterial = true; 219 219 220 220 while (!tStack.empty()) 221 221 { … … 242 242 else 243 243 { 244 if (maxPvs > 0)244 if (maxPvs) 245 245 { 246 246 BspLeaf *leaf = dynamic_cast<BspLeaf *>(node); 247 247 248 248 mForcedMaterial.mDiffuseColor.b = 1.0f; 249 float importance = (float)leaf->GetViewCell()->GetPvs().GetSize() / (float)maxPvs;249 const float importance = (float)leaf->GetViewCell()->GetPvs().GetSize() / (float)maxPvs; 250 250 251 251 mForcedMaterial.mDiffuseColor.r = importance; … … 599 599 //Mesh *mesh = new Mesh; 600 600 601 if (maxPvs > 0)601 if (maxPvs) 602 602 mUseForcedMaterial = true; 603 603 … … 632 632 mesh->AddFace(new Face(index + 2, index + 3, index + 7, index + 6) ); 633 633 634 if (maxPvs > 0)634 if (maxPvs) 635 635 { 636 636 VspKdLeaf *leaf = dynamic_cast<VspKdLeaf *>(node);
Note: See TracChangeset
for help on using the changeset viewer.