1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-29 01:11:30 +02:00

update to 3.0

This commit is contained in:
Justin Lin
2021-02-19 11:24:34 +08:00
parent e3663e051a
commit 3a5915dd99
14 changed files with 28 additions and 28 deletions

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

@@ -43,7 +43,7 @@ When having uniform cross sections, you can use [sweep](https://openhome.cc/eGos
);
}
![loft](images/lib2x-loft-1.JPG)
![loft](images/lib3x-loft-1.JPG)

View File

@@ -22,4 +22,4 @@ Create a convex polyhedron by hulling a list of points. It avoids using `hull` a
[0, 0, -1]
]);
![polyhedron_hull](images/lib2x-polyhedron_hull-1.JPG)
![polyhedron_hull](images/lib3x-polyhedron_hull-1.JPG)

View File

@@ -5,7 +5,7 @@ Creates a polyline from a list of `[x, y, z]` coordinates.
## Parameters
- `points` : The list of `[x, y, z]` points of the polyline. The points are indexed from 0 to n-1.
- `thickness` : The line thickness.
- `diameter` : The line diameter.
- `startingStyle` : The end-cap style of the starting point. The value must be `"CAP_BUTT"`, `"CAP_CIRCLE"` or `"CAP_SPHERE"`. The default value is `"CAP_CIRCLE"`.
- `endingStyle` : The end-cap style of the ending point. 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 if possible.
@@ -21,11 +21,11 @@ Creates a polyline from a list of `[x, y, z]` coordinates.
[-5, 3, 3],
[5, 5, 4]
],
thickness = 1,
diameter = 1,
$fn = 24
);
![polyline3d](images/lib2x-polyline3d-1.JPG)
![polyline3d](images/lib3x-polyline3d-1.JPG)
use <polyline3d.scad>;
@@ -36,12 +36,12 @@ Creates a polyline from a list of `[x, y, z]` coordinates.
[-5, 3, 3],
[5, 5, 4]
],
thickness = 1,
diameter = 1,
endingStyle = "CAP_SPHERE",
$fn = 24
);
![polyline3d](images/lib2x-polyline3d-2.JPG)
![polyline3d](images/lib3x-polyline3d-2.JPG)
use <polyline3d.scad>;
@@ -52,13 +52,13 @@ Creates a polyline from a list of `[x, y, z]` coordinates.
[-5, 3, 3],
[5, 5, 4]
],
thickness = 1,
diameter = 1,
startingStyle = "CAP_SPHERE",
endingStyle = "CAP_SPHERE",
$fn = 24
);
![polyline3d](images/lib2x-polyline3d-3.JPG)
![polyline3d](images/lib3x-polyline3d-3.JPG)
use <polyline3d.scad>;
@@ -71,6 +71,6 @@ Creates a polyline from a list of `[x, y, z]` coordinates.
for(a = [0:fa:360 * circles])
[r * cos(a), r * sin(a), h / (360 / fa) * (a / fa)]
];
polyline3d(points, thickness = 1, $fn = 24);
polyline3d(points, diameter = 1, $fn = 24);
![polyline3d](images/lib2x-polyline3d-4.JPG)
![polyline3d](images/lib3x-polyline3d-4.JPG)