Changeset 165 for trunk/VUT/GtpVisibilityPreprocessor/src
- Timestamp:
- 07/11/05 11:07:58 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Exporter.h
r162 r165 38 38 ExportMeshInstance(MeshInstance *mesh) = 0; 39 39 40 SetWireframe() { wireframe = true; }41 SetFilled() { wireframe = false; }40 void SetWireframe() { wireframe = true; } 41 void SetFilled() { wireframe = false; } 42 42 43 43 static Exporter * -
trunk/VUT/GtpVisibilityPreprocessor/src/KdTree.cpp
r162 r165 424 424 // C = ct_div_ci + (ol + or)/queries 425 425 426 int o l = 0, or= node->mObjects.size();426 int objectsLeft = 0, objectsRight = node->mObjects.size(); 427 427 428 428 float minBox = box.Min(axis); … … 443 443 switch ((*ci).type) { 444 444 case SortableEntry::MESH_MIN: 445 o l++;445 objectsLeft++; 446 446 break; 447 447 case SortableEntry::MESH_MAX: 448 o r--;448 objectsRight--; 449 449 break; 450 450 } … … 456 456 rbox.SetMin(axis, (*ci).value); 457 457 458 float sum = o l*lbox.SurfaceArea() + or*rbox.SurfaceArea();458 float sum = objectsLeft*lbox.SurfaceArea() + objectsRight*rbox.SurfaceArea(); 459 459 460 460 // cout<<"pos="<<(*ci).value<<"\t q=("<<ql<<","<<qr<<")\t r=("<<rl<<","<<rr<<")"<<endl; … … 465 465 position = (*ci).value; 466 466 467 objectsBack = o l;468 objectsFront = o r;467 objectsBack = objectsLeft; 468 objectsFront = objectsRight; 469 469 } 470 470 }
Note: See TracChangeset
for help on using the changeset viewer.