Changeset 486 for trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
- Timestamp:
- 12/30/05 16:37:41 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
r485 r486 47 47 mOnlyDrivingAxis(false) 48 48 { 49 Randomize(); // initialise random generator for heuristics 49 bool randomize = false; 50 environment->GetBoolValue("VspBspTree.Construction.randomize", randomize); 51 if (randomize) 52 Randomize(); // initialise random generator for heuristics 50 53 51 54 //-- termination criteria for autopartition … … 96 99 Debug << "max polygon candidates: " << mMaxPolyCandidates << endl; 97 100 Debug << "max plane candidates: " << mMaxRayCandidates << endl; 101 Debug << "randomize: " << randomize << endl; 98 102 99 103 Debug << "Split plane strategy: "; … … 1904 1908 // find intersection of ray segment with plane 1905 1909 extp = splitPlane.FindIntersection(origin, extp, &t); 1910 //cout << "x"; 1906 1911 } 1907 1912 else 1908 1913 { 1914 //cout << "o"; 1909 1915 // reached leaf => intersection with view cell 1910 1916 BspLeaf *leaf = dynamic_cast<BspLeaf *>(node); … … 1931 1937 } 1932 1938 } 1933 1939 //cout << "!!!!!!!!!!!" << endl; 1934 1940 return hits; 1935 1941 } … … 2428 2434 BspViewCell *vc2) const 2429 2435 { 2430 //Debug << "old pvs: " << vc1->GetPvs().GetSize() + vc2->GetPvs().GetSize()2431 // << " (" << vc1->GetPvs().GetSize() << ", " << vc2->GetPvs().GetSize() << ")" << endl;2432 2436 // compute new pvs and area 2433 2437 vc1->GetPvs().SubtractPvs(*leaf->mPvs); … … 2455 2459 }*/ 2456 2460 2457 leaf->SetViewCell(vc2); 2461 leaf->SetViewCell(vc2); // finally change view cell 2458 2462 2459 2463 //Debug << "new pvs: " << vc1->GetPvs().GetSize() + vc2->GetPvs().GetSize()
Note: See TracChangeset
for help on using the changeset viewer.