From e3e7883f1338eb2a10f1e4938ee64b6afd455d1e Mon Sep 17 00:00:00 2001 From: Terence Date: Thu, 11 Jan 2024 15:38:42 -0500 Subject: [PATCH] Update render_buildings.R Replaced incorrect `offset` argument in call to raybevel's `generate_roof` with the correct `vertical_offset` argument --- R/render_buildings.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/render_buildings.R b/R/render_buildings.R index fee18aff..59b8bdb6 100644 --- a/R/render_buildings.R +++ b/R/render_buildings.R @@ -204,7 +204,7 @@ render_buildings = function(polygon, extent, if(!heights_relative_to_centroid) { roof_mesh = raybevel::generate_roof(skeletons, - offset = top, + vertical_offset = top, base_height = 0, angle = angle, material = material, @@ -213,7 +213,7 @@ render_buildings = function(polygon, extent, sides = TRUE) } else { roof_mesh = raybevel::generate_roof(skeletons, - offset = top, + vertical_offset = top, base_height = bottom, angle = angle, material = material,