From feac6804fd6994c4f5757b89de1b55ba718e9030 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Wed, 14 Sep 2022 17:31:09 -0700 Subject: [PATCH] Fix for issue #935: rotate_sweep() heightfield texture caps were bad. --- skin.scad | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/skin.scad b/skin.scad index 73c11be..01095e7 100644 --- a/skin.scad +++ b/skin.scad @@ -3309,15 +3309,9 @@ function _textured_revolution( ) _vnf_sort_vertices(utex, idx=[0,1]), vertzs = is_vnf(texture)? group_sort(tile[0], idx=0) : undef, bpath = is_vnf(tile) - ? _find_vnf_tile_edge_path(tile,0) - : let( - row = tile[0], - rlen = len(row) - ) [for (i = [0:1:rlen]) [i/rlen, row[i%rlen]]], - tpath = is_vnf(tile) ? _find_vnf_tile_edge_path(tile,1) : let( - row = last(tile), + row = tile[0], rlen = len(row) ) [for (i = [0:1:rlen]) [i/rlen, row[i%rlen]]], counts_x = is_vector(counts,2)? counts.x : @@ -3470,7 +3464,7 @@ function _textured_revolution( base = select(bases,j), norm = unit(select(norms,j)), ppath = [ - for (vert = tpath) let( + for (vert = bpath) let( uang = vert.x / counts_x, tex_scale = tex_scale * lookup([0,1][j+1], taper_lup), texh = (vert.y - inset) * tex_scale * (base.x / maxx),