mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-31 02:10:28 +02:00
rename
This commit is contained in:
@@ -11,7 +11,7 @@ step = 4;
|
|||||||
module perlin_noise_cylinder(radius, height, thickness_scale, step) {
|
module perlin_noise_cylinder(radius, height, thickness_scale, step) {
|
||||||
size = [PI * radius, height];
|
size = [PI * radius, height];
|
||||||
|
|
||||||
surface_insde = [
|
surface_inside = [
|
||||||
for(y = [0:step:size[1]])
|
for(y = [0:step:size[1]])
|
||||||
concat(
|
concat(
|
||||||
[
|
[
|
||||||
@@ -24,11 +24,11 @@ module perlin_noise_cylinder(radius, height, thickness_scale, step) {
|
|||||||
|
|
||||||
seed = rand(0, 256);
|
seed = rand(0, 256);
|
||||||
surface_outside = [
|
surface_outside = [
|
||||||
for(ri = [0:len(surface_insde) - 1])
|
for(ri = [0:len(surface_inside) - 1])
|
||||||
let(ns = pnoise2(surface_insde[ri], seed))
|
let(ns = pnoise2(surface_inside[ri], seed))
|
||||||
[
|
[
|
||||||
for(ci = [0:len(ns) - 1])
|
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 = [
|
t_surface_insde = [
|
||||||
for(row = surface_insde)
|
for(row = surface_inside)
|
||||||
[for(p = row)
|
[for(p = row)
|
||||||
ptf_bend(size_div_10, p, radius_div_10, 180)
|
ptf_bend(size_div_10, p, radius_div_10, 180)
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user