From 07f9c697d78d8f583f08641f88ddb99697d51d9d Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 20 Feb 2021 20:25:58 +0800 Subject: [PATCH] update to 3.0 --- README.md | 8 ++++---- ...nded_cube-1.JPG => lib3x-rounded_cube-1.JPG} | Bin ...nded_cube-2.JPG => lib3x-rounded_cube-2.JPG} | Bin ...nded_cube-3.JPG => lib3x-rounded_cube-3.JPG} | Bin ...inder-1.JPG => lib3x-rounded_cylinder-1.JPG} | Bin ...2x-starburst-1.JPG => lib3x-starburst-1.JPG} | Bin .../{lib2x-sweep-1.JPG => lib3x-sweep-1.JPG} | Bin .../{lib2x-sweep-10.JPG => lib3x-sweep-10.JPG} | Bin .../{lib2x-sweep-2.JPG => lib3x-sweep-2.JPG} | Bin .../{lib2x-sweep-3.JPG => lib3x-sweep-3.JPG} | Bin .../{lib2x-sweep-4.JPG => lib3x-sweep-4.JPG} | Bin .../{lib2x-sweep-5.JPG => lib3x-sweep-5.JPG} | Bin .../{lib2x-sweep-6.JPG => lib3x-sweep-6.JPG} | Bin .../{lib2x-sweep-7.JPG => lib3x-sweep-7.JPG} | Bin .../{lib2x-sweep-8.JPG => lib3x-sweep-8.JPG} | Bin .../{lib2x-sweep-9.JPG => lib3x-sweep-9.JPG} | Bin ...2x-rounded_cube.md => lib3x-rounded_cube.md} | 8 ++++---- ...ed_cylinder.md => lib3x-rounded_cylinder.md} | 2 +- docs/{lib2x-starburst.md => lib3x-starburst.md} | 4 ++-- docs/{lib2x-sweep.md => lib3x-sweep.md} | 16 ++++++++-------- src/rounded_cube.scad | 2 +- src/rounded_cylinder.scad | 2 +- src/starburst.scad | 2 +- src/sweep.scad | 2 +- 24 files changed, 23 insertions(+), 23 deletions(-) rename docs/images/{lib2x-rounded_cube-1.JPG => lib3x-rounded_cube-1.JPG} (100%) rename docs/images/{lib2x-rounded_cube-2.JPG => lib3x-rounded_cube-2.JPG} (100%) rename docs/images/{lib2x-rounded_cube-3.JPG => lib3x-rounded_cube-3.JPG} (100%) rename docs/images/{lib2x-rounded_cylinder-1.JPG => lib3x-rounded_cylinder-1.JPG} (100%) rename docs/images/{lib2x-starburst-1.JPG => lib3x-starburst-1.JPG} (100%) rename docs/images/{lib2x-sweep-1.JPG => lib3x-sweep-1.JPG} (100%) rename docs/images/{lib2x-sweep-10.JPG => lib3x-sweep-10.JPG} (100%) rename docs/images/{lib2x-sweep-2.JPG => lib3x-sweep-2.JPG} (100%) rename docs/images/{lib2x-sweep-3.JPG => lib3x-sweep-3.JPG} (100%) rename docs/images/{lib2x-sweep-4.JPG => lib3x-sweep-4.JPG} (100%) rename docs/images/{lib2x-sweep-5.JPG => lib3x-sweep-5.JPG} (100%) rename docs/images/{lib2x-sweep-6.JPG => lib3x-sweep-6.JPG} (100%) rename docs/images/{lib2x-sweep-7.JPG => lib3x-sweep-7.JPG} (100%) rename docs/images/{lib2x-sweep-8.JPG => lib3x-sweep-8.JPG} (100%) rename docs/images/{lib2x-sweep-9.JPG => lib3x-sweep-9.JPG} (100%) rename docs/{lib2x-rounded_cube.md => lib3x-rounded_cube.md} (79%) rename docs/{lib2x-rounded_cylinder.md => lib3x-rounded_cylinder.md} (93%) rename docs/{lib2x-starburst.md => lib3x-starburst.md} (88%) rename docs/{lib2x-sweep.md => lib3x-sweep.md} (89%) diff --git a/README.md b/README.md index efdf2bdc..e348a2f6 100644 --- a/README.md +++ b/README.md @@ -62,10 +62,10 @@ These examples incubate dotSCAD and dotSCAD refactors these examples. See [examp - [loft](https://openhome.cc/eGossip/OpenSCAD/lib3x-loft.html) - [polyhedron_hull](https://openhome.cc/eGossip/OpenSCAD/lib3x-polyhedron_hull.html) - [polyline3d](https://openhome.cc/eGossip/OpenSCAD/lib3x-polyline3d.html) -- [rounded_cube](https://openhome.cc/eGossip/OpenSCAD/lib2x-rounded_cube.html) -- [rounded_cylinder](https://openhome.cc/eGossip/OpenSCAD/lib2x-rounded_cylinder.html) -- [starburst](https://openhome.cc/eGossip/OpenSCAD/lib2x-starburst.html) -- [sweep](https://openhome.cc/eGossip/OpenSCAD/lib2x-sweep.html) +- [rounded_cube](https://openhome.cc/eGossip/OpenSCAD/lib3x-rounded_cube.html) +- [rounded_cylinder](https://openhome.cc/eGossip/OpenSCAD/lib3x-rounded_cylinder.html) +- [starburst](https://openhome.cc/eGossip/OpenSCAD/lib3x-starburst.html) +- [sweep](https://openhome.cc/eGossip/OpenSCAD/lib3x-sweep.html) ### Transformation - [along_with](https://openhome.cc/eGossip/OpenSCAD/lib2x-along_with.html) diff --git a/docs/images/lib2x-rounded_cube-1.JPG b/docs/images/lib3x-rounded_cube-1.JPG similarity index 100% rename from docs/images/lib2x-rounded_cube-1.JPG rename to docs/images/lib3x-rounded_cube-1.JPG diff --git a/docs/images/lib2x-rounded_cube-2.JPG b/docs/images/lib3x-rounded_cube-2.JPG similarity index 100% rename from docs/images/lib2x-rounded_cube-2.JPG rename to docs/images/lib3x-rounded_cube-2.JPG diff --git a/docs/images/lib2x-rounded_cube-3.JPG b/docs/images/lib3x-rounded_cube-3.JPG similarity index 100% rename from docs/images/lib2x-rounded_cube-3.JPG rename to docs/images/lib3x-rounded_cube-3.JPG diff --git a/docs/images/lib2x-rounded_cylinder-1.JPG b/docs/images/lib3x-rounded_cylinder-1.JPG similarity index 100% rename from docs/images/lib2x-rounded_cylinder-1.JPG rename to docs/images/lib3x-rounded_cylinder-1.JPG diff --git a/docs/images/lib2x-starburst-1.JPG b/docs/images/lib3x-starburst-1.JPG similarity index 100% rename from docs/images/lib2x-starburst-1.JPG rename to docs/images/lib3x-starburst-1.JPG diff --git a/docs/images/lib2x-sweep-1.JPG b/docs/images/lib3x-sweep-1.JPG similarity index 100% rename from docs/images/lib2x-sweep-1.JPG rename to docs/images/lib3x-sweep-1.JPG diff --git a/docs/images/lib2x-sweep-10.JPG b/docs/images/lib3x-sweep-10.JPG similarity index 100% rename from docs/images/lib2x-sweep-10.JPG rename to docs/images/lib3x-sweep-10.JPG diff --git a/docs/images/lib2x-sweep-2.JPG b/docs/images/lib3x-sweep-2.JPG similarity index 100% rename from docs/images/lib2x-sweep-2.JPG rename to docs/images/lib3x-sweep-2.JPG diff --git a/docs/images/lib2x-sweep-3.JPG b/docs/images/lib3x-sweep-3.JPG similarity index 100% rename from docs/images/lib2x-sweep-3.JPG rename to docs/images/lib3x-sweep-3.JPG diff --git a/docs/images/lib2x-sweep-4.JPG b/docs/images/lib3x-sweep-4.JPG similarity index 100% rename from docs/images/lib2x-sweep-4.JPG rename to docs/images/lib3x-sweep-4.JPG diff --git a/docs/images/lib2x-sweep-5.JPG b/docs/images/lib3x-sweep-5.JPG similarity index 100% rename from docs/images/lib2x-sweep-5.JPG rename to docs/images/lib3x-sweep-5.JPG diff --git a/docs/images/lib2x-sweep-6.JPG b/docs/images/lib3x-sweep-6.JPG similarity index 100% rename from docs/images/lib2x-sweep-6.JPG rename to docs/images/lib3x-sweep-6.JPG diff --git a/docs/images/lib2x-sweep-7.JPG b/docs/images/lib3x-sweep-7.JPG similarity index 100% rename from docs/images/lib2x-sweep-7.JPG rename to docs/images/lib3x-sweep-7.JPG diff --git a/docs/images/lib2x-sweep-8.JPG b/docs/images/lib3x-sweep-8.JPG similarity index 100% rename from docs/images/lib2x-sweep-8.JPG rename to docs/images/lib3x-sweep-8.JPG diff --git a/docs/images/lib2x-sweep-9.JPG b/docs/images/lib3x-sweep-9.JPG similarity index 100% rename from docs/images/lib2x-sweep-9.JPG rename to docs/images/lib3x-sweep-9.JPG diff --git a/docs/lib2x-rounded_cube.md b/docs/lib3x-rounded_cube.md similarity index 79% rename from docs/lib2x-rounded_cube.md rename to docs/lib3x-rounded_cube.md index 2dbacc9a..f760c4db 100644 --- a/docs/lib2x-rounded_cube.md +++ b/docs/lib3x-rounded_cube.md @@ -1,6 +1,6 @@ # rounded_cube -Creates a cube in the first octant. When `center` is `true`, the cube is centered on the origin. +Creates a cube in the first octant. ## Parameters @@ -15,7 +15,7 @@ Creates a cube in the first octant. When `center` is `true`, the cube is centere rounded_cube(20, 5); -![rounded_cube](images/lib2x-rounded_cube-1.JPG) +![rounded_cube](images/lib3x-rounded_cube-1.JPG) use ; @@ -25,7 +25,7 @@ Creates a cube in the first octant. When `center` is `true`, the cube is centere center = true ); -![rounded_cube](images/lib2x-rounded_cube-2.JPG) +![rounded_cube](images/lib3x-rounded_cube-2.JPG) use ; @@ -37,7 +37,7 @@ Creates a cube in the first octant. When `center` is `true`, the cube is centere center = true ); -![rounded_cube](images/lib2x-rounded_cube-3.JPG) +![rounded_cube](images/lib3x-rounded_cube-3.JPG) diff --git a/docs/lib2x-rounded_cylinder.md b/docs/lib3x-rounded_cylinder.md similarity index 93% rename from docs/lib2x-rounded_cylinder.md rename to docs/lib3x-rounded_cylinder.md index 5d6eed03..6ae781f6 100644 --- a/docs/lib2x-rounded_cylinder.md +++ b/docs/lib3x-rounded_cylinder.md @@ -21,4 +21,4 @@ Creates a rounded cylinder. round_r = 3 ); -![rounded_cylinder](images/lib2x-rounded_cylinder-1.JPG) \ No newline at end of file +![rounded_cylinder](images/lib3x-rounded_cylinder-1.JPG) \ No newline at end of file diff --git a/docs/lib2x-starburst.md b/docs/lib3x-starburst.md similarity index 88% rename from docs/lib2x-starburst.md rename to docs/lib3x-starburst.md index 704533f5..e75aebdf 100644 --- a/docs/lib2x-starburst.md +++ b/docs/lib3x-starburst.md @@ -2,7 +2,7 @@ A 3D version of `shape_starburst`. -**Since:** 1.2. +**Since:** 1.2 ## Parameters @@ -20,5 +20,5 @@ A 3D version of `shape_starburst`. translate([40, 0, 0]) starburst(10, 5, 12, 10); translate([60, 0, 0]) starburst(10, 5, 4, 3); -![starburst](images/lib2x-starburst-1.JPG) +![starburst](images/lib3x-starburst-1.JPG) diff --git a/docs/lib2x-sweep.md b/docs/lib3x-sweep.md similarity index 89% rename from docs/lib2x-sweep.md rename to docs/lib3x-sweep.md index fac03ecd..33ce428f 100644 --- a/docs/lib2x-sweep.md +++ b/docs/lib3x-sweep.md @@ -2,23 +2,23 @@ This module sweeps multiple cross-sections to create a 3D object. For example, imagine that you have the following cross-sections: -![sweep](images/lib2x-sweep-1.JPG) +![sweep](images/lib3x-sweep-1.JPG) This module sweeps them to create a 3D object: -![sweep](images/lib2x-sweep-2.JPG) +![sweep](images/lib3x-sweep-2.JPG) When using this module, you should use points to represent a cross section. The points must be counter-clockwise indexes. For example: -![sweep](images/lib2x-sweep-10.JPG) +![sweep](images/lib3x-sweep-10.JPG) If your cross section is hollow, set the `triangles` parameter to `"HOLLOW"` and index the points as the following: -![sweep](images/lib2x-sweep-5.JPG) +![sweep](images/lib3x-sweep-5.JPG) You can cut triangles by yourself. For example, the above shape can be cut into triangles such as: -![sweep](images/lib2x-sweep-6.JPG) +![sweep](images/lib3x-sweep-6.JPG) The indexes of the above triangles is: @@ -62,7 +62,7 @@ The indexes of the above triangles is: sweep(sections); -![sweep](images/lib2x-sweep-7.JPG) +![sweep](images/lib3x-sweep-7.JPG) use ; use ; @@ -92,7 +92,7 @@ The indexes of the above triangles is: sweep(sections, "HOLLOW"); -![sweep](images/lib2x-sweep-8.JPG) +![sweep](images/lib3x-sweep-8.JPG) use ; use ; @@ -130,7 +130,7 @@ The indexes of the above triangles is: ] ); -![sweep](images/lib2x-sweep-9.JPG) +![sweep](images/lib3x-sweep-9.JPG) diff --git a/src/rounded_cube.scad b/src/rounded_cube.scad index 457638ec..85d4a972 100644 --- a/src/rounded_cube.scad +++ b/src/rounded_cube.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-rounded_cube.html +* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-rounded_cube.html * **/ diff --git a/src/rounded_cylinder.scad b/src/rounded_cylinder.scad index 1301440d..b6bb5eea 100644 --- a/src/rounded_cylinder.scad +++ b/src/rounded_cylinder.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-rounded_cylinder.html +* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-rounded_cylinder.html * **/ diff --git a/src/starburst.scad b/src/starburst.scad index 90d9fc63..e5e999f6 100644 --- a/src/starburst.scad +++ b/src/starburst.scad @@ -4,7 +4,7 @@ * @copyright Justin Lin, 2019 * @license https://opensource.org/licenses/lgpl-3.0.html * -* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-starburst.html +* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-starburst.html * **/ diff --git a/src/sweep.scad b/src/sweep.scad index 6e65d81e..627afac7 100644 --- a/src/sweep.scad +++ b/src/sweep.scad @@ -4,7 +4,7 @@ * @copyright Justin Lin, 2020 * @license https://opensource.org/licenses/lgpl-3.0.html * -* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-sweep.html +* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-sweep.html * **/