1
0
Fork 0
terragear/src/Lib
Peter Sadrozinski f0a7f39e7b A bit of a re-work (again) but looks to be worth it.
Instead of cleaning polys after clipping, to get good triangulation, try to
clean them before clipping, snap the verticies to 1 1cm x 1cm grid, and
merge any resultant slivers back into adjacent polys.
This is very similar to how fgfs-construct worked.

Although the previous methos only failed on 3 airports, the results weren't
very good.  There were lots of cracks, and mmissing triangles, as the polys were
cleaned.

New methos freezes on two airports during base triangulation, and crashes on four.
I think the quality of the generated airports overcomes the slight regression.

I also added some debug switches so I don't have to keep rebuilding from source
to debug crashes.  --dump-rwy=xxx --dump-pvmt=xxx, --dump-feat=xxx and --dum-base=1
can be used to create shapefiles to debug the particular polys before clipping.
Currently, there needs to be a cp_debug directory to place the shapefiles into.
Probably need better debug infrastructure going forward...

NOTE: I turned off runway shoulder generation in this build.  Polygon snapping for runways,
helipads, and shoulders not implemented yet.  This may help on the failing airports.
This is next on my todo list.
2012-03-25 23:54:17 +02:00
..
Array Added tgPolygonExpand() to grow / shrink polygons using clipper library. 2012-03-25 23:54:16 +02:00
DEM removing automake files - just updating cmake build files from now 2012-03-25 23:37:26 +02:00
e00 Compile warnings cleanup round 1 2012-03-25 23:54:15 +02:00
Geometry A bit of a re-work (again) but looks to be worth it. 2012-03-25 23:54:17 +02:00
HGT removing automake files - just updating cmake build files from now 2012-03-25 23:37:26 +02:00
landcover removing automake files - just updating cmake build files from now 2012-03-25 23:37:26 +02:00
Optimize removing automake files - just updating cmake build files from now 2012-03-25 23:37:26 +02:00
Output Added taxiway/runway sign link creation 2012-03-25 23:53:48 +02:00
poly2tri Compile warnings cleanup round 1 2012-03-25 23:54:15 +02:00
Polygon A bit of a re-work (again) but looks to be worth it. 2012-03-25 23:54:17 +02:00
shapelib Compile warnings cleanup round 1 2012-03-25 23:54:15 +02:00
TriangleJRS - I forgor to include my preliminary support to allow triangleJRS to return 2012-03-25 23:54:15 +02:00
vpf Compile warnings cleanup round 1 2012-03-25 23:54:15 +02:00
CMakeLists.txt Linux fixes for Cmake support. 2011-10-24 13:46:15 +02:00
shapelib-1.2.10.tar.gz Upgrade shapelib to 1.2.10 2009-03-14 21:36:24 +01:00