genapts (old): removal of GPC introduced wrong runway polys in some cases. Add snap to fix this.
Fix airport skirts as well
This commit is contained in:
parent
87df5b805e
commit
e8936f773c
2 changed files with 5 additions and 3 deletions
|
@ -1100,8 +1100,8 @@ void build_airport( string airport_id, float alt_m,
|
|||
SG_LOG(SG_GENERAL, SG_DEBUG, geod_nodes[uindex] << " <-> " << lower);
|
||||
lindex = nodes.simple_add( lower );
|
||||
geod_nodes.push_back( lower );
|
||||
strip_v.push_back( lindex );
|
||||
strip_v.push_back( uindex );
|
||||
strip_v.push_back( lindex );
|
||||
|
||||
// use 'the' normal. We are pushing on two nodes so we
|
||||
// need to push on two normals.
|
||||
|
@ -1123,8 +1123,8 @@ void build_airport( string airport_id, float alt_m,
|
|||
SG_LOG(SG_GENERAL, SG_DEBUG, geod_nodes[uindex] << " <-> " << lower);
|
||||
lindex = nodes.simple_add( lower );
|
||||
geod_nodes.push_back( lower );
|
||||
strip_v.push_back( lindex );
|
||||
strip_v.push_back( uindex );
|
||||
strip_v.push_back( lindex );
|
||||
|
||||
index = normals.unique_add( vn );
|
||||
strip_n.push_back( index );
|
||||
|
@ -1145,8 +1145,8 @@ void build_airport( string airport_id, float alt_m,
|
|||
SG_LOG(SG_GENERAL, SG_DEBUG, geod_nodes[uindex] << " <-> " << lower);
|
||||
lindex = nodes.simple_add( lower );
|
||||
geod_nodes.push_back( lower );
|
||||
strip_v.push_back( lindex );
|
||||
strip_v.push_back( uindex );
|
||||
strip_v.push_back( lindex );
|
||||
|
||||
index = normals.unique_add( vn );
|
||||
strip_n.push_back( index );
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <simgear/compiler.h>
|
||||
#include <simgear/constants.h>
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
#include <Geometry/poly_support.hxx>
|
||||
|
||||
#include "global.hxx"
|
||||
#include "rwy_common.hxx"
|
||||
|
@ -258,6 +259,7 @@ void gen_runway_section( const TGRunway& rwy_info,
|
|||
section.add_node( 0, p0 );
|
||||
section.add_node( 0, p1 );
|
||||
section.add_node( 0, p3 );
|
||||
section = snap( section, 0.00000001 );
|
||||
|
||||
// print runway points
|
||||
SG_LOG(SG_GENERAL, SG_DEBUG, "pre clipped runway pts " << prefix << material);
|
||||
|
|
Loading…
Add table
Reference in a new issue