diff --git a/docs/images/lib2x-polysections-1.JPG b/docs/images/lib2x-polysections-1.JPG deleted file mode 100644 index 05408847..00000000 Binary files a/docs/images/lib2x-polysections-1.JPG and /dev/null differ diff --git a/docs/images/lib2x-polysections-10.JPG b/docs/images/lib2x-polysections-10.JPG deleted file mode 100644 index 656d5e4b..00000000 Binary files a/docs/images/lib2x-polysections-10.JPG and /dev/null differ diff --git a/docs/images/lib2x-polysections-2.JPG b/docs/images/lib2x-polysections-2.JPG deleted file mode 100644 index 784c00be..00000000 Binary files a/docs/images/lib2x-polysections-2.JPG and /dev/null differ diff --git a/docs/images/lib2x-polysections-3.JPG b/docs/images/lib2x-polysections-3.JPG deleted file mode 100644 index 41373606..00000000 Binary files a/docs/images/lib2x-polysections-3.JPG and /dev/null differ diff --git a/docs/images/lib2x-polysections-4.JPG b/docs/images/lib2x-polysections-4.JPG deleted file mode 100644 index f2b0125a..00000000 Binary files a/docs/images/lib2x-polysections-4.JPG and /dev/null differ diff --git a/docs/images/lib2x-polysections-5.JPG b/docs/images/lib2x-polysections-5.JPG deleted file mode 100644 index 99aee7ad..00000000 Binary files a/docs/images/lib2x-polysections-5.JPG and /dev/null differ diff --git a/docs/images/lib2x-polysections-6.JPG b/docs/images/lib2x-polysections-6.JPG deleted file mode 100644 index a8a05f43..00000000 Binary files a/docs/images/lib2x-polysections-6.JPG and /dev/null differ diff --git a/docs/images/lib2x-polysections-7.JPG b/docs/images/lib2x-polysections-7.JPG deleted file mode 100644 index 361bb0b0..00000000 Binary files a/docs/images/lib2x-polysections-7.JPG and /dev/null differ diff --git a/docs/images/lib2x-polysections-8.JPG b/docs/images/lib2x-polysections-8.JPG deleted file mode 100644 index e87527f9..00000000 Binary files a/docs/images/lib2x-polysections-8.JPG and /dev/null differ diff --git a/docs/images/lib2x-polysections-9.JPG b/docs/images/lib2x-polysections-9.JPG deleted file mode 100644 index d176351e..00000000 Binary files a/docs/images/lib2x-polysections-9.JPG and /dev/null differ diff --git a/docs/images/lib2x-polytransversals-1.JPG b/docs/images/lib2x-polytransversals-1.JPG deleted file mode 100644 index 4d46eea8..00000000 Binary files a/docs/images/lib2x-polytransversals-1.JPG and /dev/null differ diff --git a/docs/images/lib2x-polytransversals-2.JPG b/docs/images/lib2x-polytransversals-2.JPG deleted file mode 100644 index 8da7cf57..00000000 Binary files a/docs/images/lib2x-polytransversals-2.JPG and /dev/null differ diff --git a/docs/images/lib2x-polytransversals-3.JPG b/docs/images/lib2x-polytransversals-3.JPG deleted file mode 100644 index 6dbf24ea..00000000 Binary files a/docs/images/lib2x-polytransversals-3.JPG and /dev/null differ diff --git a/docs/images/lib2x-shape_glued2circles-1.JPG b/docs/images/lib2x-shape_glued2circles-1.JPG deleted file mode 100644 index 25de4a77..00000000 Binary files a/docs/images/lib2x-shape_glued2circles-1.JPG and /dev/null differ diff --git a/docs/images/lib2x-shape_glued2circles-2.JPG b/docs/images/lib2x-shape_glued2circles-2.JPG deleted file mode 100644 index 850802f5..00000000 Binary files a/docs/images/lib2x-shape_glued2circles-2.JPG and /dev/null differ diff --git a/docs/images/lib2x-shape_glued2circles-3.JPG b/docs/images/lib2x-shape_glued2circles-3.JPG deleted file mode 100644 index 0eea1e0a..00000000 Binary files a/docs/images/lib2x-shape_glued2circles-3.JPG and /dev/null differ diff --git a/docs/lib2x-polytransversals.md b/docs/lib2x-polytransversals.md deleted file mode 100644 index 50490078..00000000 --- a/docs/lib2x-polytransversals.md +++ /dev/null @@ -1,42 +0,0 @@ -# polytransversals - -Crosscutting a polyline at different points gets several transversals. This module can operate reversely. It uses transversals to construct a polyline. For example, imagine that you have the following transversals: - -![polytransversals](images/lib2x-polytransversals-1.JPG) - -This module can use them to construct the polyline: - -![polytransversals](images/lib2x-polytransversals-2.JPG) - -When using this module, you should use points to represent each transversal. - -You can view it as a better polyline2d module. If you have only the points of a path, using `polyline2d` or `hull_polyline2d` is a simple solution. If you know the transversals along a path, you can use `polytransversals` to get a better polyline. - -## Parameters - -- `transversals` : A list of transversals. Each transversal is represented by a list of points. See the example below. - -## Examples - - use ; - use ; - use ; - - r = 35; - tran_pts = [[-5, 0], [0, 5], [5, 0]]; - - trans = [ - for(a = [0:10:120]) - [ - for(p = tran_pts) - rotate_p(p, [0, 0, a]) + [r * cos(a), r * sin(a)] - ] - ]; - - polytransversals(trans); - - #for(tran = trans) { - hull_polyline2d(tran, 0.5); - } - -![polytransversals](images/lib2x-polytransversals-3.JPG) diff --git a/docs/lib2x-shape_glued2circles.md b/docs/lib2x-shape_glued2circles.md deleted file mode 100644 index 4c10bb6a..00000000 --- a/docs/lib2x-shape_glued2circles.md +++ /dev/null @@ -1,65 +0,0 @@ -# shape_glued2circles - -Returns shape points of two glued circles. They can be used with xxx_extrude modules of dotSCAD. The shape points can be also used with the built-in polygon module. - -## Parameters - -- `radius` : The radius of two circles. -- `centre_dist` : The distance between centres of two circles. -- `tangent_angle` : The angle of a tangent line. It defaults to 30 degrees. See examples below. -- `t_step` : It defaults to 0.1. See [bezier_curve](https://openhome.cc/eGossip/OpenSCAD/lib2x-bezier_curve.html) for details. -- `$fa`, `$fs`, `$fn` : Check [the circle module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle) for more details. - -## Examples - - use ; - - $fn = 36; - - radius = 10; - centre_dist = 30; - - shape_pts = shape_glued2circles(radius, centre_dist); - polygon(shape_pts); - -![shape_glued2circles](images/lib2x-shape_glued2circles-1.JPG) - - use ; - - $fn = 36; - - radius = 10; - centre_dist = 30; - - shape_pts = shape_glued2circles(radius, centre_dist); - width = centre_dist / 2 + radius; - - rotate_extrude() difference() { - polygon(shape_pts); - - translate([-width, -radius]) - square([width, radius * 2]); - } - -![shape_glued2circles](images/lib2x-shape_glued2circles-2.JPG) - - use ; - - $fn = 36; - - radius = 10; - centre_dist = 30; - - shape_pts = shape_glued2circles(radius, centre_dist); - - width = centre_dist + radius * 2; - - rotate_extrude() - intersection() { - rotate(-90) polygon(shape_pts); - - translate([radius / 2, 0]) - square([radius, width], center = true); - } - -![shape_glued2circles](images/lib2x-shape_glued2circles-3.JPG) \ No newline at end of file