From efbe6af104c3f1bef92aa96fdb74df8f4f8f2b2a Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 19 Aug 2003 02:29:44 +0000 Subject: [PATCH] calc_tex_coords() -> sgCalcTexCoords() --- src/BuildTiles/GenOutput/genobj.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/BuildTiles/GenOutput/genobj.cxx b/src/BuildTiles/GenOutput/genobj.cxx index faba0f59..8a2ad0ee 100644 --- a/src/BuildTiles/GenOutput/genobj.cxx +++ b/src/BuildTiles/GenOutput/genobj.cxx @@ -197,9 +197,11 @@ int TGGenOutput::build( TGConstruct& c ) { // build the texture coordinate list and make a parallel structure // to the fan list for pointers into the texture list cout << "calculating texture coordinates" << endl; + cout << "c.get_useUKGrid() = " << c.get_useUKGrid() << endl; tex_coords.clear(); for ( i = 0; i < TG_MAX_AREA_TYPES; ++i ) { + // cout << " area = " << i << endl; for ( j = 0; j < (int)fans[i].size(); ++j ) { // int_list t_list = calc_tex_coords( c, geod_nodes, fans[i][j] ); // cout << fans[i][j].size() << " === " @@ -216,12 +218,13 @@ int TGGenOutput::build( TGConstruct& c ) { if( (c.get_useUKGrid()) && (isInUK(ourPosition)) ) { tp_list = UK_calc_tex_coords( b, geod_nodes, fans[i][j], 1.0 ); } else { - tp_list = calc_tex_coords( b, geod_nodes, fans[i][j] ); + tp_list = sgCalcTexCoords( b, geod_nodes, fans[i][j] ); } int_list ti_list; ti_list.clear(); for ( int k = 0; k < (int)tp_list.size(); ++k ) { + // cout << " tc = " << tp_list[k] << endl; int index = tex_coords.simple_add( tp_list[k] ); ti_list.push_back( index ); }