Skip to content

Commit

Permalink
Fixes to 2.5d renderer
Browse files Browse the repository at this point in the history
- support holes in polygons and multi-polygons
- make sure not to overshoot value in HSV color (max. 100) - Qt spits out warnings
  • Loading branch information
wonder-sk committed Jan 27, 2016
1 parent 9fd6b24 commit cc6721c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/symbology-ng/qgs25drenderer.cpp
Expand Up @@ -30,7 +30,7 @@
#define WALL_EXPRESSION \
"order_parts( "\
" extrude(" \
" segments_to_lines( exterior_ring( $geometry ) )," \
" segments_to_lines( $geometry )," \
" cos( radians( eval( @qgis_25d_angle ) ) ) * eval( @qgis_25d_height )," \
" sin( radians( eval( @qgis_25d_angle ) ) ) * eval( @qgis_25d_height )" \
" )," \
Expand All @@ -52,7 +52,7 @@
"set_color_part( " \
" @symbol_color," \
" 'value'," \
" 40 + 20 * abs( $pi - azimuth( " \
" 40 + 19 * abs( $pi - azimuth( " \
" point_n( geometry_n($geometry, @geometry_part_num) , 1 ), " \
" point_n( geometry_n($geometry, @geometry_part_num) , 2 )" \
" ) ) " \
Expand Down

0 comments on commit cc6721c

Please sign in to comment.