1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 05:21:38 +02:00

update to 3.0

This commit is contained in:
Justin Lin
2021-02-18 10:53:35 +08:00
parent 8ea54fb9b3
commit 200600f004
7 changed files with 17 additions and 17 deletions

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -6,7 +6,7 @@ Creates a 3D line from two points.
- `p1` : 3 element vector `[x, y, z]`.
- `p2` : 3 element vector `[x, y, z]`.
- `thickness` : The line thickness.
- `diameter` : The line diameter. Default to 1.
- `p1Style` : The end-cap style of the point `p1`. The value must be `"CAP_BUTT"`, `"CAP_CIRCLE"` or `"CAP_SPHERE"`. The default value is `"CAP_CIRCLE"`.
- `p2Style` : The end-cap style of the point `p2`. The value must be `"CAP_BUTT"`, `"CAP_CIRCLE"` or `"CAP_SPHERE"`. The default value is `"CAP_CIRCLE"`.
- `$fa`, `$fs`, `$fn` : Used by the `circle` or `sphere` module internally. Check [the circle module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle) or [the sphere module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#sphere) for more details. The final fragments of a circle will be a multiple of 4 to fit edges.
@@ -18,34 +18,34 @@ Creates a 3D line from two points.
line3d(
p1 = [0, 0, 0],
p2 = [10, 2, 10],
thickness = 1,
diameter = 1,
$fn = 24
);
![line3d](images/lib2x-line3d-1.JPG)
![line3d](images/lib3x-line3d-1.JPG)
use <line3d.scad>;
line3d(
p1 = [0, 0, 0],
p2 = [10, 2, 10],
thickness = 1,
diameter = 1,
p1Style = "CAP_BUTT",
p2Style = "CAP_BUTT",
$fn = 24
);
![line3d](images/lib2x-line3d-2.JPG)
![line3d](images/lib3x-line3d-2.JPG)
use <line3d.scad>;
line3d(
p1 = [0, 0, 0],
p2 = [10, 2, 10],
thickness = 1,
diameter = 1,
p1Style = "CAP_SPHERE",
p2Style = "CAP_SPHERE",
$fn = 24
);
![line3d](images/lib2x-line3d-3.JPG)
![line3d](images/lib3x-line3d-3.JPG)