From 81b0b6dd6b811c88e18779d3e335bd02e82e3ae7 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 10 May 2017 16:16:27 +0800 Subject: [PATCH] changed default value --- docs/lib-polysections.md | 4 +++- src/path_extrude.scad | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/lib-polysections.md b/docs/lib-polysections.md index e2c0e7e9..f9197965 100644 --- a/docs/lib-polysections.md +++ b/docs/lib-polysections.md @@ -12,7 +12,9 @@ Looks like extruding along the path? Yes, it can perform the task; however, it's You can also view it as a better polyline3d module if you want. If you have only the points of a path, using `polyline3d` or `hull_polyline3d` is a simple solution. If you know the cross-sections along a path, you can use `polysections` to do more. -When using this module, you should use points to represent each cross-section. You need to provide indexes of triangles, too. This module provides three prepared triangles indexes. One is `"RADIAL"`. For example, if you have a cross-section such as: +When using this module, you should use points to represent each cross-section. + +You need to provide indexes of triangles, too. This module provides three prepared triangles indexes. One is `"RADIAL"`. For example, if you have a cross-section such as: ![polysections](images/lib-polysections-3.JPG) diff --git a/src/path_extrude.scad b/src/path_extrude.scad index 72859c81..bb8e635e 100644 --- a/src/path_extrude.scad +++ b/src/path_extrude.scad @@ -16,7 +16,7 @@ include <__private__/__is_vector.scad>; include <__private__/__to3d.scad>; -module path_extrude(shape_pts, path_pts, triangles = "RADIAL", twist = 0, scale = 1.0, closed = false) { +module path_extrude(shape_pts, path_pts, triangles = "SOLID", twist = 0, scale = 1.0, closed = false) { sh_pts = len(shape_pts[0]) == 3 ? shape_pts : [for(p = shape_pts) __to3d(p)]; len_path_pts = len(path_pts);