1
0
Fork 0

This patch *should* fix the "open grassy" areas at the centers of runways

with displaced thresholds.  (Not fully tested yet.)
This commit is contained in:
curt 2004-04-07 04:05:39 +00:00
parent c8ded2eda1
commit 1a69225101
4 changed files with 6 additions and 13 deletions

View file

@ -40,13 +40,6 @@ SG_USING_NAMESPACE( PLib );
// fix node elevations. Offset is added to the final elevation // fix node elevations. Offset is added to the final elevation
static void calc_elevations( const string &root, const string_list elev_src, static void calc_elevations( const string &root, const string_list elev_src,
Matrix_Point3Df &Pts ) { Matrix_Point3Df &Pts ) {
// string_list elev_src;
// elev_src.clear();
// elev_src.push_back( "SRTM-1" );
// elev_src.push_back( "SRTM-3" );
// elev_src.push_back( "DEM-3" );
// elev_src.push_back( "DEM-30" );
bool done = false; bool done = false;
int i, j; int i, j;
TGArray array; TGArray array;

View file

@ -120,7 +120,7 @@ void gen_non_precision_rwy( const TGRunway& rwy_info,
double tex_pct = (200.0 - part_len) / 200.0; double tex_pct = (200.0 - part_len) / 200.0;
// starting (possibly partial chunk) // starting (possibly partial chunk)
start2_pct = end2_pct; start2_pct = -rwy_info.disp_thresh1 / length;
end2_pct = start2_pct + ( part_len / length ); end2_pct = start2_pct + ( part_len / length );
gen_runway_section( rwy_info, runway_b, gen_runway_section( rwy_info, runway_b,
start2_pct, end2_pct, start2_pct, end2_pct,
@ -170,7 +170,7 @@ void gen_non_precision_rwy( const TGRunway& rwy_info,
double tex_pct = (200.0 - part_len) / 200.0; double tex_pct = (200.0 - part_len) / 200.0;
// starting (possibly partial chunk) // starting (possibly partial chunk)
start1_pct = end1_pct; start1_pct = -rwy_info.disp_thresh2 / length;
end1_pct = start1_pct + ( part_len / length ); end1_pct = start1_pct + ( part_len / length );
gen_runway_section( rwy_info, runway_a, gen_runway_section( rwy_info, runway_a,
start1_pct, end1_pct, start1_pct, end1_pct,

View file

@ -124,7 +124,7 @@ void gen_precision_rwy( const TGRunway& rwy_info,
double tex_pct = (200.0 - part_len) / 200.0; double tex_pct = (200.0 - part_len) / 200.0;
// starting (possibly partial chunk) // starting (possibly partial chunk)
start2_pct = end2_pct; start2_pct = -rwy_info.disp_thresh1 / length;
end2_pct = start2_pct + ( part_len / length ); end2_pct = start2_pct + ( part_len / length );
gen_runway_section( rwy_info, runway_b, gen_runway_section( rwy_info, runway_b,
start2_pct, end2_pct, start2_pct, end2_pct,
@ -174,7 +174,7 @@ void gen_precision_rwy( const TGRunway& rwy_info,
double tex_pct = (200.0 - part_len) / 200.0; double tex_pct = (200.0 - part_len) / 200.0;
// starting (possibly partial chunk) // starting (possibly partial chunk)
start1_pct = end1_pct; start1_pct = -rwy_info.disp_thresh2 / length;
end1_pct = start1_pct + ( part_len / length ); end1_pct = start1_pct + ( part_len / length );
gen_runway_section( rwy_info, runway_a, gen_runway_section( rwy_info, runway_a,
start1_pct, end1_pct, start1_pct, end1_pct,

View file

@ -121,7 +121,7 @@ void gen_visual_rwy( const TGRunway& rwy_info,
double tex_pct = (200.0 - part_len) / 200.0; double tex_pct = (200.0 - part_len) / 200.0;
// starting (possibly partial chunk) // starting (possibly partial chunk)
start2_pct = end2_pct; start2_pct = -rwy_info.disp_thresh1 / length;
end2_pct = start2_pct + ( part_len / length ); end2_pct = start2_pct + ( part_len / length );
gen_runway_section( rwy_info, runway_b, gen_runway_section( rwy_info, runway_b,
start2_pct, end2_pct, start2_pct, end2_pct,
@ -171,7 +171,7 @@ void gen_visual_rwy( const TGRunway& rwy_info,
double tex_pct = (200.0 - part_len) / 200.0; double tex_pct = (200.0 - part_len) / 200.0;
// starting (possibly partial chunk) // starting (possibly partial chunk)
start1_pct = end1_pct; start1_pct = -rwy_info.disp_thresh2 / length;
end1_pct = start1_pct + ( part_len / length ); end1_pct = start1_pct + ( part_len / length );
gen_runway_section( rwy_info, runway_a, gen_runway_section( rwy_info, runway_a,
start1_pct, end1_pct, start1_pct, end1_pct,