Commit graph

248 commits

Author SHA1 Message Date
Laura Klünder
c9b9c8b38d make sure triangulate_rings does not create triangles with no area 2017-11-26 13:03:26 +01:00
Laura Klünder
0b4964f629 deal with zero-length normals 2017-11-26 02:48:09 +01:00
Laura Klünder
a915e4401e simplify obstacle height calculation to fix rendering bugs 2017-11-25 22:53:50 +01:00
Laura Klünder
f4c39a1393 remove debug color from svg renderer 2017-11-25 15:22:45 +01:00
Laura Klünder
94a093d4dc renderer: lowest levels should always be extend downwards 2017-11-25 15:16:15 +01:00
Laura Klünder
b846f6d0ad add fallback for empty geometries 2017-11-25 14:45:43 +01:00
Laura Klünder
3720fbd0ff dont render obstacles with zero height 2017-11-25 14:37:06 +01:00
Laura Klünder
d5ad497327 don't add height to short walls in svg renderer 2017-11-25 14:12:47 +01:00
Laura Klünder
bf98f54b55 refactor tile code in meny places to allow reusing it 2017-11-21 00:15:49 +01:00
Laura Klünder
5498e9f84f create cache packages for caching tile servers 2017-11-20 21:10:03 +01:00
Laura Klünder
ede7e4dc86 use AccessRestrictionAffected in MapRenderer 2017-11-20 17:29:53 +01:00
Laura Klünder
a6daeb6153 rename cache files for better overview 2017-11-20 17:25:21 +01:00
Laura Klünder
e06c71be61 add AccessRestrictionAffected as GeometryIndexed subclass 2017-11-20 17:21:19 +01:00
Laura Klünder
87d1e3e7f5 don't import anything in render.__init__ 2017-11-20 02:53:49 +01:00
Laura Klünder
94ae86d690 refactor even more data→geometry and levelrender 2017-11-20 02:38:35 +01:00
Laura Klünder
6bad1f9cc3 split up c3nav.mapdata.render.data 2017-11-20 02:28:08 +01:00
Laura Klünder
116590b88f c3nav.mapdata.cache → c3nav.mapdata.utils.cache 2017-11-20 00:39:01 +01:00
Laura Klünder
3b6a55dda7 outsource this duplicate code 2017-11-19 20:04:58 +01:00
Laura Klünder
4594c44539 avoid confusing the triangle library with too complex ring intersections 2017-11-19 19:54:22 +01:00
Laura Klünder
6a4ad6b584 revert 2017-11-19 01:02:21 +01:00
Laura Klünder
aa8e745b79 ground is ground 2017-11-19 00:57:37 +01:00
Laura Klünder
25794fb613 fix bases for non-full-level rendering or ramps 2017-11-19 00:30:08 +01:00
Laura Klünder
dcb0edcbd8 fix missing columns 2017-11-18 23:30:10 +01:00
Laura Klünder
6812edb8b3 Mesh() is not a namedtuple to improve performance 2017-11-18 23:07:22 +01:00
Laura Klünder
b700ccd46c try to call heavy shapely operations less often to improve performance 2017-11-18 22:44:06 +01:00
Laura Klünder
b6be667cfc no reason to save levels, we dont store anything in them anymore 2017-11-18 21:18:31 +01:00
Laura Klünder
b63ab7d4e4 fix fatal errors during rendering 2017-11-18 19:21:21 +01:00
Laura Klünder
391e2dffa2 avoid intersections and identifcal faces _create_polyhedron 2017-11-18 16:19:28 +01:00
Laura Klünder
eac6048fe3 ensure ramps affect obstacles correctly 2017-11-18 15:58:33 +01:00
Laura Klünder
9b66a2b4e5 fix short_walls below ramps 2017-11-18 13:48:33 +01:00
Laura Klünder
465391d145 fix scrambled bottom faces 2017-11-18 13:31:33 +01:00
Laura Klünder
da25951555 ramp rendering 2017-11-18 13:30:20 +01:00
Laura Klünder
976c49c8ab introducing short walls, so walls stay below stairs from levels on top 2017-11-17 20:07:00 +01:00
Laura Klünder
11b202b013 obstacles can not be on holes 2017-11-16 14:17:54 +01:00
Laura Klünder
d9e443c9cc save level render data into a file instead of pickling it into the db 2017-11-16 02:26:04 +01:00
Laura Klünder
7f0d52f23f rename map history files to be less confusing 2017-11-16 02:03:36 +01:00
Laura Klünder
bee01dab6c fix missing border in opengl renderer 2017-11-15 04:06:43 +01:00
Laura Klünder
57db0621ad levels_on_top (above and below) should be part of the joined map history 2017-11-14 23:37:12 +01:00
Laura Klünder
8d7bc8c4b2 remove debug statement 2017-11-14 23:29:03 +01:00
Laura Klünder
ecdcd29c51 fix opengl renderer 2017-11-14 23:23:02 +01:00
Laura Klünder
37a7119455 render obstacles 2017-11-14 22:18:53 +01:00
Laura Klünder
3315fbf057 door heights 2017-11-14 21:33:55 +01:00
Laura Klünder
f2b0fc26b1 don't render altitudearea polyhedrons within columns 2017-11-14 21:11:22 +01:00
Laura Klünder
b76f35a4a5 wavefront obj export 2017-11-14 20:53:04 +01:00
Laura Klünder
afbb9e7427 add commented-out debug for watertightness checking 2017-11-14 18:25:46 +01:00
Laura Klünder
2d3c3e7337 fix stl renderer to work with new vertices format 2017-11-14 18:24:47 +01:00
Laura Klünder
651d6b79eb avoid merging intersecting polygons too early 2017-11-14 18:18:22 +01:00
Laura Klünder
54b21b12ce simplify calculations in non-full-level rendering 2017-11-14 18:02:17 +01:00
Laura Klünder
fcda46b094 fix non-watertight meshes for non-full-level renderings 2017-11-14 17:55:35 +01:00
Laura Klünder
94420b5043 we need watertight polyhedrons, so dont omit bottom faces of gronud colors 2017-11-14 17:33:58 +01:00