Changeset 1782
- Timestamp:
- 11/22/06 15:51:08 (18 years ago)
- Location:
- GTP/trunk/Lib/Geom/shared/GTGeometry
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/GTGeometry.vcproj
r1526 r1782 34 34 <Tool 35 35 Name="VCLibrarianTool" 36 OutputFile="$(OutDir)/GTGeometry_d.lib"/> 36 OutputFile="$(OutDir)/GTGeometry_d.lib" 37 IgnoreAllDefaultLibraries="TRUE"/> 37 38 <Tool 38 39 Name="VCMIDLTool"/> -
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodTreeLibrary.cpp
r1526 r1782 102 102 + 103 103 newlod * foliage->leafCount ); 104 104 105 105 foliage->CalculateLOD(targetLeaves); 106 106 -
GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/leaves/foliage.cpp
r1526 r1782 84 84 void Foliage::CalculateLOD(int nleaves) 85 85 { 86 if ((nleaves <= leafCount) && (nleaves > minLeaves)) 86 if (nleaves>=leafCount) 87 nleaves=leafCount-1; 88 // if (nleaves<=minLeaves) 89 // nleaves=minLeaves+1; 90 if ((nleaves < leafCount) && (nleaves >= minLeaves)) 87 91 { 88 92 if ( nleaves < active_leaf_count) { … … 106 110 j = num; 107 111 h = final+1; 108 while ((h< =leafTotal) && (j>0))112 while ((h<leafTotal) && (j>0)) 109 113 { 110 114 while (( begin == Leaves[h].childLeft) || ( begin == Leaves[h].childRight))
Note: See TracChangeset
for help on using the changeset viewer.