- Timestamp:
- 01/04/09 21:48:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ViewCellsTree.cpp
r3245 r3246 13 13 14 14 #define VIEWCELLS_VERSION 1.0f 15 16 static const float sScale = 0.05f; 17 15 18 16 19 namespace CHCDemoEngine … … 75 78 } 76 79 80 AxisAlignedBox3 box; 77 81 // get the bounding box 78 82 // exchange x and y coordinates and recompute box 79 fread(& mBox, sizeof(AxisAlignedBox3), 1, fr);83 fread(&box, sizeof(AxisAlignedBox3), 1, fr); 80 84 81 Vector3 v1(mBox.Min().x, -mBox.Min().z, mBox.Min().y); 82 Vector3 v2(mBox.Max().x, -mBox.Max().z, mBox.Max().y); 85 box.Scale(sScale); 86 87 Vector3 v1(box.Min().x, -box.Min().z, box.Min().y); 88 Vector3 v2(box.Max().x, -box.Max().z, box.Max().y); 83 89 84 90 mBox.Initialize(); … … 119 125 float mypos; 120 126 fread(&mypos, sizeof(float), 1, fr); 127 128 mypos *= sScale; 129 121 130 // changed coordinate system must be considered also here 122 131 if (node->mAxis == 1)
Note: See TracChangeset
for help on using the changeset viewer.