From bbc6123ede2954a5152666e7adcd2a2e6ae0488a Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 9 Mar 2020 08:40:05 +0800 Subject: [PATCH] rename --- examples/perlin_noise_cylinder.scad | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/perlin_noise_cylinder.scad b/examples/perlin_noise_cylinder.scad index 654339ec..82d85cad 100644 --- a/examples/perlin_noise_cylinder.scad +++ b/examples/perlin_noise_cylinder.scad @@ -11,7 +11,7 @@ step = 4; module perlin_noise_cylinder(radius, height, thickness_scale, step) { size = [PI * radius, height]; - surface_insde = [ + surface_inside = [ for(y = [0:step:size[1]]) concat( [ @@ -24,11 +24,11 @@ module perlin_noise_cylinder(radius, height, thickness_scale, step) { seed = rand(0, 256); surface_outside = [ - for(ri = [0:len(surface_insde) - 1]) - let(ns = pnoise2(surface_insde[ri], seed)) + for(ri = [0:len(surface_inside) - 1]) + let(ns = pnoise2(surface_inside[ri], seed)) [ for(ci = [0:len(ns) - 1]) - [surface_insde[ri][ci][0], surface_insde[ri][ci][1], thickness_scale * (ns[ci] + 1)] + [surface_inside[ri][ci][0], surface_inside[ri][ci][1], thickness_scale * (ns[ci] + 1)] ] ]; @@ -41,7 +41,7 @@ module perlin_noise_cylinder(radius, height, thickness_scale, step) { ] ]; t_surface_insde = [ - for(row = surface_insde) + for(row = surface_inside) [for(p = row) ptf_bend(size_div_10, p, radius_div_10, 180) ]