mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-04 13:57:33 +02:00
provided supports for $fa, $fs, $fn
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Creates a 3D polyline from a list of `[x, y, z]` coordinates.
|
* Creates a 3D polyline from a list of `[x, y, z]` coordinates.
|
||||||
* As the name says, it uses the built-in hull operation for each pair of points.
|
* As the name says, it uses the built-in hull operation for each pair of points.
|
||||||
* It's slow. However, it can be used to create metallic effects when the fn parameter is small.
|
* It's slow. However, it can be used to create metallic effects for a small $fn, large $fa or $fs.
|
||||||
*
|
*
|
||||||
* @copyright Justin Lin, 2017
|
* @copyright Justin Lin, 2017
|
||||||
* @license https://opensource.org/licenses/lgpl-3.0.html
|
* @license https://opensource.org/licenses/lgpl-3.0.html
|
||||||
@@ -12,8 +12,7 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
module hull_polyline3d(points, thickness, fn = 3) {
|
module hull_polyline3d(points, thickness) {
|
||||||
$fn = fn;
|
|
||||||
half_thickness = thickness / 2;
|
half_thickness = thickness / 2;
|
||||||
leng = len(points);
|
leng = len(points);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user