From 2dbb77ed4bd628f9332f37c0d1105da9f9800eab Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 7 Feb 2021 17:25:45 +0800 Subject: [PATCH] update docs --- docs/lib2x-bsearch.md | 1 - docs/lib2x-dedup.md | 12 ++++++------ docs/lib2x-has.md | 4 ++-- docs/lib2x-nz_worley3.md | 4 ++-- docs/lib2x-nz_worley3s.md | 4 ++-- docs/lib2x-ptf_bend.md | 4 ++-- 6 files changed, 14 insertions(+), 15 deletions(-) diff --git a/docs/lib2x-bsearch.md b/docs/lib2x-bsearch.md index b39c37e4..326a8aff 100644 --- a/docs/lib2x-bsearch.md +++ b/docs/lib2x-bsearch.md @@ -13,7 +13,6 @@ The `bsearch` function is a general-purpose function to find a value or a list o ## Examples - use ; use ; use ; diff --git a/docs/lib2x-dedup.md b/docs/lib2x-dedup.md index 102fac18..c9b1b7eb 100644 --- a/docs/lib2x-dedup.md +++ b/docs/lib2x-dedup.md @@ -11,11 +11,11 @@ Eliminating duplicate copies of repeating vectors. If `lt` has a large number of ## Examples - use ; + use ; use ; - pts1 = px_circle(10, filled = true); - pts2 = [for(p = px_circle(5, filled = true)) p + [10, 0]]; + pts1 = vx_circle(10, filled = true); + pts2 = [for(p = vx_circle(5, filled = true)) p + [10, 0]]; // simple union pts3 = dedup(concat(pts1, pts2)); @@ -26,12 +26,12 @@ Eliminating duplicate copies of repeating vectors. If `lt` has a large number of ![dedup](images/lib2x-dedup-1.JPG) - use ; + use ; use ; use ; - pts1 = px_circle(20, filled = true); - pts2 = [for(p = px_circle(10, filled = true)) p + [20, 0]]; + pts1 = vx_circle(20, filled = true); + pts2 = [for(p = vx_circle(10, filled = true)) p + [20, 0]]; sorted_pts = sort(concat(pts1, pts2), by = "vt"); diff --git a/docs/lib2x-has.md b/docs/lib2x-has.md index 04ec4115..3da21d81 100644 --- a/docs/lib2x-has.md +++ b/docs/lib2x-has.md @@ -12,11 +12,11 @@ If `lt` contains `elem`, this function returns `true`. If you want to test eleme ## Examples - use ; + use ; use ; use ; - pts = px_circle(10); + pts = vx_circle(10); assert(has(pts, [2, -10])); assert(!has(pts, [0, 0])); diff --git a/docs/lib2x-nz_worley3.md b/docs/lib2x-nz_worley3.md index 63250b79..87b374b8 100644 --- a/docs/lib2x-nz_worley3.md +++ b/docs/lib2x-nz_worley3.md @@ -17,14 +17,14 @@ It divides the space into grids. The nucleus of each cell is randomly placed in ## Examples - use ; + use ; use ; grid_w = 10; dist = "border"; // [euclidean, manhattan, chebyshev, border] seed = 51; - points = px_sphere(20); + points = vx_sphere(20); cells = [for(p = points) nz_worley3(p[0], p[1], p[2], seed, grid_w, dist)]; diff --git a/docs/lib2x-nz_worley3s.md b/docs/lib2x-nz_worley3s.md index 02bd15b3..82943c20 100644 --- a/docs/lib2x-nz_worley3s.md +++ b/docs/lib2x-nz_worley3s.md @@ -15,14 +15,14 @@ It divides the space into grids. The nucleus of each cell is randomly placed in ## Examples - use ; + use ; use ; tile_w = 10; dist = "euclidean"; // [euclidean, manhattan, chebyshev, border] seed = 51; - points = px_sphere(20); + points = vx_sphere(20); cells = nz_worley3s(points, seed, tile_w, dist); for(i = [0:len(cells) - 1]) { diff --git a/docs/lib2x-ptf_bend.md b/docs/lib2x-ptf_bend.md index 61ded82e..0de2058c 100644 --- a/docs/lib2x-ptf_bend.md +++ b/docs/lib2x-ptf_bend.md @@ -13,7 +13,7 @@ Transforms a point inside a rectangle to a point of an arc. ## Examples - use ; + use ; use ; t = "dotSCAD"; @@ -22,7 +22,7 @@ Transforms a point inside a rectangle to a point of an arc. angle = 180; for(i = [0:len(t) - 1]) { - for(pt = px_ascii(t[i], invert = true)) { + for(pt = vx_ascii(t[i], invert = true)) { bended = ptf_bend(size, pt + [i * 8, 0], radius, angle); translate(bended) sphere(0.5, $fn = 24);