1
0
Fork 0
Commit graph

306 commits

Author SHA1 Message Date
James.Hester
1e3343a2f6 Included cliff category as a landmass type. 2019-01-03 09:45:05 +11:00
James.Hester
f05c0c524c Merge branch 'cliffs' of ../../stable/terragear into next 2018-12-30 12:39:54 +11:00
James.Hester
a7af59b61f Fixed height rectification along boundaries and proper clipping of
open contours.
2018-12-17 23:50:28 +11:00
James.Hester
d36116d965 Cliffs now appear more or less correctly.
Added cliffs to default_priorities
Ignore cliff files when constructing terrain
Use cliff files when calculating elevations
Set up chopper to allow file extension to be specified
Specify cliff file name when chopping
Allow chopper to chop lines as well as polygons.
2018-10-21 10:07:23 +11:00
James.Hester
005fd6886a Added cliff calculation:
1. Added tg_contour includes to cmake files
2. Added calculations based on cliff contours to array.cxx
2018-10-06 18:46:04 +10:00
Scott Giese
0c57e06377 Benchmarking: Measure execution time 2018-07-16 12:31:46 -05:00
Scott Giese
e9dc4b9d8c Removed Boost foreach 2018-07-16 12:26:40 -05:00
Scott Giese
815d0a8639 Modernize: Convert enums to scoped enums 2018-07-16 12:18:40 -05:00
Scott Giese
da1ade82cb tgconstruct: Windows 'copy' is intolerant of forward slashes.
replaced with native path format.
2018-06-24 09:59:27 -05:00
Torsten Dreyer
95a34ae32a Compile again with latest SimGear
this patch implements the move of sgstream.hxx to simgear/io/iostreams
introduced with simgear commit 79f869a7f32910197be72b21f6489fbbba02c836
2017-06-25 10:47:32 +02:00
Alessandro Menti
cf5fcfc6c0 Replace native paths with UTF-8 paths in tg-construct 2016-12-04 16:22:31 +01:00
Martin Spott
8f48b13f09 Update to what we're actually using. 2015-10-07 11:31:59 -07:00
Peter Sadrozinski
4f59886aaa genapts fixes
- remove splinter remaval / merging
- remove snap after adding colinear nodes
- added zfighting detector - intersects all generated triangles against one another
- this fixes ELLX, and to a large extent all 'large' airport self z-fighting.
- very small z-fighting still exists at 72 airports.  This is down from over 100 before the fix.
2015-07-24 08:57:24 -04:00
Peter Sadrozinski
968089d322 fixes for Martin's tiles that don't clip correctly
- ogrdecode can create degenerate polys.  clean them before clipping
- when tesselating with extra points, add constrain pointes and segments
  before non contrained points.
2015-06-10 07:11:09 -04:00
Peter Sadrozinski
87fe67d5fc temporary workaround for accumulator diff failure.
- will log the failures to a file in current directory.
2015-05-27 09:53:45 -04:00
Peter Sadrozinski
c5faeae357 some fixes for interpolating added points to the airport holes. fixes most gaps when allowing roads on airport landclass
add zero area triangle check when triangulating without extra points.
2015-04-05 16:52:19 -04:00
Peter Sadrozinski
47db776404 tgconstruct edge matching with existing terrain 2014-04-18 22:21:07 -04:00
Peter Sadrozinski
c7c8c0be82 align tgconstruct and genapt to new sgbinobj api 2014-04-12 19:02:50 +02:00
Martin Spott
c9d7fbbfcd Allow roads on top of airport skirts. 2014-04-02 22:24:22 +02:00
Christian Schmitt
edb37c01a3 Disable client/server build. This stuff is essentially unsupported.
Will probably be removed in the future.
2014-02-21 18:06:47 +01:00
Christian Schmitt
143ea6efe6 Move to new SGBucket API 2014-02-21 18:05:55 +01:00
Peter Sadrozinski
9bf7357297 warning cleanup and final checks - TNCM, EKNB, and LIMJ all look good 2014-01-23 18:17:43 -05:00
Peter Sadrozinski
c5d6c20998 additional fix for TNCM - handle western longitude and souther latitude rounding 2014-01-20 15:53:05 -05:00
Peter Sadrozinski
733f9347ab adding mutex around directory and file creation in tgconstruct.
fixes corruption of stage 2 data files, which would crash stage 3
lower print verbosity at INFO level.
2014-01-02 19:33:25 -05:00
Peter Sadrozinski
c9074ab45c Utilize SGBucket::get_corner when building clip rectangles in
ogr-decode, genapts, and tg-construct.
2013-12-31 13:40:31 -05:00
Peter Sadrozinski
5d45916b23 fix tile bounding box errors leading to z-fightine near tile borders
- round to coorect snap point when converting double to clipper uint64
- add tgPolygon::ToClipperfile to aid debugging clipper related issues
2013-12-31 09:21:10 -05:00
Peter Sadrozinski
36e75560e6 clipper 6.0x and supporting modifications
some debug fixes
2013-12-30 22:04:35 -05:00
Martin Spott
7cca6919ab Ease separation of the different stages 2013-10-14 07:30:05 -07:00
Martin Spott
f6a9b54bf9 Fix stage3 comment 2013-09-12 14:32:57 -07:00
Peter Sadrozinski
ecb1653eee fix memory leak in tgconstruct 2013-09-08 14:04:40 -04:00
Christian Schmitt
7d13ac32b0 Fix underlinking (newer binutils exhibits it) 2013-08-17 19:43:30 +02:00
Peter Sadrozinski
4f29c32c18 - fixes to get full world vmap0 working
- use exact construction when triangulating in CGAL
2013-03-26 19:20:53 -04:00
Peter Sadrozinski
08f5c17221 Fixes from full world parsing tests
- Use new SimGear API in construct to gather all tiles within a bounding box
- Bring in new clipper lib, which seems to fix more orientation issues
- Various debug cleanup
- Fix Find/Merge slivers - but leave it turned off
- New OffsetPoints for small speedup in GenApts - currently disabled
2013-03-10 09:42:07 -04:00
Frederic Bouvier
29e10a7314 Fix a namespace collision under Windows 2013-01-06 00:20:00 +01:00
Christian Schmitt
75519f886a tg-construct: fix windows build 2013-01-02 17:09:12 +01:00
Peter Sadrozinski
5b9375f102 - fixed multithreaded construct memory leak in TGArray usage ( need to clear corner and fitted lists ).
- reworked priorities.hxx/.cxx to make valgrind happy.  It also allows us to add more features per area (like smoothing).
- remove TG_MAX_AREA_TYPES - we had a merge request for this, but this does essentially the same thing with the refactoring.
- fixed some edge matching introduced in multithreaded construct.
- tgconstruct objects now live for an entire stage.  1 for each thread - this introduced the memory leaks, and some issues.
  interesting side effect is that we do less alloc / free, since we use std::vectors which when cleared, don't actually free
  memory, so by the end, we've allocated enough entries for the largest tile.
