Changeset 543 for trunk/VUT/GtpVisibilityPreprocessor/src
- Timestamp:
- 01/16/06 09:42:33 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
r542 r543 882 882 { 883 883 nPosition[axis] = (box.Min()[axis] + box.Max()[axis]) * 0.5f; 884 Vector3 normal(0,0,0); normal[axis] = 1 ;884 Vector3 normal(0,0,0); normal[axis] = 1.0f; 885 885 886 886 if (useKdSplit) … … 891 891 nPosition[axis]); 892 892 893 Vector3 pos = box.Max(); pos[axis] = nPosition[axis]; 894 AxisAlignedBox3 frontBox(box.Min(), pos); 895 frontBox.ExtractPolys(nFrontGeom[axis]->mPolys); 893 Vector3 pos; 894 895 pos = box.Max(); pos[axis] = nPosition[axis]; 896 AxisAlignedBox3 backBox(box.Min(), pos); 897 backBox.ExtractPolys(nBackGeom[axis]->mPolys); 896 898 897 899 pos = box.Min(); pos[axis] = nPosition[axis]; 898 AxisAlignedBox3 backBox(pos, box.Max());899 backBox.ExtractPolys(nBackGeom[axis]->mPolys);900 AxisAlignedBox3 frontBox(pos, box.Max()); 901 frontBox.ExtractPolys(nFrontGeom[axis]->mPolys); 900 902 901 903 } … … 1105 1107 // we can do this because we always save the 1106 1108 // computed values from the axis aligned splits 1107 frontData.mGeometry = fGeom;1109 /*frontData.mGeometry = fGeom; 1108 1110 backData.mGeometry = bGeom; 1109 1111 frontData.mArea = fArea; 1110 1112 backData.mArea = bArea; 1111 1113 */ 1112 1114 //! error also computed if cost ratio is missed 1113 1115 ++ mStat.splits[axis];
Note: See TracChangeset
for help on using the changeset viewer.