diff --git a/docs/lib3x-arc_path.md b/docs/lib3x-arc_path.md index 9eadcf91..d63a9eb9 100644 --- a/docs/lib3x-arc_path.md +++ b/docs/lib3x-arc_path.md @@ -11,21 +11,21 @@ Creates an arc path. You can pass a 2 element vector to define the central angle ## Examples - use ; - use ; - - $fn = 24; - points = arc_path(radius = 20, angle = [45, 290]); - hull_polyline2d(points, width = 2); + use ; + use ; + + $fn = 24; + points = arc_path(radius = 20, angle = [45, 290]); + polyline_join(points) circle(1); ![arc_path](images/lib3x-arc_path-1.JPG) use ; - use ; + use ; $fn = 24; points = arc_path(radius = 20, angle = 135); - hull_polyline2d(points, width = 2); + polyline_join(points) circle(1); ![arc_path](images/lib3x-arc_path-2.JPG) diff --git a/docs/lib3x-bauer_spiral.md b/docs/lib3x-bauer_spiral.md index 475ee717..c380cae6 100644 --- a/docs/lib3x-bauer_spiral.md +++ b/docs/lib3x-bauer_spiral.md @@ -15,7 +15,7 @@ Creates visually even spacing of n points on the surface of the sphere. Successi ## Examples use ; - use ; + use ; n = 200; radius = 20; @@ -26,7 +26,7 @@ Creates visually even spacing of n points on the surface of the sphere. Successi sphere(1, $fn = 24); } - hull_polyline3d(pts, 1); + polyline_join(pts) sphere(.5); ![bauer_spiral](images/lib3x-bauer_spiral-1.JPG) diff --git a/docs/lib3x-bezier_smooth.md b/docs/lib3x-bezier_smooth.md index a7cca394..ff6578f4 100644 --- a/docs/lib3x-bezier_smooth.md +++ b/docs/lib3x-bezier_smooth.md @@ -12,7 +12,7 @@ Given a path, the `bezier_smooth` function uses bazier curves to smooth all corn ## Examples - use ; + use ; use ; width = 2; @@ -25,15 +25,15 @@ Given a path, the `bezier_smooth` function uses bazier curves to smooth all corn [-10, -10, 50] ]; - hull_polyline3d( - path_pts, width - ); + polyline_join(path_pts) + sphere(width / 2); smoothed_path_pts = bezier_smooth(path_pts, round_d); - color("red") translate([30, 0, 0]) hull_polyline3d( - smoothed_path_pts, width - ); + color("red") + translate([30, 0, 0]) + polyline_join(smoothed_path_pts) + sphere(width / 2); ![bezier_smooth](images/lib3x-bezier_smooth-1.JPG) diff --git a/docs/lib3x-bspline_curve.md b/docs/lib3x-bspline_curve.md index 6ce4d68d..c001745c 100644 --- a/docs/lib3x-bspline_curve.md +++ b/docs/lib3x-bspline_curve.md @@ -1,6 +1,6 @@ # bspline_curve -[B-spline](https://en.wikipedia.org/wiki/B-spline) interpolation using [de Boor's algorithm](https://en.wikipedia.org/wiki/De_Boor%27s_algorithm). This function returns points of the B-spline path. Combined with the `polyline`, `polyline3d` or `hull_polyline3d` module, you can create a B-spline curve. +[B-spline](https://en.wikipedia.org/wiki/B-spline) interpolation using [de Boor's algorithm](https://en.wikipedia.org/wiki/De_Boor%27s_algorithm). This function returns points of the B-spline path. **Since:** 2.1 diff --git a/docs/lib3x-contours.md b/docs/lib3x-contours.md index 00d0772f..1638519c 100644 --- a/docs/lib3x-contours.md +++ b/docs/lib3x-contours.md @@ -11,7 +11,7 @@ Computes contour polygons by applying [marching squares](https://en.wikipedia.or ## Examples - use ; + use ; use ; use ; @@ -36,7 +36,8 @@ Computes contour polygons by applying [marching squares](https://en.wikipedia.or translate([0, 0, z]) linear_extrude(1) for(isoline = contours(points, z)) { - hull_polyline2d(isoline, width = 1); + polyline_join(isoline) + circle(.5); } } diff --git a/docs/lib3x-curve.md b/docs/lib3x-curve.md index 89f8cdf3..0b524e68 100644 --- a/docs/lib3x-curve.md +++ b/docs/lib3x-curve.md @@ -17,7 +17,7 @@ Draws a curved line from control points. The curve is drawn only from the 2nd co ## Examples use ; - use ; + use ; pts = [ [28, 2, 1], @@ -32,12 +32,14 @@ Draws a curved line from control points. The curve is drawn only from the 2nd co tightness = 0; points = curve(t_step, pts, tightness); - hull_polyline3d(points, 1); + polyline_join(points) + sphere(.5); #for(pt = pts) { translate(pt) sphere(1); } - #hull_polyline3d(pts, .1); + #polyline_join(pts) + sphere(.05); ![curve](images/lib3x-curve-3.JPG) \ No newline at end of file diff --git a/docs/lib3x-fibonacci_lattice.md b/docs/lib3x-fibonacci_lattice.md index c3bf55e4..f6044c46 100644 --- a/docs/lib3x-fibonacci_lattice.md +++ b/docs/lib3x-fibonacci_lattice.md @@ -31,7 +31,7 @@ Creates visually even spacing of n points on the surface of the sphere. Nearest- ![fibonacci_lattice](images/lib3x-fibonacci_lattice-1.JPG) use ; - use ; + use ; n = 200; radius = 20; @@ -49,7 +49,8 @@ Creates visually even spacing of n points on the surface of the sphere. Nearest- ]; for(spiral = spirals) { - hull_polyline3d(spiral, 1); + polyline_join(spiral) + sphere(.5); } ![fibonacci_lattice](images/lib3x-fibonacci_lattice-2.JPG) \ No newline at end of file diff --git a/docs/lib3x-footprints2.md b/docs/lib3x-footprints2.md index a8ec826a..3272d700 100644 --- a/docs/lib3x-footprints2.md +++ b/docs/lib3x-footprints2.md @@ -11,7 +11,7 @@ Drive a turtle with `["forward", length]` or `["turn", angle]`. This function is ## Examples - use ; + use ; use ; function arc_cmds(radius, angle, steps) = @@ -48,7 +48,8 @@ Drive a turtle with `["forward", length]` or `["turn", angle]`. This function is ) ); - polyline2d(poly, width = 1); + polyline_join(poly) + circle(.5); ![footprints2](images/lib3x-footprints2-1.JPG) diff --git a/docs/lib3x-footprints3.md b/docs/lib3x-footprints3.md index f5117fe3..c950e6fe 100644 --- a/docs/lib3x-footprints3.md +++ b/docs/lib3x-footprints3.md @@ -11,7 +11,7 @@ A 3D verion of [footprint2](https://openhome.cc/eGossip/OpenSCAD/lib3x-footprint ## Examples - use ; + use ; use ; function xy_arc_cmds(radius, angle, steps) = @@ -49,7 +49,8 @@ A 3D verion of [footprint2](https://openhome.cc/eGossip/OpenSCAD/lib3x-footprint ) ); - hull_polyline3d(poly, thickness = 1); + polyline_join(poly) + sphere(.5); ![footprints3](images/lib3x-footprints3-1.JPG) diff --git a/docs/lib3x-helix.md b/docs/lib3x-helix.md index 031fab98..31076113 100644 --- a/docs/lib3x-helix.md +++ b/docs/lib3x-helix.md @@ -14,7 +14,7 @@ Gets all points on the path of a spiral around a cylinder. Its `$fa`, `$fs` and ## Examples use ; - use ; + use ; $fn = 12; @@ -30,12 +30,13 @@ Gets all points on the path of a spiral around a cylinder. Its `$fa`, `$fs` and translate(p) sphere(5); } - hull_polyline3d(points, 2); + polyline_join(points) + sphere(1); ![helix](images/lib3x-helix-1.JPG) use ; - use ; + use ; $fn = 12; @@ -47,7 +48,8 @@ Gets all points on the path of a spiral around a cylinder. Its `$fa`, `$fs` and rt_dir = "CLK" ); - hull_polyline3d(points, 2); + polyline_join(points) + sphere(1); %cylinder(h = 100, r1 = 40, r2 = 20);