- fixed linear feature issue in genapts850 - the refactor caused some of the old clean functions to remove too many polys!
  with cgal, we need far less cleaning - just do what construct does, and we can still parse all airports, and lines are back.
2012-12-29 21:05:39 -05:00
Peter Sadrozinski
b007979a38 - multithreaded tgconstruct 2012-12-22 09:16:51 -05:00
Peter Sadrozinski
cb6ef16f5a fix resource leak - close gzfile after polygons read 2012-12-19 19:36:43 -05:00
Peter Sadrozinski
9f34a0c036 - fix airport area texturing
- fix ocean texturing for tiles with a coastline
2012-12-16 12:54:44 -05:00
Peter Sadrozinski
10db5bfbff - renamed Polygon library to terragear
- split the new implementation into respective class files
  (tg_misc is a catch all...)
2012-12-16 10:46:25 -05:00
Peter Sadrozinski
b1012cd5e9 - Point3D removed
- Moved AptSurface to the Polygon library - and made it more generic for
  possible future use in construct
2012-12-15 21:14:39 -05:00
Peter Sadrozinski
91b28879d4 no more TGPolygon or TGTriNodes 2012-12-15 11:20:46 -05:00
Peter Sadrozinski
ce1f89f832 library reorg step 1
- no more Geometry
- delete unused files
2012-12-14 22:47:35 -05:00
Peter Sadrozinski
cd3a1d647e - Use the tgPolygon SaveToGzFile / LoadFromGzFile functions to store the
results of OGRDecode, instead of ascii, completely different format
- move Utility functions to generate polys from line data into tgPolygon
  ( use this for both GenApts850 linear features, and OGRDecode )
- kill off old superpoly, and texparams
- add tgChopper which queues chopped polygons per bucket.
  When saved, result is less files (each tile has 1 file per shapefile decoded)
  Both genapt and ogrdecode now use tgChopper instead of Geometry/Util.cxx functions
- tgChooper acquires a global file name lock, so we can safely run genapts in
  paralell with ogrdecode.
  (this was dangerous before, as both could try to open the index file as write,
   the loser would segfault, later )
2012-12-14 10:23:13 -05:00
Christian Schmitt
902d4d83bc Set needed boost components and link tg-construct against them 2012-12-11 14:12:58 +01:00
Peter Sadrozinski
257339abcb - remove extra debug 2012-12-09 18:18:21 -05:00
Peter Sadrozinski
6edeadd86e removed tgshape - each area is now just a list of polys
fixed linear data texturing
fixed water area
spacial query adjustment - works just like linear query, now
2012-12-09 18:17:45 -05:00
Peter Sadrozinski
89e69a863f refactor from TGPolygon and TGSuperPoly to tgPolygon
fix for missing texture coordinates.  Need to kill, or shrink TGShape / clip ,asks, etc.
2012-12-09 18:13:48 -05:00
Peter Sadrozinski
c0555a1270 convert tg_nodes to SGGeod and SGVecd/f 2012-12-09 18:13:47 -05:00
Christian Schmitt
965d639446 Add versioning to tg-construct, hgtchop and ogr-decode 2012-12-09 18:36:03 +01:00