spelling fix
This commit is contained in:
parent
f5e6c3821f
commit
aa0c7e1c96
1 changed files with 15 additions and 15 deletions
|
@ -125,7 +125,7 @@ void TGConstruct::LoadMatchedEdgeFiles()
|
|||
|
||||
// Read Northern tile and add its southern nodes
|
||||
nb = bucket.sibling(0, 1);
|
||||
LoadNeighboorMatchDataStage1( nb, north, south, east, west );
|
||||
LoadNeighborMatchDataStage1( nb, north, south, east, west );
|
||||
if ( !south.empty() ) {
|
||||
SG_LOG( SG_GENERAL, SG_DEBUG, "Read " << south.size() << " northern matched nodes " );
|
||||
|
||||
|
@ -138,7 +138,7 @@ void TGConstruct::LoadMatchedEdgeFiles()
|
|||
|
||||
// Read Southern Tile and add its northern nodes
|
||||
sb = bucket.sibling(0, -1);
|
||||
LoadNeighboorMatchDataStage1( sb, north, south, east, west );
|
||||
LoadNeighborMatchDataStage1( sb, north, south, east, west );
|
||||
if ( !north.empty() ) {
|
||||
SG_LOG( SG_GENERAL, SG_DEBUG, "Read " << north.size() << " southern matched nodes " );
|
||||
|
||||
|
@ -150,7 +150,7 @@ void TGConstruct::LoadMatchedEdgeFiles()
|
|||
|
||||
// Read Eastern Tile and add its western nodes
|
||||
eb = bucket.sibling(1, 0);
|
||||
LoadNeighboorMatchDataStage1( eb, north, south, east, west );
|
||||
LoadNeighborMatchDataStage1( eb, north, south, east, west );
|
||||
SG_LOG( SG_GENERAL, SG_DEBUG, "Read " << west.size() << " eastern matched nodes " );
|
||||
|
||||
if ( !west.empty() ) {
|
||||
|
@ -164,7 +164,7 @@ void TGConstruct::LoadMatchedEdgeFiles()
|
|||
wb = bucket.sibling(-1, 0);
|
||||
SG_LOG( SG_GENERAL, SG_DEBUG, "Read " << east.size() << " western matched nodes " );
|
||||
|
||||
LoadNeighboorMatchDataStage1( wb, north, south, east, west );
|
||||
LoadNeighborMatchDataStage1( wb, north, south, east, west );
|
||||
if ( !east.empty() ) {
|
||||
for (unsigned int i=0; i<east.size(); i++) {
|
||||
nodes.unique_add( east[i] );
|
||||
|
@ -237,11 +237,11 @@ void TGConstruct::SaveSharedEdgeData( int stage )
|
|||
// for stage 2, we need enough info on a node to average out elevation and
|
||||
// generate a correct normal
|
||||
// we will use a geod, as stage1 above, then a geod list per node
|
||||
// to store the neighboors.
|
||||
// to store the Neighbors.
|
||||
//
|
||||
// NOTE: Some neighboors (likely 2) are on the shared border.
|
||||
// NOTE: Some Neighbors (likely 2) are on the shared border.
|
||||
// Before calculating face normals for the node, all elevation data for
|
||||
// neighboors needs to be completed. So after all border nodes' elevations
|
||||
// Neighbors needs to be completed. So after all border nodes' elevations
|
||||
// are updated, we'll need to traverse all of these point lists, and update
|
||||
// any border nodes elevation as well
|
||||
string dir;
|
||||
|
@ -338,7 +338,7 @@ void TGConstruct::LoadSharedEdgeData( int stage )
|
|||
|
||||
// Read North tile and add its southern nodes
|
||||
nb = bucket.sibling(0, 1);
|
||||
LoadNeighboorEdgeDataStage1( nb, north, south, east, west );
|
||||
LoadNeighborEdgeDataStage1( nb, north, south, east, west );
|
||||
// Add southern nodes from northern tile
|
||||
for (unsigned int i=0; i<south.size(); i++) {
|
||||
nodes.unique_add( south[i] );
|
||||
|
@ -346,21 +346,21 @@ void TGConstruct::LoadSharedEdgeData( int stage )
|
|||
|
||||
// Read South Tile and add its northern nodes
|
||||
sb = bucket.sibling(0, -1);
|
||||
LoadNeighboorEdgeDataStage1( sb, north, south, east, west );
|
||||
LoadNeighborEdgeDataStage1( sb, north, south, east, west );
|
||||
for (unsigned int i=0; i<north.size(); i++) {
|
||||
nodes.unique_add( north[i] );
|
||||
}
|
||||
|
||||
// Read East Tile and add its western nodes
|
||||
eb = bucket.sibling(1, 0);
|
||||
LoadNeighboorEdgeDataStage1( eb, north, south, east, west );
|
||||
LoadNeighborEdgeDataStage1( eb, north, south, east, west );
|
||||
for (unsigned int i=0; i<west.size(); i++) {
|
||||
nodes.unique_add( west[i] );
|
||||
}
|
||||
|
||||
// Read West Tile and add its eastern nodes
|
||||
wb = bucket.sibling(-1, 0);
|
||||
LoadNeighboorEdgeDataStage1( wb, north, south, east, west );
|
||||
LoadNeighborEdgeDataStage1( wb, north, south, east, west );
|
||||
for (unsigned int i=0; i<east.size(); i++) {
|
||||
nodes.unique_add( east[i] );
|
||||
}
|
||||
|
@ -421,12 +421,12 @@ void TGConstruct::LoadSharedEdgeData( int stage )
|
|||
// Neighbor faces
|
||||
void TGConstruct::WriteNeighborFaces( gzFile& fp, const SGGeod& pt ) const
|
||||
{
|
||||
// find all neighboors of this point
|
||||
// find all Neighbors of this point
|
||||
int n = nodes.find( pt );
|
||||
TGNode const& node = nodes.get_node( n );
|
||||
TGFaceList const& faces = node.GetFaces();
|
||||
|
||||
// write the number of neighboor faces
|
||||
// write the number of Neighbor faces
|
||||
sgWriteInt( fp, faces.size() );
|
||||
|
||||
// write out each face normal and size
|
||||
|
@ -603,7 +603,7 @@ void TGConstruct::SaveToIntermediateFiles( int stage )
|
|||
}
|
||||
}
|
||||
|
||||
void TGConstruct::LoadNeighboorEdgeDataStage1( SGBucket& b, std::vector<SGGeod>& north, std::vector<SGGeod>& south, std::vector<SGGeod>& east, std::vector<SGGeod>& west )
|
||||
void TGConstruct::LoadNeighborEdgeDataStage1( SGBucket& b, std::vector<SGGeod>& north, std::vector<SGGeod>& south, std::vector<SGGeod>& east, std::vector<SGGeod>& west )
|
||||
{
|
||||
string dir;
|
||||
string file;
|
||||
|
@ -657,7 +657,7 @@ void TGConstruct::LoadNeighboorEdgeDataStage1( SGBucket& b, std::vector<SGGeod>&
|
|||
}
|
||||
}
|
||||
|
||||
void TGConstruct::LoadNeighboorMatchDataStage1( SGBucket& b, std::vector<SGGeod>& north, std::vector<SGGeod>& south, std::vector<SGGeod>& east, std::vector<SGGeod>& west )
|
||||
void TGConstruct::LoadNeighborMatchDataStage1( SGBucket& b, std::vector<SGGeod>& north, std::vector<SGGeod>& south, std::vector<SGGeod>& east, std::vector<SGGeod>& west )
|
||||
{
|
||||
string dir;
|
||||
string file;
|
||||
|
|
Loading…
Add table
Reference in a new issue