From 00ee726667008cd31d4f5c83bab0280ab7d610af Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 5 Mar 2021 20:11:14 +0800 Subject: [PATCH] update doc --- docs/lib3x-dedup.md | 2 +- src/experimental/note.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/lib3x-dedup.md b/docs/lib3x-dedup.md index 44481888..4dbb3c8c 100644 --- a/docs/lib3x-dedup.md +++ b/docs/lib3x-dedup.md @@ -7,8 +7,8 @@ Eliminating duplicate copies of repeating vectors. If `lt` has a large number of ## Parameters - `lt` : A list of vectors. -- `sorted` : If `false` (default), use native `search`. If `true`, `lt` must be sorted by zyx (from the last index to the first one) and `dedup` will use binary search internally. - `eq` : A equality function. If it's ignored, use `==` to compare elements. **Since: ** 3.0 +- `hash` : A hash function. If it's ignored, convert each element to a string and hash it. **Since: ** 3.0 ## Examples diff --git a/src/experimental/note.md b/src/experimental/note.md index cadfb159..ed2db0b0 100644 --- a/src/experimental/note.md +++ b/src/experimental/note.md @@ -10,7 +10,7 @@ dotSCAD 3.0 Dev - `polyline3d`: Rename the parameter `thickness` to `diameter`. - `util/sort`: `by` accepts a function literal. - `util/bsearch`: only supports `sorted` and `target` parameters. I view it as a new function. -- `util/dedup`: add the `eq` parameter. +- `util/dedup`: delete `sorted` parameter. add the `eq` and `hash` parameters. - `util/zip`: add the `combine` parameter. - `lines_intersection` supports 3D - `vx_union`, `vx_circle`, `vx_bezier`, `vx_polygon` performance improved.