1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 06:08:31 +01:00

update to 3.0

This commit is contained in:
Justin Lin 2021-02-21 22:47:09 +08:00
parent 9b217f4d6c
commit 6ec6102bb7
18 changed files with 18 additions and 18 deletions

View File

@ -68,10 +68,10 @@ These examples incubate dotSCAD and dotSCAD refactors these examples. See [examp
- [sweep](https://openhome.cc/eGossip/OpenSCAD/lib3x-sweep.html)
### Transformation
- [along_with](https://openhome.cc/eGossip/OpenSCAD/lib2x-along_with.html)
- [bend](https://openhome.cc/eGossip/OpenSCAD/lib2x-bend.html)
- [hollow_out](https://openhome.cc/eGossip/OpenSCAD/lib2x-hollow_out.html)
- [shear](https://openhome.cc/eGossip/OpenSCAD/lib2x-shear.html)
- [along_with](https://openhome.cc/eGossip/OpenSCAD/lib3x-along_with.html)
- [bend](https://openhome.cc/eGossip/OpenSCAD/lib3x-bend.html)
- [hollow_out](https://openhome.cc/eGossip/OpenSCAD/lib3x-hollow_out.html)
- [shear](https://openhome.cc/eGossip/OpenSCAD/lib3x-shear.html)
### 2D Function
- [bijection_offset](https://openhome.cc/eGossip/OpenSCAD/lib2x-bijection_offset.html)

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -8,7 +8,7 @@ Puts children along the given path. If there's only one child, it will put the c
- `angles` : Rotate before translate each child. If not given, rotate children automatically according to `points` and `method`.
- `twist` : If given, each child will be twisted before applying each element of `points` and `angles`.
- `scale` : If given, each child will be scaled before applying each element of `points` and `angles`. It accepts a single value, `[sx, sy]` or `[sx, sy, sz]`.
- `method` : Which method does `along_with` take to **guess** how to rotate children if `angles` is not specified? It accepts two value, `"AXIS_ANGLE"` (default) and `"EULER_ANGLE"`. See `path_extrude` for more information. **Since:** 1.3.
- `method` : Which method does `along_with` take to **guess** how to rotate children if `angles` is not specified? It accepts two value, `"AXIS_ANGLE"` (default) and `"EULER_ANGLE"`. See `path_extrude` for more information. **Since:** 1.3
## Examples
@ -22,7 +22,7 @@ Puts children along the given path. If there's only one child, it will put the c
along_with(points)
sphere(5);
![along_with](images/lib2x-along_with-1.JPG)
![along_with](images/lib3x-along_with-1.JPG)
use <along_with.scad>;
use <shape_circle.scad>;
@ -42,7 +42,7 @@ Puts children along the given path. If there's only one child, it will put the c
cube(5);
}
![along_with](images/lib2x-along_with-2.JPG)
![along_with](images/lib3x-along_with-2.JPG)
use <along_with.scad>;
use <golden_spiral.scad>;
@ -61,7 +61,7 @@ Puts children along the given path. If there's only one child, it will put the c
linear_extrude(1, center = true)
text("A", valign = "center", halign = "center");
![along_with](images/lib2x-along_with-3.JPG)
![along_with](images/lib3x-along_with-3.JPG)
use <bezier_curve.scad>;
use <along_with.scad>;
@ -101,4 +101,4 @@ Puts children along the given path. If there's only one child, it will put the c
along_with(path_pts, scale = 0.5)
scales();
![along_with](images/lib2x-along_with-4.JPG)
![along_with](images/lib3x-along_with-4.JPG)

View File

@ -21,7 +21,7 @@ The containing cube of the target object should be laid down on the x-y plane. F
%cube(size = [x, y, z]);
linear_extrude(z) text("A");
![bend](images/lib2x-bend-1.JPG)
![bend](images/lib3x-bend-1.JPG)
Once you have the size of the containing cube, you can use it as the `size` argument of the `bend` module.
@ -36,7 +36,7 @@ Once you have the size of the containing cube, you can use it as the `size` argu
bend(size = [x, y, z], angle = 270)
linear_extrude(z) text("A");
![bend](images/lib2x-bend-2.JPG)
![bend](images/lib3x-bend-2.JPG)
The arc shape is smoother if the `frags` value is larger.
@ -50,6 +50,6 @@ The arc shape is smoother if the `frags` value is larger.
linear_extrude(z)
text("A");
![bend](images/lib2x-bend-3.JPG)
![bend](images/lib3x-bend-3.JPG)
This module is especially useful when you want to create things such as [PNG to pen holder](https://www.thingiverse.com/thing:1589493).

View File

@ -13,4 +13,4 @@ Hollows out a 2D object.
hollow_out(shell_thickness = 1) circle(r = 3, $fn = 48);
hollow_out(shell_thickness = 1) square([10, 5]);
![hollow_out](images/lib2x-hollow_out-1.JPG)
![hollow_out](images/lib3x-hollow_out-1.JPG)

View File

@ -48,5 +48,5 @@ Shear all child elements along the X-axis, Y-axis, or Z-axis in 3D.
cube(1);
}
![shear](images/lib2x-shear-1.JPG)
![shear](images/lib3x-shear-1.JPG)

View File

@ -4,7 +4,7 @@
* @copyright Justin Lin, 2017
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-along_with.html
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-along_with.html
*
**/

View File

@ -4,7 +4,7 @@
* @copyright Justin Lin, 2017
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-bend.html
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-bend.html
*
**/

View File

@ -4,7 +4,7 @@
* @copyright Justin Lin, 2017
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-hollow_out.html
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-hollow_out.html
*
**/

View File

@ -4,7 +4,7 @@
* @copyright Justin Lin, 2019
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-shear.html
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-shear.html
*
**/