1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-15 11:14:17 +02:00

change default dim

This commit is contained in:
Justin Lin
2020-03-29 11:21:44 +08:00
parent 13e2e58853
commit 9967327dbc
4 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
use <util/rand.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(
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
// m*n pixels per grid

View File

@@ -1,7 +1,7 @@
use <util/rand.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(
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
// m*n pixels per grid

View File

@@ -1,7 +1,7 @@
use <util/rand.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(
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
// m*n pixels per grid

View File

@@ -1,7 +1,7 @@
use <util/rand.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(
sd = 6 + (is_undef(seed) ? floor(rand(0, 256)) : seed % 256),
// m*n pixels per grid