mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 03:34:42 +02:00
change default dim
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use <util/rand.scad>;
|
use <util/rand.scad>;
|
||||||
use <experimental/_impl/_nz_worley2_impl.scad>;
|
use <experimental/_impl/_nz_worley2_impl.scad>;
|
||||||
|
|
||||||
function nz_worley2(size, x, y, seed, dim = 3, dist = "euclidean") =
|
function nz_worley2(size, x, y, seed, dim = 2, dist = "euclidean") =
|
||||||
let(
|
let(
|
||||||
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
|
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
|
||||||
// m*n pixels per grid
|
// m*n pixels per grid
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
use <util/rand.scad>;
|
use <util/rand.scad>;
|
||||||
use <experimental/_impl/_nz_worley2_impl.scad>;
|
use <experimental/_impl/_nz_worley2_impl.scad>;
|
||||||
|
|
||||||
function nz_worley2s(size, points, seed, dim = 3, dist = "euclidean") =
|
function nz_worley2s(size, points, seed, dim = 2, dist = "euclidean") =
|
||||||
let(
|
let(
|
||||||
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
|
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
|
||||||
// m*n pixels per grid
|
// m*n pixels per grid
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
use <util/rand.scad>;
|
use <util/rand.scad>;
|
||||||
use <experimental/_impl/_nz_worley3_impl.scad>;
|
use <experimental/_impl/_nz_worley3_impl.scad>;
|
||||||
|
|
||||||
function nz_worley3(size, x, y, z, seed, dim = 3, dist = "euclidean") =
|
function nz_worley3(size, x, y, z, seed, dim = 2, dist = "euclidean") =
|
||||||
let(
|
let(
|
||||||
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
|
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
|
||||||
// m*n pixels per grid
|
// m*n pixels per grid
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
use <util/rand.scad>;
|
use <util/rand.scad>;
|
||||||
use <experimental/_impl/_nz_worley3_impl.scad>;
|
use <experimental/_impl/_nz_worley3_impl.scad>;
|
||||||
|
|
||||||
function nz_worley3s(size, points, seed, dim = 3, dist = "euclidean") =
|
function nz_worley3s(size, points, seed, dim = 2, dist = "euclidean") =
|
||||||
let(
|
let(
|
||||||
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
|
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
|
||||||
// m*n pixels per grid
|
// m*n pixels per grid
|
||||||
|
Reference in New Issue
Block a user