diff --git a/README.md b/README.md index b08b1973..fec08799 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ These examples incubate dotSCAD and dotSCAD refactors these examples. See [examp ### 2D/3D Function - [bezier_surface](https://openhome.cc/eGossip/OpenSCAD/lib2x-bezier_surface.html) -- [bezier_smooth](https://openhome.cc/eGossip/OpenSCAD/lib2x-bezier_smooth.html) +- [bezier_smooth](https://openhome.cc/eGossip/OpenSCAD/lib3x-bezier_smooth.html) - [cross_sections](https://openhome.cc/eGossip/OpenSCAD/lib2x-cross_sections.html) - [in_polyline](https://openhome.cc/eGossip/OpenSCAD/lib2x-in_polyline.html) - [paths2sections](https://openhome.cc/eGossip/OpenSCAD/lib2x-paths2sections.html) diff --git a/docs/images/lib2x-bezier_smooth-1.JPG b/docs/images/lib3x-bezier_smooth-1.JPG similarity index 100% rename from docs/images/lib2x-bezier_smooth-1.JPG rename to docs/images/lib3x-bezier_smooth-1.JPG diff --git a/docs/images/lib2x-bezier_smooth-2.JPG b/docs/images/lib3x-bezier_smooth-2.JPG similarity index 100% rename from docs/images/lib2x-bezier_smooth-2.JPG rename to docs/images/lib3x-bezier_smooth-2.JPG diff --git a/docs/lib2x-bezier_smooth.md b/docs/lib3x-bezier_smooth.md similarity index 81% rename from docs/lib2x-bezier_smooth.md rename to docs/lib3x-bezier_smooth.md index 3484d9fa..a7cca394 100644 --- a/docs/lib2x-bezier_smooth.md +++ b/docs/lib3x-bezier_smooth.md @@ -8,6 +8,7 @@ Given a path, the `bezier_smooth` function uses bazier curves to smooth all corn - `round_d` : Used to create the other two control points at the corner. - `t_step` : The distance between two points of the Bézier path at the corner. It defaults to 0.1. - `closed` : It defaults to `false`. If you have a closed path, set it to `true`. +- `angle_threshold` : Default to 0. If the angle between two line segments is bigger than `angle_threshold`, smooth those two segments. **Since:** 3.0 ## Examples @@ -34,7 +35,7 @@ Given a path, the `bezier_smooth` function uses bazier curves to smooth all corn smoothed_path_pts, width ); -![bezier_smooth](images/lib2x-bezier_smooth-1.JPG) +![bezier_smooth](images/lib3x-bezier_smooth-1.JPG) use ; @@ -52,4 +53,4 @@ Given a path, the `bezier_smooth` function uses bazier curves to smooth all corn translate([50, 0, 0]) polygon(smoothed_path_pts); -![bezier_smooth](images/lib2x-bezier_smooth-2.JPG) \ No newline at end of file +![bezier_smooth](images/lib3x-bezier_smooth-2.JPG) \ No newline at end of file diff --git a/src/bezier_smooth.scad b/src/bezier_smooth.scad index baba9243..b9ebe3f0 100644 --- a/src/bezier_smooth.scad +++ b/src/bezier_smooth.scad @@ -4,7 +4,7 @@ * @copyright Justin Lin, 2017 * @license https://opensource.org/licenses/lgpl-3.0.html * -* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-bezier_curve.html +* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-bezier_curve.html * **/